<title>Notification Details</title>
<div id="pagetitle">NOTIFICATION DETAILS</div>
<div id="batascontent" class="clearfix">
	<?php 
		$id = mysqli_real_escape_string($koneksi, $_GET['id']);
		$db = mysqli_query($koneksi, "SELECT * FROM cmas_notification WHERE notification_id='$id'");
		$dt = mysqli_fetch_array($db);
		
		mysqli_query($koneksi, "UPDATE cmas_notification SET notification_read='0' WHERE notification_id='$id'");
	?>
	<div id="wrapgsetting" class="clearfix">
		<div id="gsetting" class="clearfix">
			<div id="gsettinglabel">User</div>
			<div id="gsettinginput">
				<?php echo $dt['posted_nama']; ?>
			</div>
		</div>
		<div id="gsetting" class="clearfix">
			<div id="gsettinglabel">Status</div>
			<div id="gsettinginput">
				<?php echo $dt['notification_status']; ?>
			</div>
		</div>
		<div id="gsetting" class="clearfix">
			<div id="gsettinglabel">Description</div>
			<div id="gsettinginput">
				<?php echo $dt['notification_description']; ?>
			</div>
		</div>
		<div id="gsetting" class="clearfix">
			<div id="gsettinglabel">Date</div>
			<div id="gsettinginput">
				Send by <?php echo $dt['notification_ip']; ?> on <?php echo date_format(date_create($dt['postdated']), 'd/m/Y H:i:s'); ?>
			</div>
		</div>
	</div>	
	<div id="tombolsubmit">
		<a href="?m=notification_index"><input name="Button" type="button" value="KEMBALI" class="myButton"/></a>
	</div>
</div>
