-
Notifications
You must be signed in to change notification settings - Fork 0
/
menu.php
302 lines (263 loc) · 10.3 KB
/
menu.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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
<?php session_start(); ?>
<?php include "header.php"; ?>
<!-- Start All Pages -->
<div class="all-page-title page-breadcrumb">
<div class="container text-center">
<div class="row">
<div class="col-lg-12">
<h1>Special Menu</h1>
</div>
</div>
</div>
</div>
<!-- End All Pages -->
<!-- Start Menu -->
<div class="menu-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Special Menu</h2>
<p>Every day is a good day for your restaurant</p>
</div>
</div>
</div>
<div class="row inner-menu-box">
<div class="col-3">
<div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
<a class="nav-link active" id="v-pills-home-tab" data-toggle="pill" href="#v-pills-home" role="tab" aria-controls="v-pills-home" aria-selected="true">All</a>
<a class="nav-link" id="v-pills-profile-tab" data-toggle="pill" href="#v-pills-profile" role="tab" aria-controls="v-pills-profile" aria-selected="false">KathiyaWadi</a>
<a class="nav-link" id="v-pills-messages-tab" data-toggle="pill" href="#v-pills-messages" role="tab" aria-controls="v-pills-messages" aria-selected="false">RajsThani</</a>
<a class="nav-link" id="v-pills-settings-tab" data-toggle="pill" href="#v-pills-settings" role="tab" aria-controls="v-pills-settings" aria-selected="false">Rise</a>
<a class="nav-link" id="v-pills-tava-tab" data-toggle="pill" href="#v-pills-tava" role="tab" aria-controls="v-pills-tava" aria-selected="false">tava</a>
</div>
</div>
<div class="col-9">
<div class="tab-content" id="v-pills-tabContent">
<div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo $r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:170px;'>
<div class="why-text">
<h4><?php echo $r['title']; ?></h4>
<p><?php echo $r['description']; ?></p>
<p>Rs <?php echo $r['price']; ?> /-</p>
<h5 align="center">
<?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add Cart</a>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-profile" role="tabpanel" aria-labelledby="v-pills-profile-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu where category='kathiyawadi'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo $r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:170px;'>
<div class="why-text">
<h4><?php echo $r['title']; ?></h4>
<p><?php echo $r['description']; ?></p>
<h5>Rs <?php echo $r['price']; ?> /-</h5>
<h5 align="center">
<?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-messages" role="tabpanel" aria-labelledby="v-pills-messages-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu where category='rajsthani'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo $r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:170px;'>
<div class="why-text">
<h4><?php echo $r['title']; ?></h4>
<p><?php echo $r['description']; ?></p>
<h5>Rs <?php echo $r['price']; ?> /-</h5>
<h5 align="center">
<?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-settings" role="tabpanel" aria-labelledby="v-pills-settings-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu where category='rise'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo $r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:170px;'>
<div class="why-text">
<h4><?php echo $r['title']; ?></h4>
<p><?php echo $r['description']; ?></p>
<h5>Rs <?php echo $r['price']; ?> /-</h5>
<h5 align="center">
<?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add Cart</a>
<?php } ?>
</h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
<div class="tab-pane fade" id="v-pills-tava" role="tabpanel" aria-labelledby="v-pills-tava-tab">
<div class="row">
<?php include "connect.php";
$s = mysqli_query($con,"select * from menu where category='tava'");
while($r = mysqli_fetch_array($s))
{
?>
<div class="col-lg-4 col-md-6 special-grid drinks">
<div class="gallery-single fix">
<img src="admin/<?php echo $r['image']; ?>" class="img-fluid" alt="Image" style='width: 263px; height:170px;'>
<div class="why-text">
<h4><?php echo $r['title']; ?></h4>
<p><?php echo $r['description']; ?></p>
<h5>Rs <?php echo $r['price']; ?> /-</h5>
<h5 align="center"><?php if(isset($_SESSION['uid']))
{
?>
<a href="addcart.php?pid=<?php echo $r['id']; ?>&uid=<?php echo $_SESSION['uid']; ?>&price=<?php echo $r['price']; ?>">Add Cart</a></h5>
<?php
}
else
{
?>
<a href="login.php">Add Cart</a>
<?php } ?></h5>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- End Menu -->
<!-- Start Customer Reviews -->
<div class="customer-reviews-box">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="heading-title text-center">
<h2>Customer Reviews</h2>
<p>"if you build a greater experience, customer tell each other about that, word of mouth is very powerful"</p>
</div>
</div>
</div>
<div class="row">
<div class="col-md-8 mr-auto ml-auto text-center">
<div id="reviews" class="carousel slide" data-ride="carousel">
<div class="carousel-inner mt-4">
<?php include "connect.php";
$s = mysqli_query($con,"select * from review limit 4");
while($r = mysqli_fetch_array($s))
{
?>
<div class="carousel-item text-center ">
<div class="img-box p-1 border rounded-circle m-auto">
<img class="d-block w-100 rounded-circle" src="images/quotations-button.png" alt="">
</div>
<h5 class="mt-4 mb-0"><strong class="text-warning text-uppercase">
<?php echo $r['name']; ?>
</strong></h5>
<h6 class="text-dark m-0">Review : <?php echo $r['review']; ?></h6>
<p class="m-0 pt-3">
<?php echo $r['description']; ?>
</p>
</div>
<?php } ?>
<div class="carousel-item text-center active">
<div class="img-box p-1 border rounded-circle m-auto">
<img class="d-block w-100 rounded-circle" src="images/quotations-button.png" alt="">
</div>
<h5 class="mt-4 mb-0"><strong class="text-warning text-uppercase">Nilkanth</strong></h5>
<h6 class="text-dark m-0">Review : Good</h6>
<p class="m-0 pt-3">
Good Food, Good Health
</p>
</div>
</div>
<a class="carousel-control-prev" href="#reviews" role="button" data-slide="prev">
<i class="fa fa-angle-left" aria-hidden="true"></i>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#reviews" role="button" data-slide="next">
<i class="fa fa-angle-right" aria-hidden="true"></i>
<span class="sr-only">Next</span>
</a>
</div>
</div>
</div>
</div>
</div>
<!-- End Customer Reviews -->
<?php include "footer.php" ?>