<title>Admin Details</title>
<div id="pagetitle">ADMIN DETAILS</div>
<div id="batascontent">
	<?php
		$id = mysqli_real_escape_string($koneksi, $_GET['id']);
		$db	= mysqli_query($koneksi, "SELECT * FROM cmas_admin WHERE admin_id='$id'");
		$dt	= mysqli_fetch_array($db);
	?>
	<div id="wrapgsetting" class="clearfix">
		<div id="gsettingleft">
			<div id="gsettingtitles">GENERAL</div>
			<div id="gsetting" class="clearfix" >
				<div id="gsettinglabel">Level</div>
				<div id="gsettinginput">
					<?php echo $dt['admincat_nama']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix" >
				<div id="gsettinglabel">Nama Lengkap</div>
				<div id="gsettinginput">
					<?php echo $dt['admin_nama']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix" >
				<div id="gsettinglabel">Alamat Email</div>
				<div id="gsettinginput">
					<?php echo $dt['admin_email']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix" >
				<div id="gsettinglabel">Username</div>
				<div id="gsettinginput">
					<?php echo $dt['admin_username']; ?>
				</div>
			</div>
		</div>
		<div id="gsettingrite">
			<div id="gsettingtitles">ATTRIBUTE</div>
			<div id="gsetting" class="clearfix" >
				<div id="gsettinglabel">Status</div>
				<div id="gsettinginput">
					<?php echo $dt['admin_status']; ?>
				</div>
			</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Profil</div>
				<div id="gsettingimgsml">
					<?php if ($dt['admin_imageid'] == 0) { ?>
						<img src="assets/images/noprofile.jpg" alt="<?php echo $dt['admin_nama']; ?>" title="<?php echo $dt['admin_nama']; ?>" style="border-radius:100%;">
					<?php } else { ?>
						<img src="assets/images/admin/<?php echo $dt['admin_image']; ?>" alt="<?php echo $dt['admin_nama']; ?>" title="<?php echo $dt['admin_nama']; ?>" style="border-radius:100%;">
					<?php } ?>
				</div>
			</div>
		</div>
	</div>
	<div id="tombolsubmit">
		<a href="?m=admin_index"><input name="button" type="button" value="KEMBALI" class="myButton"/></a>
		<a href="?m=admin_edit&id=<?php echo $dt['admin_id']; ?>"><input name="button" type="button" value="EDIT" class="submitbutton"/></a>
	</div>
	<div id="infobottom" class="clearfix">
		<div class="infobottomleft">
			Posted by <b><?php echo $dt['posted_nama']; ?></b> on <b><?php echo date_format(date_create($dt['postdated']), 'd/m/Y H:i:s'); ?></b>
		</div>
		<div class="infobottomrite">
			Updated by <b><?php echo $dt['updated_nama']; ?></b> on <b><?php echo date_format(date_create($dt['updated']), 'd/m/Y H:i:s'); ?></b>
		</div>
	</div>
</div>