-
Notifications
You must be signed in to change notification settings - Fork 0
/
aftersign.php
667 lines (624 loc) · 24.9 KB
/
aftersign.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
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
<!DOCTYPE html>
<html>
<head>
<!-- Basic -->
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<!-- Mobile Metas -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<!-- Site Metas -->
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="author" content="" />
<link rel="shortcut icon" href="images/favicon.png" type="">
<link rel="stylesheet" href="mystyle.css">
<title> HungryHub </title>
<!-- bootstrap core css -->
<link rel="stylesheet" type="text/css" href="css/bootstrap.css" />
<!--owl slider stylesheet -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/assets/owl.carousel.min.css" />
<!-- nice select -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery-nice-select/1.1.0/css/nice-select.min.css" integrity="sha512-CruCP+TD3yXzlvvijET8wV5WxxEh5H8P4cmz0RFbKK6FlZ2sYl3AEsKlLPHbniXKSrDdFewhbmBK5skbdsASbQ==" crossorigin="anonymous" />
<!-- font awesome style -->
<link href="css/font-awesome.min.css" rel="stylesheet" />
<!-- Custom styles for this template -->
<link href="css/style.css" rel="stylesheet" />
<!-- responsive style -->
<link href="css/responsive.css" rel="stylesheet" />
<link rel="stylesheet" type="text/css" href="mystyle.css">
</head>
<body class="sub_page">
<div class="hero_area">
<div class="bg-box">
<img src="images/hero-bg.jpg" alt="">
</div>
<!-- header section strats -->
<header class="header_section">
<div class="container">
<nav class="navbar navbar-expand-lg custom_nav-container ">
<a class="navbar-brand" href="aftersignindex.php">
<span>
HungryHub
</span>
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class=""> </span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mx-auto ">
<li class="nav-item">
<a class="nav-link" href="aftersignindex.php">Home </a>
</li>
<li class="nav-item active">
<a class="nav-link" href="aftersign.php">Menu <span class="sr-only">(current)</span> </a>
</li>
<li class="nav-item">
<a class="nav-link" href="aftersignabout.php">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="aftersignbook.php">Book Table</a>
</li>
</ul>
<div class="user_option">
<div class="dropdown">
<a href="" class="user_link">
<i class="fa fa-user" aria-hidden="true"></i>
</a>
<div class="dropdown-content">
<a href="customer.php">Logout</a>
</div>
</div>
<a class="cart_link" href="cart.php">
<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 456.029 456.029" style="enable-background:new 0 0 456.029 456.029;" xml:space="preserve">
<g>
<g>
<path d="M345.6,338.862c-29.184,0-53.248,23.552-53.248,53.248c0,29.184,23.552,53.248,53.248,53.248
c29.184,0,53.248-23.552,53.248-53.248C398.336,362.926,374.784,338.862,345.6,338.862z" />
</g>
</g>
<g>
<g>
<path d="M439.296,84.91c-1.024,0-2.56-0.512-4.096-0.512H112.64l-5.12-34.304C104.448,27.566,84.992,10.67,61.952,10.67H20.48
C9.216,10.67,0,19.886,0,31.15c0,11.264,9.216,20.48,20.48,20.48h41.472c2.56,0,4.608,2.048,5.12,4.608l31.744,216.064
c4.096,27.136,27.648,47.616,55.296,47.616h212.992c26.624,0,49.664-18.944,55.296-45.056l33.28-166.4
C457.728,97.71,450.56,86.958,439.296,84.91z" />
</g>
</g>
<g>
<g>
<path d="M215.04,389.55c-1.024-28.16-24.576-50.688-52.736-50.688c-29.696,1.536-52.224,26.112-51.2,55.296
c1.024,28.16,24.064,50.688,52.224,50.688h1.024C193.536,443.31,216.576,418.734,215.04,389.55z" />
</g>
</g>
</svg>
</a>
<form class="form-inline">
<button class="btn my-2 my-sm-0 nav_search-btn" type="submit">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
</form>
<a href="aftersign.php" class="order_online">
Order Online
</a>
</div>
</div>
</nav>
</div>
</header>
<!-- end header section -->
</div>
<div class="greeting">
Hi, Customer please choose from our menu
</div>
<!-- food section -->
<section class="food_section layout_padding-bottom">
<div class="container">
<div class="heading_container heading_center">
<h2>
Our Menu
</h2>
</div>
<ul class="filters_menu">
<li class="active" data-filter="*">All</li>
<li data-filter=".burger">Burger</li>
<li data-filter=".pizza">Wraps</li>
<li data-filter=".pasta">Pasta</li>
<li data-filter=".fries">Fries</li>
</ul>
<div class="filters-content">
<div class="row grid">
<div class="col-sm-6 col-lg-4 all pizza">
<div class="box">
<div>
<div class="img-box">
<img src="images/chicken_wrap.png" alt="">
</div>
<div class="detail-box">
<h5>
Chicken Wrap
</h5>
<p>
Special Sauce, Capsicum, Spicy Chicken, Cheese, Onion Olives, Tomato
</p>
<div class="options">
<h6>
$8.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Chicken Wrap">
<input type="hidden" name="Descrip" value="Special Sauce, Capsicum, Spicy Chicken, Cheese, Onion Olives, Tomato">
<input type="hidden" name="Price" value="8.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all burger">
<div class="box">
<div>
<div class="img-box">
<img src="images/f2.png" alt="">
</div>
<div class="detail-box">
<h5>
Classic Cheese Burger
</h5>
<p>
Splendid Chicken, Cheese, lettuce, Special sauce, Spicy sauce, Tomatoes, Chillis.
</p>
<div class="options">
<h6>
$9.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Classic Cheese Burger">
<input type="hidden" name="Descrip" value="Splendid Chicken, Cheese, lettuce, Special sauce, Spicy sauce, Tomatoes, Chillis.">
<input type="hidden" name="Price" value="9.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all pizza">
<div class="box">
<div>
<div class="img-box">
<img src="images/chicken-caesar-lettuce-wraps.png" alt="">
</div>
<div class="detail-box">
<h5>
Chicken Ceasar Wrap
</h5>
<p>
Romaine Lettuce, Cooked Chicken, Caesar Dressing, Red Onion, Anchovies.
</p>
<div class="options">
<h6>
$8.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Chicken Ceasar Wrap">
<input type="hidden" name="Descrip" value=" Romaine Lettuce, Cooked Chicken, Caesar Dressing, Red Onion, Anchovies.">
<input type="hidden" name="Price" value="8.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all pasta">
<div class="box">
<div>
<div class="img-box">
<img src="images/f4.png" alt="">
</div>
<div class="detail-box">
<h5>
Chef''s Special Pasta
</h5>
<p>
Parmesan Cheese, Olive Oil, Olives, Sundried Tomatoes, Sweet corn, Italian pasta.
</p>
<div class="options">
<h6>
$14.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Chef''s Special Pasta">
<input type="hidden" name="Descrip" value=" Parmesan Cheese, Olive Oil, Olives, Sundried Tomatoes, Sweet corn, Italian pasta.">
<input type="hidden" name="Price" value="14.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all fries">
<div class="box">
<div>
<div class="img-box">
<img src="images/fries.png" alt="">
</div>
<div class="detail-box">
<h5>
Loaded Fries
</h5>
<p>
French Fries with chicken pieces dipped in any sauce of your Choice.
</p>
<div class="options">
<h6>
$6.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Loaded Fries">
<input type="hidden" name="Descrip" value=" French Fries with chicken pieces dipped in any sauce of your Choice.">
<input type="hidden" name="Price" value="6.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all pizza">
<div class="box">
<div>
<div class="img-box">
<img src="images/wrap.png" alt="">
</div>
<div class="detail-box">
<h5>
Tender Chicken Wrap
</h5>
<p>
Spicy Chicken, Bell pepper, Jalapeño, Tomatoes, blend of different sauces.
</p>
<div class="options">
<h6>
$8.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Tender Chicken Wrap">
<input type="hidden" name="Descrip" value="Spicy Chicken, Bell pepper, Jalapeño, Tomatoes, blend of different sauces.">
<input type="hidden" name="Price" value="8.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all burger">
<div class="box">
<div>
<div class="img-box">
<img src="images/f7.png" alt="">
</div>
<div class="detail-box">
<h5>
Beef Burger
</h5>
<p>
Beef steak, lettuce, Tomatoes, Jalapeño, sriracha sauce, Mozzarella Cheese, Bell pepper.
</p>
<div class="options">
<h6>
$9.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Beef Burger">
<input type="hidden" name="Descrip" value="Beef steak, lettuce, Tomatoes, Jalapeño, sriracha sauce, Mozzarella Cheese, Bell pepper.">
<input type="hidden" name="Price" value="9.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all burger">
<div class="box">
<div>
<div class="img-box">
<img src="images/f8.png" alt="">
</div>
<div class="detail-box">
<h5>
Grilled Chicken Burger.
</h5>
<p>
Chicken Fitllet, lettuce, Tomatoes, Jalapeño, Mozzarella Cheese.
</p>
<div class="options">
<h6>
$9.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Grilled Chicken Burger.">
<input type="hidden" name="Descrip" value="Chicken Fitllet, lettuce, Tomatoes, Jalapeño, Mozzarella Cheese.">
<input type="hidden" name="Price" value="9.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-6 col-lg-4 all pasta">
<div class="box">
<div>
<div class="img-box">
<img src="images/f9.png" alt="" >
</div>
<div class="detail-box">
<h5>
Red Sauce Pasta
</h5>
<p>
Dried red chili flakes, Epazote, Basil, Oregano, Parsley, and lack pepper.
</p>
<div class="options">
<h6>
$14.99
</h6>
<form id="AddToCart" method="post" action="AddToCart.php">
<input type="hidden" name="Item" value="Red Sauce Pasta">
<input type="hidden" name="Descrip" value="Dried red chili flakes, Epazote, Basil, Oregano, Parsley, and lack pepper.">
<input type="hidden" name="Price" value="14.99">
<button type="submit" class="btn btn-warning" name="save">Add to Cart</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="btn-box">
<a href="aftersign.php">
View More
</a>
</div>
</div>
</section>
<!-- end food section -->
<!-- book section -->
<section class="book_section layout_padding">
<div class="container">
<div class="heading_container">
<h2>
Book A Table
</h2>
</div>
<div class="row">
<div class="col-md-6">
<div class="form_container">
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Add your head elements here -->
</head>
<body>
<form id="bookingForm" action="" method="post">
<div>
<input type="text" class="form-control" placeholder="Your Name" name="Name1"/>
</div>
<div>
<input type="text" class="form-control" placeholder="Phone Number" name="Phone"/>
</div>
<div>
<input type="email" class="form-control" placeholder="Your Email" name="Email"/>
</div>
<div>
<select class="form-control nice-select wide" name="Persons">
<option value="" disabled selected>
How many persons?
</option>
<option value="2">
2
</option>
<option value="3">
3
</option>
<option value="4">
4
</option>
<option value="5">
5
</option>
</select>
</div>
<div>
<input type="date" class="form-control" name="Date1">
</div>
<div class="btn_box">
<button type="submit" name="submit">
Book Now
</button>
</div>
</form>
<?php
if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['submit'])) {
// Assuming you have a database connection
$servername = "";
$username = "";
$password = "";
$dbname = "";
$conn = mysqli_connect('localhost', 'root', '', 'final');
// Check connection
if (!$conn) {
die("Connection failed: " . mysqli_connect_error());
}
// Get form data
$name = $_POST['Name1'];
$phone = $_POST['Phone'];
$email = $_POST['Email'];
$persons = $_POST['Persons'];
$date = $_POST['Date1'];
// Insert data into the database
$sql = "INSERT INTO Booktable (Name1, Phone, Email, Persons, Date1) VALUES ('$name', '$phone', '$email', '$persons', '$date')";
if (mysqli_query($conn, $sql)) {
echo "Booking successful!";
} else {
echo "Error: " . $sql . "<br>" . mysqli_error($conn);
}
mysqli_close($conn);
}
?>
<!-- Add your other HTML elements here -->
</body>
</html>
</div>
</div>
<div class="col-md-6">
<div class="map_container ">
<div id="googleMap"></div>
</div>
</div>
</div>
</div>
</section>
<!-- end book section -->
<!-- about section -->
<section class="about_section layout_padding">
<div class="container ">
<div class="row">
<div class="col-md-6 ">
<div class="img-box">
<img src="images/about-img.png" alt="">
</div>
</div>
<div class="col-md-6">
<div class="detail-box">
<div class="heading_container">
<h2>
We Are HungryHub
</h2>
</div>
<p>
HungryHub, a distinguished Italian restaurant, is renowned for its authentic flavors and culinary mastery.
From perfectly al dente pastas to expertly crafted wraps and burgers,
each dish is a testament to the restaurant's commitment to excellence.
The menu showcases a harmonious fusion of traditional Italian artistry and modern innovation,
creating a delightful dining experience. HungryHub's golden,
crispy fries add the perfect touch to complete a meal of exquisite taste.
</p>
<a href="aftersignabout.php">
Read More
</a>
</div>
</div>
</div>
</div>
</section>
<!-- end about section -->
<!-- footer section -->
<footer class="footer_section">
<div class="container">
<div class="row">
<div class="col-md-4 footer-col">
<div class="footer_contact">
<h4>
Contact Us
</h4>
<div class="contact_link_box">
<a href="aftersignabout.php">
<i class="fa fa-map-marker" aria-hidden="true"></i>
<span>
Location
</span>
</a>
<a href="">
<i class="fa fa-phone" aria-hidden="true"></i>
<span>
Call +92 1234567890
</span>
</a>
<a href="">
<i class="fa fa-envelope" aria-hidden="true"></i>
<span>
</span>
</a>
</div>
</div>
</div>
<div class="col-md-4 footer-col">
<div class="footer_detail">
<a href="aftersignindex.php" class="footer-logo">
HungryHub
</a>
<p>
Follow us on
</p>
<div class="footer_social">
<a href="https://www.facebook.com/">
<i class="fa fa-facebook" aria-hidden="true"></i>
</a>
<a href="https://twitter.com/?lang=en">
<i class="fa fa-twitter" aria-hidden="true"></i>
</a>
<a href="https://www.linkedin.com/">
<i class="fa fa-linkedin" aria-hidden="true"></i>
</a>
<a href="https://www.instagram.com/">
<i class="fa fa-instagram" aria-hidden="true"></i>
</a>
<a href="https://www.pinterest.com/">
<i class="fa fa-pinterest" aria-hidden="true"></i>
</a>
</div>
</div>
</div>
<div class="col-md-4 footer-col">
<h4>
Opening Hours
</h4>
<p>
Everyday
</p>
<p>
10.00 Am -10.00 Pm
</p>
</div>
</div>
<div class="footer-info">
<p>
© <span id="displayYear"></span> All Rights Reserved By
<a href="aftersignabout.php">HungryHub</a><br><br>
© <span id="displayYear"></span> Distributed By
<a href="https://cms.bahria.edu.pk/Logins/Student/Login.aspx" target="_blank">Ahmed, Ashad, Shahbaz</a>
</p>
</div>
</div>
</footer>
<!-- footer section -->
<!-- jQery -->
<script src="js/jquery-3.4.1.min.js"></script>
<!-- popper js -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous">
</script>
<!-- bootstrap js -->
<script src="js/bootstrap.js"></script>
<!-- owl slider -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.3.4/owl.carousel.min.js">
</script>
<!-- isotope js -->
<script src="https://unpkg.com/[email protected]/dist/isotope.pkgd.min.js"></script>
<!-- nice select -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-nice-select/1.1.0/js/jquery.nice-select.min.js"></script>
<!-- custom js -->
<script src="js/custom.js"></script>
<!-- Google Map -->
<script src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCh39n5U-4IoWpsVGUHWdqB6puEkhRLdmI&callback=myMap">
</script>
<!-- End Google Map -->
</body>
</html>