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

<br/>
<hr/>
<h3><span class="glyphicon glyphicon-eye-open"></span>  Menu Detail </h3>
<div class="row">				    
    <?php
    $id = $_GET['id'];
	$id_user = $_GET['id_member'];
	$query = mysqli_query($koneksi, "SELECT * FROM menu WHERE id_menu = '$id'");
	$q = mysqli_fetch_array($query);
	?>
		<div class="col-md-6">
			<div align="center">
				<img src="picture/<?php echo $q['gambar'] ?>" class="img img-thumbnail" width="300" height="300">
			</div>
 		</div>
		<div class="col-md-6">
			<table class="table table-hover table-condensed">
				<tr>
					<td> Nama </td>
					<td> <?php echo $q['nama'] ?> </td>
				</tr>
				<tr>
					<td> Harga </td>
					<td> Rp. <?php echo number_format($q['harga']) ?>,- </td>
				</tr>
				<tr>
					<td>
						<form action="pesan_proses.php?id=<?php echo $id?>" method="post">
							<fieldset>
								<label for="jumlah"> Jumlah </label>
								<input type="text" tabindex="1" size="22" value="1" name="jumlah">&nbsp;
								<input type="submit" value="Masukkan Ke Cart" class="btn btn-success">
							</fieldset>
						</form>
					</td>
				</tr>
			</table>
		</div>
    </div>
       
<br/>
<?php
include 'common/footer.php';
?>