<title>Edit Logo</title>
<div id="pagetitle">EDIT LOGO</div>
<div id="batascontent" class="clearfix">
	<form action="?m=logo_update" method="post" enctype="multipart/form-data">
		<?php
			$id = mysqli_real_escape_string($koneksi, $_GET['id']);
			$db = mysqli_query($koneksi, "SELECT * FROM cmas_logo WHERE logo_id='$id'");
			$dt = mysqli_fetch_array($db);
		?>
		<input name="logo_id" type="hidden" value="<?php echo $dt['logo_id']; ?>">
		
		<div id="wrapgsetting" class="clearfix">
			<div id="gsettingleft">
				<div id="gsettingtitles">GENERAL</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Nama Logo</div>
					<div id="gsettingedit">
						<input name="logo_nama" type="text" value="<?php echo $dt['logo_nama']; ?>">
					</div>
				</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Ukuran Lebar (px)</div>
					<div id="gsettingedit">
						<input name="logo_lebar" type="text" value="<?php echo $dt['logo_lebar']; ?>">
					</div>
				</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Ukuran Tinggi (px)</div>
					<div id="gsettingedit">
						<input name="logo_panjang" type="text" value="<?php echo $dt['logo_panjang']; ?>">
					</div>
				</div>
			</div>
			<div id="gsettingrite">
				<div id="gsettingtitles">IMAGE</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Upload</div>
					<div id="gsettingimage">
						<input name="logo_gambar" type="file"/>
					</div>
				</div>
				<div id="gsetting" class="clearfix">
					<div id="gsettinglabel">Logo</div>
					<div id="gsettingimgbig">
						<img src="assets/images/<?php echo $dt['logo_gambar']; ?>">
					</div>
				</div>
			</div>
		</div>
		<div id="tombolsubmit">
			<a href="?m=logo_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="infobottomfull">
			<?php $abdb = mysqli_query($koneksi, "SELECT * FROM cmas_admin WHERE admin_id='$dt[updated_id]'"); $abdt = mysqli_fetch_array($abdb); ?>
			Updated by <b><?php echo $abdt['admin_nama']; ?></b> on <b><?php echo date_format(date_create($dt['updated']), 'd/m/Y H:i:s'); ?></b>
		</div>
	</div>
</div>