edit

parent 7789b506
......@@ -3,7 +3,7 @@ session_start();
include_once 'functions/fungsi.php';
include_once 'connection/koneksi.php';
$id = $_GET['kd'];
?>
<!DOCTYPE html>
<html>
......@@ -110,27 +110,53 @@ $start = ($page - 1) * $per_hal;
<ul class="tp-hd-lft wow fadeInDown animated" data-wow-delay="0.5s"></ul>
<div class="row">
<div id="w">
<ul>
<?php
if(isset($_POST['cari'])) {
$cari = $_POST['search'];
$sql = mysqli_query($conn, "SELECT * FROM menu WHERE nama LIKE '%$cari%' ORDER BY kategori");
}
?>
<div class="col-lg-12">
<form action="cari_process.php" method="get">
<form action="" 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>
<input type="text" class="form-control" placeholder="Cari menu di sini .." aria-describedby="basic-addon1" name="search">
</form>
</div>
<br><br>
<div class="top-brands">
<div class="container">
<div class="grid_3 grid_5">
<div class="bs-example bs-example-tabs" role="tabpanel" data-example-id="togglable-tabs">
<ul id="myTab" class="nav nav-tabs" role="tablist">
<li role="presentation" class="active"><a href="#expeditions" id="expeditions-tab" role="tab" data-toggle="tab" aria-controls="expeditions" aria-expanded="true">Makanan</a></li>
<li role="presentation"><a href="#tours" role="tab" id="tours-tab" data-toggle="tab" aria-controls="tours">Minuman</a></li>
</ul>
<div id="myTabContent" class="tab-content">
<div role="tabpanel" class="tab-pane fade in active" id="expeditions" aria-labelledby="expeditions-tab">
<div class="agile-tp">
<h2>Berikut daftar buku makanan pada cafe ini</h2>
</div>
<div class="agile_top_brands_grids">
<?php
$query = "SELECT * FROM menu limit $start, $per_hal";
$result_set = $conn->query($query);
while ($row = $result_set->fetch_assoc()) {
?>
<div class="col-lg-3">
<li class="item breakfast">
<?php echo $row['nama']?>
$query = "SELECT * FROM menu WHERE id_kategori=1 limit $start, $per_hal";
$result_set = $conn->query($query);
while ($row = $result_set->fetch_assoc()) {
?>
<div class="col-md-3 top_brand_left">
<div class="hover14 column">
<div class="agile_top_brand_left_grid">
<div class="agile_top_brand_left_grid_pos">
<img src="images/offer.png" alt=" " class="img-responsive">
</div>
<div class="agile_top_brand_left_grid1">
<figure>
<div class="snipcart-item block" >
<div class="snipcart-thumb">
<li class="item breakfast">
<?php echo $row['nama']?><br>
<img src="foto/<?php echo $row['gambar'] ?>" class="img-rounded" height="250" 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'] ?>">
......@@ -138,12 +164,69 @@ $start = ($page - 1) * $per_hal;
</a>
<?php echo $row['deskripsi']?>
</li>
<br>
<br>
</div>
</figure>
</div>
</div>
</div>
<?php }
?>
<br>
</div>
<?php
}
?>
<div class="clearfix"> </div>
</div>
</div>
<div role="tabpanel" class="tab-pane fade" id="tours" aria-labelledby="tours-tab">
<div class="agile-tp">
<h2>Berikut daftar buku minuman pada cafe ini</h2>
</div>
<div class="agile_top_brands_grids">
<?php
$query = "SELECT * FROM menu WHERE id_kategori=2 limit $start, $per_hal";
$result_set = $conn->query($query);
while ($row = $result_set->fetch_assoc()) {
?>
<div class="col-md-3 top_brand_left">
<div class="hover14 column">
<div class="agile_top_brand_left_grid">
<div class="agile_top_brand_left_grid_pos">
<img src="images/offer.png" alt=" " class="img-responsive">
</div>
<div class="agile_top_brand_left_grid1">
<figure>
<div class="snipcart-item block" >
<div class="snipcart-thumb">
<li class="item breakfast">
<?php echo $row['nama']?><br>
<img src="foto/<?php echo $row['gambar'] ?>" class="img-rounded" height="250" 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>
</a>
<?php echo $row['deskripsi']?>
</li>
<br>
</div>
</figure>
</div>
</div>
</div>
<br>
</div>
<?php
}
?>
<div class="clearfix"> </div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- //top-brands -->
<div class="col-md-12">
<ul class="pagination">
......@@ -170,8 +253,8 @@ $start = ($page - 1) * $per_hal;
<section id="komentar" class="description_content">
<div class="bread background_content">
<h1>Beri Komentar</h1>
<h2 class="white second-title">"Jika anda memiliki pertanyaan ataupun komentar,anda dapat mengisi formulir dibawah ini"</h2>
<h1>Beri Saran/Pertanyaan</h1>
<h2 class="white second-title">"Jika anda memiliki saran ataupun pertanyaan,anda dapat mengisi formulir dibawah ini"</h2>
</div>
<div class="text-content container">
<div class="inner contact">
......
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