-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
386 lines (350 loc) · 16.1 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
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
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<?php require "includes/header.php"; ?>
<?php require "config/config.php"; ?>
<?php
$products = $conn->query("SELECT * FROM products WHERE type='drink'");
$products->execute();
$allProducts = $products->fetchAll(PDO::FETCH_OBJ);
$reviews = $conn->query("SELECT * FROM reviews");
$reviews->execute();
$allReviews = $reviews->fetchAll(PDO::FETCH_OBJ);
?>
<section class="home-slider owl-carousel">
<div class="slider-item" style="background-image: url(images/bg_1.jpg);">
<div class="overlay"></div>
<div class="container">
<div class="row slider-text justify-content-center align-items-center" data-scrollax-parent="true">
<div class="col-md-8 col-sm-12 text-center ftco-animate">
<span class="subheading">Welcome</span>
<h1 class="mb-4">The Best Coffee Testing Experience</h1>
<p class="mb-4 mb-md-5">A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<p><a href="#" class="btn btn-primary p-3 px-xl-4 py-xl-3">Order Now</a> <a href="#" class="btn btn-white btn-outline-white p-3 px-xl-4 py-xl-3">View Menu</a></p>
</div>
</div>
</div>
</div>
<div class="slider-item" style="background-image: url(images/bg_2.jpg);">
<div class="overlay"></div>
<div class="container">
<div class="row slider-text justify-content-center align-items-center" data-scrollax-parent="true">
<div class="col-md-8 col-sm-12 text-center ftco-animate">
<span class="subheading">Welcome</span>
<h1 class="mb-4">Amazing Taste & Beautiful Place</h1>
<p class="mb-4 mb-md-5">A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<p><a href="#" class="btn btn-primary p-3 px-xl-4 py-xl-3">Order Now</a> <a href="#" class="btn btn-white btn-outline-white p-3 px-xl-4 py-xl-3">View Menu</a></p>
</div>
</div>
</div>
</div>
<div class="slider-item" style="background-image: url(images/bg_3.jpg);">
<div class="overlay"></div>
<div class="container">
<div class="row slider-text justify-content-center align-items-center" data-scrollax-parent="true">
<div class="col-md-8 col-sm-12 text-center ftco-animate">
<span class="subheading">Welcome</span>
<h1 class="mb-4">Creamy Hot and Ready to Serve</h1>
<p class="mb-4 mb-md-5">A small river named Duden flows by their place and supplies it with the necessary regelialia.</p>
<p><a href="#" class="btn btn-primary p-3 px-xl-4 py-xl-3">Order Now</a> <a href="#" class="btn btn-white btn-outline-white p-3 px-xl-4 py-xl-3">View Menu</a></p>
</div>
</div>
</div>
</div>
</section>
<section class="ftco-intro">
<div class="container-wrap">
<div class="wrap d-md-flex align-items-xl-end">
<div class="info">
<div class="row no-gutters">
<div class="col-md-4 d-flex ftco-animate">
<div class="icon"><span class="icon-phone"></span></div>
<div class="text">
<h3>000 (123) 456 7890</h3>
<p>A small river named Duden flows by their place and supplies.</p>
</div>
</div>
<div class="col-md-4 d-flex ftco-animate">
<div class="icon"><span class="icon-my_location"></span></div>
<div class="text">
<h3>198 West 21th Street</h3>
<p> 203 Fake St. Mountain View, San Francisco, California, USA</p>
</div>
</div>
<div class="col-md-4 d-flex ftco-animate">
<div class="icon"><span class="icon-clock-o"></span></div>
<div class="text">
<h3>Open Monday-Friday</h3>
<p>8:00am - 9:00pm</p>
</div>
</div>
</div>
</div>
<div class="book p-4">
<h3>Book a Table</h3>
<form action="booking/book.php" method="POST" class="appointment-form">
<div class="d-md-flex">
<div class="form-group">
<input type="text" name="first_name" class="form-control" placeholder="First Name">
</div>
<div class="form-group ml-md-4">
<input type="text" name="last_name" class="form-control" placeholder="Last Name">
</div>
</div>
<div class="d-md-flex">
<div class="form-group">
<div class="input-wrap">
<div class="icon"><span class="ion-md-calendar"></span></div>
<input name="date" type="text" class="form-control appointment_date" placeholder="Date">
</div>
</div>
<div class="form-group ml-md-4">
<div class="input-wrap">
<div class="icon"><span class="ion-ios-clock"></span></div>
<input name="time" type="text" class="form-control appointment_time" placeholder="Time">
</div>
</div>
<div class="form-group ml-md-4">
<input name="phone" type="text" class="form-control" placeholder="Phone">
</div>
</div>
<div class="d-md-flex">
<div class="form-group">
<textarea name="message" id="" cols="30" rows="2" class="form-control" placeholder="Message"></textarea>
</div>
<?php if(isset($_SESSION['user_id'])) : ?>
<div class="form-group ml-md-4">
<button type="submit" name="submit" class="btn btn-white py-3 px-4">Book a Table</button>
</div>
<?php else : ?>
<p class="text-white">login to book a table</p>
<?php endif; ?>
</div>
</form>
</div>
</div>
</div>
</section>
<section class="ftco-about d-md-flex">
<div class="one-half img" style="background-image: url(images/about.jpg);"></div>
<div class="one-half ftco-animate">
<div class="overlap">
<div class="heading-section ftco-animate ">
<span class="subheading">Discover</span>
<h2 class="mb-4">Our Story</h2>
</div>
<div>
<p>On her way she met a copy. The copy warned the Little Blind Text, that where it came from it would have been rewritten a thousand times and everything that was left from its origin would be the word "and" and the Little Blind Text should turn around and return to its own, safe country. But nothing the copy said could convince her and so it didn’t take long until a few insidious Copy Writers ambushed her, made her drunk with Longe and Parole and dragged her into their agency, where they abused her for their.</p>
</div>
</div>
</div>
</section>
<section class="ftco-section ftco-services">
<div class="container">
<div class="row">
<div class="col-md-4 ftco-animate">
<div class="media d-block text-center block-6 services">
<div class="icon d-flex justify-content-center align-items-center mb-5">
<span class="flaticon-choices"></span>
</div>
<div class="media-body">
<h3 class="heading">Easy to Order</h3>
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic.</p>
</div>
</div>
</div>
<div class="col-md-4 ftco-animate">
<div class="media d-block text-center block-6 services">
<div class="icon d-flex justify-content-center align-items-center mb-5">
<span class="flaticon-delivery-truck"></span>
</div>
<div class="media-body">
<h3 class="heading">Fastest Delivery</h3>
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic.</p>
</div>
</div>
</div>
<div class="col-md-4 ftco-animate">
<div class="media d-block text-center block-6 services">
<div class="icon d-flex justify-content-center align-items-center mb-5">
<span class="flaticon-coffee-bean"></span></div>
<div class="media-body">
<h3 class="heading">Quality Coffee</h3>
<p>Even the all-powerful Pointing has no control about the blind texts it is an almost unorthographic.</p>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="ftco-section">
<div class="container">
<div class="row align-items-center">
<div class="col-md-6 pr-md-5">
<div class="heading-section text-md-right ftco-animate">
<span class="subheading">Discover</span>
<h2 class="mb-4">Our Menu</h2>
<p class="mb-4">Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts. Separated they live in Bookmarksgrove right at the coast of the Semantics, a large language ocean.</p>
<p><a href="menu.php" class="btn btn-primary btn-outline-primary px-4 py-3">View Full Menu</a></p>
</div>
</div>
<div class="col-md-6">
<div class="row">
<div class="col-md-6">
<div class="menu-entry">
<a href="#" class="img" style="background-image: url(images/menu-1.jpg);"></a>
</div>
</div>
<div class="col-md-6">
<div class="menu-entry mt-lg-4">
<a href="#" class="img" style="background-image: url(images/menu-2.jpg);"></a>
</div>
</div>
<div class="col-md-6">
<div class="menu-entry">
<a href="#" class="img" style="background-image: url(images/menu-3.jpg);"></a>
</div>
</div>
<div class="col-md-6">
<div class="menu-entry mt-lg-4">
<a href="#" class="img" style="background-image: url(images/menu-4.jpg);"></a>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="ftco-counter ftco-bg-dark img" id="section-counter" style="background-image: url(images/bg_2.jpg);" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row justify-content-center">
<div class="col-md-10">
<div class="row">
<div class="col-md-6 col-lg-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<div class="icon"><span class="flaticon-coffee-cup"></span></div>
<strong class="number" data-number="100">0</strong>
<span>Coffee Branches</span>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<div class="icon"><span class="flaticon-coffee-cup"></span></div>
<strong class="number" data-number="85">0</strong>
<span>Number of Awards</span>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<div class="icon"><span class="flaticon-coffee-cup"></span></div>
<strong class="number" data-number="10567">0</strong>
<span>Happy Customer</span>
</div>
</div>
</div>
<div class="col-md-6 col-lg-3 d-flex justify-content-center counter-wrap ftco-animate">
<div class="block-18 text-center">
<div class="text">
<div class="icon"><span class="flaticon-coffee-cup"></span></div>
<strong class="number" data-number="900">0</strong>
<span>Staff</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="ftco-section">
<div class="container">
<div class="row justify-content-center mb-5 pb-3">
<div class="col-md-7 heading-section ftco-animate text-center">
<span class="subheading">Discover</span>
<h2 class="mb-4">Best Coffee Sellers</h2>
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.</p>
</div>
</div>
<div class="row">
<?php foreach($allProducts as $products) : ?>
<div class="col-md-3">
<div class="menu-entry">
<a target="_blank" href="products/product-single.php?id=<?php echo $products->id ?>" class="img" style="background-image: url(<?php echo IMAGEPRODUCTS; ?>/<?php echo $products->image ?>);"></a>
<div class="text text-center pt-4">
<h3><a href="#"><?php echo $products->name; ?></a></h3>
<p><?php echo $products->description; ?></p>
<p class="price"><span>$<?php echo $products->price; ?></span></p>
<p><a target="_blank" href="products/product-single.php?id=<?php echo $products->id ?>" class="btn btn-primary btn-outline-primary">Show</a></p>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<section class="ftco-gallery">
<div class="container-wrap">
<div class="row no-gutters">
<div class="col-md-3 ftco-animate">
<a href="gallery.html" class="gallery img d-flex align-items-center" style="background-image: url(images/gallery-1.jpg);">
<div class="icon mb-4 d-flex align-items-center justify-content-center">
<span class="icon-search"></span>
</div>
</a>
</div>
<div class="col-md-3 ftco-animate">
<a href="gallery.html" class="gallery img d-flex align-items-center" style="background-image: url(images/gallery-3.jpg);">
<div class="icon mb-4 d-flex align-items-center justify-content-center">
<span class="icon-search"></span>
</div>
</a>
</div>
<div class="col-md-3 ftco-animate">
<a href="gallery.html" class="gallery img d-flex align-items-center" style="background-image: url(images/gallery-3.jpg);">
<div class="icon mb-4 d-flex align-items-center justify-content-center">
<span class="icon-search"></span>
</div>
</a>
</div>
<div class="col-md-3 ftco-animate">
<a href="gallery.html" class="gallery img d-flex align-items-center" style="background-image: url(images/gallery-4.jpg);">
<div class="icon mb-4 d-flex align-items-center justify-content-center">
<span class="icon-search"></span>
</div>
</a>
</div>
</div>
</div>
</section>
<section class="ftco-section img" id="ftco-testimony" style="background-image: url(images/bg_1.jpg);" data-stellar-background-ratio="0.5">
<div class="overlay"></div>
<div class="container">
<div class="row justify-content-center mb-5">
<div class="col-md-7 heading-section text-center ftco-animate">
<span class="subheading">Testimony</span>
<h2 class="mb-4">Customers Says</h2>
<p>Far far away, behind the word mountains, far from the countries Vokalia and Consonantia, there live the blind texts.</p>
</div>
</div>
</div>
<div class="container-wrap">
<div class="row d-flex no-gutters">
<?php foreach($allReviews as $reviews) : ?>
<div class="col-md-3 align-self-sm-end ftco-animate">
<div class="testimony">
<blockquote>
<p>“<?php echo $reviews->review; ?>”</p>
</blockquote>
<div class="author d-flex mt-4">
<div class="name align-self-center"><?php echo $reviews->username; ?></div>
</div>
</div>
</div>
<?php endforeach; ?>
</div>
</div>
</section>
<?php require "includes/footer.php"; ?>