<title>Edit Level</title>
<div id="pagetitle">EDIT LEVEL</div>
<div id="batascontent">
	<form action="?m=admincat_update" method="post" enctype="multipart/form-data">
		<?php
			$id = mysqli_real_escape_string($koneksi, $_GET['id']);
			$db = mysqli_query($koneksi, "SELECT * FROM cmas_admincat WHERE admincat_id='$id'");
			$dt = mysqli_fetch_array($db);
		?>
		<input name="admincat_id" type="hidden" value="<?php echo $dt['admincat_id']; ?>"> 
		
		<div id="wrapgsetting" class="clearfix">
			<div id="gsettingtitles">GENERAL</div>
			<div id="gsetting" class="clearfix">
				<div id="gsettinglabel">Nama Level</div>
				<div id="gsettingedit">
					<input name="admincat_nama" type="text" value="<?php echo $dt['admincat_nama']; ?>" autocomplete="off" required >
				</div>
			</div>	
		</div>
		<div id="tombolsubmit">
			<a href="?m=admincat_index"><input name="button" type="button" value="KEMBALI" class="myButton"/></a>
			<input name="submit" type="submit" value="SIMPAN" class="submitbutton"/>
		</div>
	</form>
	<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>		