<title>Ubah Password</title>
<div id="pagetitle">UBAH PASSWORD</div>
<div id="batascontent">
	<form action="?m=admin_passwordupdate" method="post" enctype="multipart/form-data">
		<?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);
		?>
		<input name="admin_id" type="hidden" value="<?php echo $dt['admin_id']; ?>">

		<div id="wrapgsetting" class="clearfix">
			<div id="gsettingleft">
				<div id="gsettingtitles">NEW PASSWORD</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Password Baru</div>
					<div id="gsettingedit">
						<input type="password" name="admin_password" placeholder="Masukkan Password Baru" required />
					</div>
				</div>
			</div>
			<div id="gsettingrite">
				<div id="gsettingtitles">GENERAL</div>	
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Username</div>
					<div id="gsettinginput">
						<input name="admin_id" type="hidden" value="<?php echo $dt['admin_id']; ?>">
						<input name="admin_username" type="hidden" value="<?php echo $dt['admin_username']; ?>">
						<input name="admin_nama" type="hidden" value="<?php echo $dt['admin_nama']; ?>">
						<?php echo $dt['admin_username']; ?>
					</div>
				</div>
			</div>
		</div>
		<div id="tombolsubmit">
			<a href="?m=admin_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>