<?php
	require 'koneksi.php';
	include 'common/header.php';
?>

<div class="container-fluid">
	<h2> Daftar Feedback </h2>
	<hr/>
	<?php
		$komen = mysqli_query($GLOBALS["___mysqli_ston"], "SELECT * FROM komentar");
		while($q = mysqli_fetch_array($komen)){
	?>
			<div class="col-md-4">
				<div class="thumbnail">
					<label> Nama: &nbsp; <span> <?php echo $q['nama'] ?> </span> </label> <br>
					<label> <span> <?php echo $q['email'] ?> </span> </label> <br>
					<label> <span> <?php echo $q['hp'] ?> </span> </label> <br>
					<label> Komentar : </label> <br>
					<?php echo $q['isi'] ?>
					<br> <br>
					<div align="center">
						<a onclick="if(confirm('Anda yakin ingin menghapus komentar ini?')){
							location.href='hapus_komen.php?id=<?php echo $q['id_komentar'] ?>'
						}" class="btn btn-danger"> <span class="glyphicon glyphicon-remove"> </span> Hapus </a>
					</div>
				</div>
			</div>
	<?php
		}
	?>
	
</div>

<?php include 'common/footer.php'; ?>