-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
200 lines (155 loc) · 6.46 KB
/
index.php
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
<?php include('partials-Fronts/menu.php') ?>
<!-- -----------------Foood Search starts ------------------------ -->
<section class="food-search text-center">
<div class="container">
<!-- <h1>Food search</h1> -->
<form action="">
<input type="search" name="search" placeholder="Search For Food">
<input type="submit" name="submit" value="Search" class="btn btn-primary">
</form>
</div>
</section>
<!-- -----------------Foood Search Ends ------------------------ -->
<!-- -----------------Categories starts ------------------------ -->
<section class="categories">
<div class="container">
<h1 class="text-center">Explore Foods</h1>
<?php
//creating sql queries
$sql = "SELECT * FROM tbl_category WHERE featured = 'yes' AND active= 'yes' LIMIT 3"; //this keyword only display 3 row form data base
$qry = mysqli_query($conn, $sql);
$count = mysqli_num_rows($qry);
if ($count > 0) {
while ($row = mysqli_fetch_assoc($qry)) {
$id = $row['id'];
$title = $row['title'];
$image_name = $row['img_name'];
?>
<a href="#">
<div class="box-3 float-container">
<?php
if ($image_name == "") {
echo ("No image found");
} else {
?>
<img src="<?php echo SITEURL; ?>images/category/<?php echo $image_name ?>" alt="Pizza" class="img-responsive img-curve">
<?php
}
?>
<h3 class="float-text text-white"><?php echo $title?></h3>
</div>
</a>
<?php
}
} else {
echo ("Categories not Availabel");
}
?>
<!-- <a href="#">
<div class="box-3 float-container">
<img src="images/burger.jpg" alt="Burger" class="img-responsive img-curve">
<h3 class="float-text text-white">Burger</h3>
</div>
</a>
<a href="#">
<div class="box-3 float-container">
<img src="images/momo.jpg" alt="Momo" class="img-responsive img-curve">
<h3 class="float-text text-white">Momo</h3>
</div>
</a> -->
<div class="clearfix"></div>
</div>
</section>
<!-- ---------------Categories Ends ---------------------- -->
<!-- -----------------food-menu starts ------------------------ -->
<section class="food-menu">
<div class="container">
<h1 class="text-center">Special Food</h1>
<div class="food-menu-box">
<div class="food-menu-img">
` <img src="images/menu-pizza.jpg" alt="Chicken Hawain Pizza" class="img-curve img-responsive">
</div>
<div class="food-menu-desc">
<h4>Chicken Pizza</h4>
<p class="food-price">$1.3</p>
<p class="food-desc">this food is one of the kind </p>
<br>
<a href="#" class="btn btn-primary">Order Now</a>
</div>
<div class="clearfix"></div>
</div>
<!-- ------------------------- -->
<div class="food-menu-box">
<div class="food-menu-img">
` <img src="images/menu-burger.jpg" alt="Chicken Hawain Burger" class="img-curve img-responsive">
</div>
<div class="food-menu-desc">
<h4>Burger</h4>
<p class="food-price">$3</p>
<p class="food-desc">this food is one of the kind </p>
<br>
<a href="#" class="btn btn-primary">Order Now</a>
</div>
<div class="clearfix"></div>
</div>
<!-- ------------------------------ -->
<div class="food-menu-box">
<div class="food-menu-img">
` <img src="images/i01_chevanon.jpg" alt="i01_chevanon" class="img-curve img-responsive">
</div>
<div class="food-menu-desc">
<h4>Chevanon</h4>
<p class="food-price">$5</p>
<p class="food-desc">this food is one of the kind </p>
<br>
<a href="#" class="btn btn-primary">Order Now</a>
</div>
<div class="clearfix"></div>
</div>
<!-- --------------------------- -->
<div class="food-menu-box">
<div class="food-menu-img">
` <img src="images/pexels-cats-coming-955137.jpg" alt="Yamari" class="img-curve img-responsive">
</div>
<div class="food-menu-desc">
<h4>Yamari</h4>
<p class="food-price">$3.5</p>
<p class="food-desc">this food is one of the kind </p>
<br>
<a href="#" class="btn btn-primary">Order Now</a>
</div>
<div class="clearfix"></div>
</div>
<!-- ---------------------------------- -->
<div class="food-menu-box">
<div class="food-menu-img">
` <img src="images/fried.jpg" alt="Fried Rice" class="img-curve img-responsive">
</div>
<div class="food-menu-desc">
<h4>Fried Rice</h4>
<p class="food-price">$1</p>
<p class="food-desc">this food is one of the kind </p>
<br>
<a href="#" class="btn btn-primary">Order Now</a>
</div>
<div class="clearfix"></div>
</div>
<!-- --------------------------- -->
<div class="food-menu-box">
<div class="food-menu-img">
` <img src="images/menu-momo.jpg" alt="Momo" class="img-curve img-responsive">
</div>
<div class="food-menu-desc">
<h4>Chicken Momo</h4>
<p class="food-price">$1.5</p>
<p class="food-desc">this food is one of the kind </p>
<br>
<a href="#" class="btn btn-primary">Order Now</a>
</div>
<div class="clearfix"></div>
</div>
<div class="clearfix"></div>
</div>
</section>
<!-- -----------------food-menu ENds ------------------------ -->
<?php include('partials-Fronts/footer.php'); ?>