1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include 'common/header.php';
require 'koneksi.php';
if(!isset($_SESSION['user'])){
header("location: form_login.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">
<input type="submit" value="Masukkan Ke Cart" class="btn btn-success">
</fieldset>
</form>
</td>
</tr>
</table>
</div>
</div>
<br/>
<?php
include 'common/footer.php';
?>