edit

parent 887bbce7
......@@ -111,8 +111,17 @@ $start = ($page - 1) * $per_hal;
<div class="row">
<div id="w">
<ul>
<div class="col-lg-12">
<form action="cari_process.php" method="get">
<div class="input-group col-md-5 col-md-offset-7">
<span class="input-group-addon" id="basic-addon1"><span class="glyphicon glyphicon-search"></span></span>
<input type="text" class="form-control" placeholder="Cari menu di sini .." aria-describedby="basic-addon1" name="cari">
</div>
</form>
</div>
<br><br>
<div class="col-lg-12">
<?php
$query = "SELECT * FROM menu limit $start, $per_hal";
$result_set = $conn->query($query);
......@@ -123,7 +132,7 @@ $start = ($page - 1) * $per_hal;
<li class="item breakfast">
<?php echo $row['nama']?>
<img src="foto/<?php echo $row['gambar'] ?>" class="img-rounded" height="200" width="200" class="col-md-12 img-responsive">
<img src="foto/<?php echo $row['gambar'] ?>" class="img-rounded" height="260" width="220" class="col-md-12 img-responsive">
<h2 class="white">Rp. <?php echo $row['harga']; ?></h2>
<a href="pesan_barang.php?id=<?= $row['id'] ?>">
<button class="text-center btn-block form-btn">Pesan</button>
......@@ -132,9 +141,10 @@ $start = ($page - 1) * $per_hal;
</li>
<br>
</div>
<?php }
?>
<div class="col-md-12">
<ul class="pagination">
<?php
......@@ -218,7 +228,7 @@ $start = ($page - 1) * $per_hal;
$query = "SELECT * FROM Komentar";
$result_set = $conn->query($query);
while ($row = $result_set->fetch_assoc()) {
while ($row = $result_set->fetch_assoc()) {
?>
<div class="alert alert-success" role="alert"> <strong><?= $row['name'] ?></strong>
<p> <?= $row['komentar'] ?></p></div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment