-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
448 lines (402 loc) · 23.9 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Event Essentials</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="Free HTML Templates" name="keywords">
<meta content="Free HTML Templates" name="description">
<!-- Favicon -->
<link href="img/favicon.ico" rel="icon">
<!-- Google Web Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap" rel="stylesheet">
<!-- Font Awesome -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.10.0/css/all.min.css" rel="stylesheet">
<!-- Libraries Stylesheet -->
<link href="lib/animate/animate.min.css" rel="stylesheet">
<link href="lib/owlcarousel/assets/owl.carousel.min.css" rel="stylesheet">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css">
<!-- Customized Bootstrap Stylesheet -->
<link href="css/style.css" rel="stylesheet">
</head>
<body>
<div class="container-fluid">
<div class="row bg-secondary py-1 px-xl-5">
<div class="col-lg-6 d-none d-lg-block">
<div class="d-inline-flex align-items-center h-100">
<a class="text-body mr-3" href="aboutu.php">About</a>
<a class="text-body mr-3" href="login.php">Contact</a>
</div>
</div>
<div class="col-lg-6 text-center text-lg-right">
<div class="d-inline-flex align-items-center">
<div class="btn-group">
<button type="button" class="btn btn-sm btn-light dropdown-toggle" data-toggle="dropdown">My Account</button>
<div class="dropdown-menu dropdown-menu-right">
<a href="login.php" class="dropdown-item" type="button" >Sign in</a>
<a href="signup.php" class="dropdown-item" type="button" >Sign up</a>
<a href="adminlog.php" class="dropdown-item" type="button" >admin</a>
</div>
</div>
<div class="btn-group mx-2">
<button type="button" class="btn btn-sm btn-light dropdown-toggle" data-toggle="dropdown">USD</button>
<div class="dropdown-menu dropdown-menu-right">
<button class="dropdown-item" type="button">EUR</button>
<button class="dropdown-item" type="button">GBP</button>
<button class="dropdown-item" type="button">CAD</button>
</div>
</div>
<div class="btn-group">
<button type="button" class="btn btn-sm btn-light dropdown-toggle" data-toggle="dropdown">EN</button>
<div class="dropdown-menu dropdown-menu-right">
<button class="dropdown-item" type="button">FR</button>
<button class="dropdown-item" type="button">AR</button>
<button class="dropdown-item" type="button">RU</button>
</div>
</div>
</div>
<div class="d-inline-flex align-items-center d-block d-lg-none">
<a href="login.php" class="btn px-0 ml-2">
<i class="fas fa-heart text-dark"></i>
<span class="badge text-dark border border-dark rounded-circle" style="padding-bottom: 2px;">0</span>
</a>
<a href="login.php" class="btn px-0 ml-2">
<i class="fas fa-shopping-cart text-dark"></i>
<span class="badge text-dark border border-dark rounded-circle" style="padding-bottom: 2px;">0</span>
</a>
</div>
</div>
</div>
<div class="row align-items-center bg-light py-3 px-xl-5 d-none d-lg-flex">
<div class="col-lg-4">
<a href="" class="text-decoration-none">
<span class="h1 text-uppercase text-primary bg-dark px-2">Event</span>
<span class="h1 text-uppercase text-dark bg-primary px-2 ml-n1">Essentials</span>
</a>
</div>
<div class="col-lg-4 col-6 text-left">
<form action="">
<div class="input-group">
<div class="input-group-append">
</div>
</div>
</form>
</div>
<div class="col-lg-4 col-6 text-right">
<p class="m-0">Customer Service</p>
<h5 class="m-0">+91 9745139507</h5>
</div>
</div>
</div>
<nav>
<div class="container-fluid bg-dark mb-30">
<div class="row px-xl-5">
<div class="col-lg-3 d-none d-lg-block">
<a class="btn d-flex align-items-center justify-content-between bg-primary w-100" data-toggle="collapse" href="#navbar-vertical" style="height: 65px; padding: 0 30px;">
<h6 class="text-dark m-0"><i class="fa fa-bars mr-2"></i>Categories</h6>
<i class="fa fa-angle-down text-dark"></i>
</a>
<nav class="collapse position-absolute navbar navbar-vertical navbar-light align-items-start p-0 bg-light" id="navbar-vertical" style="width: calc(100% - 30px); z-index: 999;">
<div class="navbar-nav w-100">
<div class="nav-item dropdown dropright">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">Event Combos <i class="fa fa-angle-right float-right mt-1"></i></a>
<div class="dropdown-menu position-absolute rounded-0 border-0 m-0">
<?php
include 'includes/config.php';
$select = "SELECT cat_name FROM `categorytb` WHERE cat_name LIKE'%event'";
$result = $conn->query($select);
while($row = $result->fetch_assoc()){
?>
<a href="shop.php?id=<?php echo $row['cat_id'] ?>" class="dropdown-item"><?php echo $row['cat_name'];?></a>
<?php
}
?>
</div>
</div>
<div class="nav-item dropdown dropright">
<a href="#" class="nav-link dropdown-toggle" data-toggle="dropdown">Items <i class="fa fa-angle-right float-right mt-1"></i></a>
<div class="dropdown-menu position-absolute rounded-0 border-0 m-0">
<?php
$select = "SELECT cat_name FROM `categorytb` WHERE cat_name LIKE'%s'";
$result = $conn->query($select);
while($row = $result->fetch_assoc()){
?>
<a href="shop.php?id=<?php echo $row['cat_id'] ?>" class="dropdown-item"><?php echo $row['cat_name'];?></a>
<?php
}
?>
</div>
</div>
</div>
</nav>
</div>
<div class="col-lg-9">
<nav class="navbar navbar-expand-lg bg-dark navbar-dark py-3 py-lg-0 px-0">
<a href="" class="text-decoration-none d-block d-lg-none">
<span class="h1 text-uppercase text-dark bg-light px-2">Event Essentials</span>
</a>
<button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbarCollapse">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse justify-content-between" id="navbarCollapse">
<div class="navbar-nav mr-auto py-0">
<a href="index.php" class="nav-item nav-link active">Home</a>
<a href="aboutu.php" class="nav-item nav-link">About</a>
<a href="login.php" class="nav-item nav-link">Contact</a>
</div>
<div class="navbar-nav ml-auto py-0 d-none d-lg-block">
<a href="login.php" class="btn px-0">
<i class="fas fa-heart text-primary"></i>
<span class="badge text-secondary border border-secondary rounded-circle" style=" padding-bottom: 2px;">0</span>
</a>
<a href="login.php" class="btn px-0 ml-3">
<i class="fas fa-shopping-cart text-primary"></i>
<span class="badge text-secondary border border-secondary rounded-circle" style="padding-bottom: 2px;">0</span>
</a>
</div>
</div>
</nav>
</div>
</div>
</div>
</nav>
<!-- Carousel Start -->
<div class="container-fluid mb-3">
<div class="row px-xl-5">
<div class="col-lg-8">
<div id="header-carousel" class="carousel slide carousel-fade mb-30 mb-lg-0" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#header-carousel" data-slide-to="0" class="active"></li>
<li data-target="#header-carousel" data-slide-to="1"></li>
<li data-target="#header-carousel" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item position-relative active" style="height: 430px;">
<img class="position-absolute w-100 h-100" src="images/giorgio-trovato-e75PYAhhZRY-unsplash.jpg" style="object-fit: cover;">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-center">
<div class="p-3" style="max-width: 700px;">
<h1 class="display-4 text-white mb-3 animate__animated animate__fadeInDown">Night Events</h1>
<p class="mx-md-5 px-5 animate__animated animate__bounceIn">Light up your Events and Enjoy</p>
<a class="btn btn-outline-light py-2 px-4 mt-3 animate__animated animate__fadeInUp" href="login.php">Book Now</a>
</div>
</div>
</div>
<div class="carousel-item position-relative" style="height: 430px;">
<img class="position-absolute w-100 h-100" src="images/wedding.jpg" style="object-fit: cover;">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-center">
<div class="p-3" style="max-width: 700px;">
<h1 class="display-4 text-white mb-3 animate__animated animate__fadeInDown">WEDDINGS</h1>
<p class="mx-md-5 px-5 animate__animated animate__bounceIn"> Make Weddings Memorable</p>
<a class="btn btn-outline-light py-2 px-4 mt-3 animate__animated animate__fadeInUp" href="login.php">Book Now</a>
</div>
</div>
</div>
<div class="carousel-item position-relative" style="height: 430px;">
<img class="position-absolute w-100 h-100" src="images/baby.jpg" style="object-fit: cover;">
<div class="carousel-caption d-flex flex-column align-items-center justify-content-center">
<div class="p-3" style="max-width: 700px;">
<h1 class="display-4 text-white mb-3 animate__animated animate__fadeInDown">Baby Shower</h1>
<p class="mx-md-5 px-5 animate__animated animate__bounceIn">Make your Baby Shower Bright</p>
<a class="btn btn-outline-light py-2 px-4 mt-3 animate__animated animate__fadeInUp" href="login.php">Book Now</a>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-lg-4">
<div class="product-offer mb-30" style="height: 200px;">
<img class="img-fluid" src="images/pablo-lancaster-jones-j9blCRSZ_Q4-unsplash.jpg" alt="">
<div class="offer-text">
<h6 class="text-white text-uppercase">Save 20%</h6>
<h3 class="text-white mb-3">Special Offer</h3>
<a href="login.php" class="btn btn-primary">Book Now</a>
</div>
</div>
<div class="product-offer mb-30" style="height: 200px;">
<img class="img-fluid" src="images/toa-heftiba-TVQFl9R-MLQ-unsplash.jpg" alt="">
<div class="offer-text">
<h6 class="text-white text-uppercase">Save 20%</h6>
<h3 class="text-white mb-3">Special Offer</h3>
<a href="login.php" class="btn btn-primary">Book Now</a>
</div>
</div>
</div>
</div>
</div>
<!-- Carousel End -->
<!-- Featured Start -->
<div class="container-fluid pt-5">
<div class="row px-xl-5 pb-3">
<div class="col-lg-3 col-md-6 col-sm-12 pb-1">
<div class="d-flex align-items-center bg-light mb-4" style="padding: 30px;">
<h1 class="fa fa-check text-primary m-0 mr-3"></h1>
<h5 class="font-weight-semi-bold m-0">Quality Product</h5>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 pb-1">
<div class="d-flex align-items-center bg-light mb-4" style="padding: 30px;">
<h1 class="fa fa-shipping-fast text-primary m-0 mr-2"></h1>
<h5 class="font-weight-semi-bold m-0">Free Shipping</h5>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 pb-1">
<div class="d-flex align-items-center bg-light mb-4" style="padding: 30px;">
<h1 class="fas fa-exchange-alt text-primary m-0 mr-3"></h1>
<h5 class="font-weight-semi-bold m-0"> Sent Feedback</h5>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-12 pb-1">
<div class="d-flex align-items-center bg-light mb-4" style="padding: 30px;">
<h1 class="fa fa-phone-volume text-primary m-0 mr-3"></h1>
<h5 class="font-weight-semi-bold m-0">24/7 Support</h5>
</div>
</div>
</div>
</div>
<!-- Featured End -->
<!-- Categories Start -->
<div class="container-fluid pt-5">
<h2 class="section-title position-relative text-uppercase mx-xl-5 mb-4"><span class="bg-secondary pr-3">Categories</span></h2>
<div class="row px-xl-5 pb-3">
<?php
$select = "SELECT * FROM categorytb";
$result = $conn->query($select);
while($row = $result->fetch_assoc()){
?>
<div class="col-lg-3 col-md-4 col-sm-6 pb-1">
<a class="text-decoration-none" href="shop.php?id=<?php echo $row['cat_id'] ?>">
<div class="cat-item d-flex align-items-center mb-4">
<div class="overflow-hidden" style="width: 100px; height: 100px;">
<img class="img-fluid" src="cat_images/<?php echo $row['image']; ?>">
</div>
<div class="flex-fill pl-3">
<h6><?php echo $row['cat_name'];?></h6>
</div>
</div>
</a>
</div>
<?php
}
?>
</div>
</div>
<!-- Categories End -->
<!-- Products Start -->
<div class="container-fluid pt-5 pb-3">
<h2 class="section-title position-relative text-uppercase mx-xl-5 mb-4"><span class="bg-secondary pr-3">Featured Products</span></h2>
<div class="row px-xl-5">
<?php
$select = "SELECT * FROM itemtb ORDER BY RAND() LIMIT 12";
$result = $conn->query($select);
while($row = $result->fetch_assoc()){
?>
<div class="col-lg-3 col-md-4 col-sm-6 pb-1">
<div class="product-item bg-light mb-4">
<div class="product-img position-relative overflow-hidden">
<img class="img-fluid w-100" src="pro_images/<?php echo $row['prod_image']; ?>" style="height: 250px ;">
<div class="product-action">
<a class="btn btn"><?php echo $row['pro_desc'];?></a>
</div>
</div>
<div class="text-center py-4">
<a class="h6 text-decoration-none text-truncate" href=""><?php echo $row['name'];?></a>
<div class="d-flex align-items-center justify-content-center mt-2">
<h5>RS:<?php echo $row['prod_price'];?>/day</h5>
</div>
<div class="d-flex align-items-center justify-content-center mt-2" >
<a class="btn btn-outline-dark btn-square" href=""><i class="fa fa-shopping-cart"></i></a>
<a class="btn btn-outline-dark btn-square" href=""><i class="far fa-heart"></i></a>
</div>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
<!-- Products End -->
<!-- Offer Start -->
<div class="container-fluid pt-5 pb-3">
<div class="row px-xl-5">
<div class="col-md-6">
<div class="product-offer mb-30" style="height: 300px;">
<img class="img-fluid" src="images/photos-by-lanty-yMY1QE5wpyA-unsplash.jpg" alt="">
<div class="offer-text">
<h6 class="text-white text-uppercase">Save 20%</h6>
<h3 class="text-white mb-3">Special Offer</h3>
<a href="login.php" class="btn btn-primary">Book Now</a>
</div>
</div>
</div>
<div class="col-md-6">
<div class="product-offer mb-30" style="height: 300px;">
<img class="img-fluid" src="images/wedding.jpg" alt="">
<div class="offer-text">
<h6 class="text-white text-uppercase">Save 20%</h6>
<h3 class="text-white mb-3">Special Offer</h3>
<a href="login.php" class="btn btn-primary">Book Now</a>
</div>
</div>
</div>
</div>
</div>
<!-- Back to Top -->
<a href="#" class="btn btn-primary back-to-top"><i class="fa fa-angle-double-up"></i></a>
<!-- JavaScript Libraries -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.bundle.min.js"></script>
<script src="lib/easing/easing.min.js"></script>
<script src="lib/owlcarousel/owl.carousel.min.js"></script>
<!-- Contact Javascript File -->
<script src="mail/jqBootstrapValidation.min.js"></script>
<script src="mail/contact.js"></script>
<!-- Template Javascript -->
<script src="js/main.js"></script>
<div class="container-fluid bg-dark text-secondary mt-4 pt-5">
<div class="row px-xl-5 pt-5">
<div class="col-lg-4 col-md-12 mb-5 pr-3 pr-xl-5">
<h5 class="text-secondary text-uppercase mb-4">Get In Touch</h5>
<p class="mb-4">We Rent-out all items need for an event.</p>
<p class="mb-2"><i class="fa fa-map-marker-alt text-primary mr-3"></i> Alappuzha,Kerala,India</p>
<p class="mb-2"><i class="fa fa-envelope text-primary mr-3"></i>eventessentialrentals.com</p>
<p class="mb-0"><i class="fa fa-phone-alt text-primary mr-3"></i>+91 9745139507</p>
</div>
<div class="col-lg-8 col-md-12">
<div class="row">
<div class="col-md-4 mb-5">
<h5 class="text-secondary text-uppercase mb-4">My Account</h5>
<div class="d-flex flex-column justify-content-start">
<a class="text-secondary mb-2" href="index.php"><i class="fa fa-angle-right mr-2"></i>Home</a>
<a class="text-secondary mb-2" href="login.php"><i class="fa fa-angle-right mr-2"></i>Shopping Cart</a>
<a class="text-secondary mb-2" href="login.php"><i class="fa fa-angle-right mr-2"></i>Checkout</a>
<a class="text-secondary" href="login.php"><i class="fa fa-angle-right mr-2"></i>Contact Us</a>
</div>
</div>
<div class="col-md-4 mb-5">
<h5 class="text-secondary text-uppercase mb-4">join us</h5>
<p>Book for your next event</p>
<form action="">
<div class="input-group">
<input type="text" class="form-control" placeholder="Your Email Address">
<div class="input-group-append">
<button class="btn btn-primary">Sign Up</button>
</div>
</div>
</form>
<h6 class="text-secondary text-uppercase mt-4 mb-3">Follow Us</h6>
<div class="d-flex">
<a class="btn btn-primary btn-square mr-2" href="www.twitter.com"><i class="fab fa-twitter"></i></a>
<a class="btn btn-primary btn-square mr-2" href="www.facebook.com"><i class="fab fa-facebook-f"></i></a>
<a class="btn btn-primary btn-square mr-2" href="www.linkedin.com"><i class="fab fa-linkedin-in"></i></a>
<a class="btn btn-primary btn-square" href="www.instagram.com"><i class="fab fa-instagram"></i></a>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>