Skip to content

Commit

Permalink
Update menu.php
Browse files Browse the repository at this point in the history
  • Loading branch information
22pt16 authored Apr 22, 2024
1 parent b13c742 commit a47ab2c
Showing 1 changed file with 18 additions and 181 deletions.
199 changes: 18 additions & 181 deletions menu.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

<?php
session_start();
$menu_query = pg_query($conn, "SELECT * FROM sample_menu");
?>

<!DOCTYPE html>
Expand Down Expand Up @@ -141,7 +140,7 @@
<i class="fa fa-hamburger fa-2x text-primary"></i>
<div class="ps-3">
<small class="text-body">Special</small>
<h6 class="mt-n1 mb-0">Lunch</h6>
<h6 class="mt-n1 mb-0">Launch</h6>
</div>
</a>
</li>
Expand All @@ -156,114 +155,30 @@
</li>
</ul>
<div class="tab-content">
<!-- TAB 1 -->
<div id="tab-1" class="tab-pane fade show p-0 active">
<div class="row g-4">
<?php while ($row = pg_fetch_assoc($menu_query)) { ?>
<!-- ITEM BEGIN -->
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src=<?php echo $row['picture']; ?> alt="" style="width: 80px;">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-8.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span><?php echo $row['food_items']; ?></span>
<span class="text-primary">$<?php echo $row['price']; ?></span>
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic"><?php echo $row['description']; ?></small>
<form id="menu-item-form-1" class="d-flex mt-3">
<input type="number" name="quantity" value="0" min="0" max="99" class="form-control me-2" style="width: 50px;">
<button type="submit" class="btn btn-primary">+</button>
</form>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<?php } ?>
<!-- ITEM END -->
</div>
</div>
<!-- TAB 1 END -->
<!-- TAB 2 -->
<div id="tab-2" class="tab-pane fade show p-0">
<div class="row g-4">
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-1.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-2.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-3.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-4.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-5.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-6.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-7.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<!-- ITEM START -->
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-8.jpg" alt="" style="width: 80px;">
Expand All @@ -276,10 +191,14 @@
</div>
</div>
</div>
<!-- ITEMS END -->
</div>
</div>
<!-- TAB 2 END -->
<!-- TAB 3 -->
<div id="tab-3" class="tab-pane fade show p-0">
<div class="row g-4">
<!-- ITEM 1 -->
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-1.jpg" alt="" style="width: 80px;">
Expand All @@ -292,92 +211,10 @@
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-2.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-3.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-4.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-5.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-6.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-7.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<div class="col-lg-6">
<div class="d-flex align-items-center">
<img class="flex-shrink-0 img-fluid rounded" src="img/menu-8.jpg" alt="" style="width: 80px;">
<div class="w-100 d-flex flex-column text-start ps-4">
<h5 class="d-flex justify-content-between border-bottom pb-2">
<span>Chicken Burger</span>
<span class="text-primary">$115</span>
</h5>
<small class="fst-italic">Ipsum ipsum clita erat amet dolor justo diam</small>
</div>
</div>
</div>
<!-- ITEMS END -->
</div>
</div>
<!-- TAB 3 END -->
</div>
</div>
</div>
Expand Down Expand Up @@ -471,4 +308,4 @@
</body>

</html>
<?php pg_close($conn); ?>
<?php pg_close($conn); ?>

0 comments on commit a47ab2c

Please sign in to comment.