-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
105 lines (83 loc) · 3.22 KB
/
Copy pathindex.php
File metadata and controls
105 lines (83 loc) · 3.22 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!-- Important to make website responsive -->
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Restaurant Website</title>
<!-- Link our CSS file -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<?php
include("./partials/menu.php");
?>
<!-- fOOD sEARCH Section Starts Here -->
<section class="food-search text-center">
<div class="container">
<form action="food-search.php" method="POST">
<input type="search" name="search" placeholder="Search for Food.." required>
<input type="submit" name="submit" value="Search" class="btn btn-primary">
</form>
</div>
</section>
<!-- fOOD sEARCH Section Ends Here -->
<!-- CAtegories Section Starts Here -->
<section class="categories">
<div class="container">
<h2 class="text-center">Explore Foods</h2>
<?php
$sql ="SELECT * FROM `tbl_category` WHERE `tbl_featured`='Yes' AND `tbl_active`='Yes' LIMIT 3";
$run = mysqli_query($conn,$sql);
while ($fet = mysqli_fetch_array($run)) {
?>
<a href="category-foods.php?categoryid=<?php echo $fet['cat_id'];?>">
<div class="box-3 float-container">
<img src="<?php echo './images/category/'. $fet['tbl_img'];?>" alt="Pizza"
class="img-responsive img-curve">
<h3 class="float-text text-white"><?php echo $fet['cat_title']?></h3>
</div>
</a>
<?php
}
?>
<div class="clearfix"></div>
</div>
</section>
<!-- Categories Section Ends Here -->
<!-- fOOD MEnu Section Starts Here -->
<section class="food-menu">
<div class="container">
<h2 class="text-center">Food Menu</h2>
<?php
$food_fet_sql = "SELECT * FROM tbl_food WHERE `featured`= 'Yes' AND `active`='Yes' LIMIT 3";
$food_fet_run = mysqli_query($conn,$food_fet_sql);
while ($food_all = mysqli_fetch_array($food_fet_run)) {
?>
<div class="food-menu-box">
<div class="food-menu-img">
<img src="<?php echo './images/food/'. $food_all['food_img'];?>" alt="Chicke Hawain Pizza" class="img-responsive img-curve">
</div>
<div class="food-menu-desc">
<h4><?php echo $food_all['food_title'];?></h4>
<p class="food-price">Rs. <?php echo $food_all['food_price'];?></p>
<p class="food-detail">
<?php echo $food_all['food_des'];?>
</p>
<br>
<a href="order.php?orderid=<?php echo $food_all['food_id'];?>" class="btn btn-primary">Order Now</a>
</div>
</div>
<?php
}
?>
<div class="clearfix"></div>
</div>
<p class="text-center">
<a href="#">See All Foods</a>
</p>
</section>
<!-- fOOD Menu Section Ends Here -->
<?php include("./partials/footer.php");?>
</body>
</html>