-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
509 lines (465 loc) · 25 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Food Cort</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-gH2yIJqKdNHPEq0n4Mqa/HGKIhSkIHeL5AyhkYV8i59U5AR6csBvApHHNl/vI1Bx" crossorigin="anonymous">
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Jost:300,300i,400,400i,500,500i,600,600i,700,700i|Poppins:300,300i,400,400i,500,500i,600,600i,700,700i" rel="stylesheet">
<!-- Google Icons -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@48,400,0,0" />
<!-- Flat Icons -->
<link rel="stylesheet" href="https://cdn-uicons.flaticon.com/uicons-regular-rounded/css/uicons-regular-rounded.css">
<!-- Box Icons -->
<link href='https://cdn.jsdelivr.net/npm/boxicons@latest/css/boxicons.min.css' rel='stylesheet'>
<!-- owl-carousel cdn -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.0.0-beta.3/assets/owl.carousel.min.css">
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.0.0-beta.3/assets/owl.theme.default.min.css">
<!-- Favicons -->
<link href="assets/logo/default_logo.png" rel="icon">
<!-- Template Main CSS File -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!-- ======= Header ======= -->
<header id="header" class="fixed-top ">
<div class="container d-flex align-items-center">
<h1 class="logo me-auto">
<?php
include 'serverSite/adminProfileGet.php';
while ($row = mysqli_fetch_array($result)) { ?>
<a href="index.html" style="text-transform: uppercase;"><?php echo $row['web_name'] ?></a>
<?php
}
?>
</h1>
<nav id="navbar" class="navbar">
<ul>
<li><a class="nav-link scrollto active" href="#hero">Home</a></li>
<li class="dropdown"><a href="#"><span>Catagory</span> <span class="material-symbols-outlined">expand_more</span></a>
<ul>
<?php
include 'serversite/productCategoryList.php';
while ($row = mysqli_fetch_array($result)) { ?>
<li><a href="#" style="text-transform: capitalize;"><?php echo $row['c_name'] ?></a></li>
<?php
}
?>
</ul>
</li>
<li><a class="nav-link scrollto" href="#services">Services</a></li>
<li><a class="nav-link scrollto" href="#portfolio">Reviews</a></li>
<li><a class="nav-link scrollto" href="#about">About</a></li>
<li><a class="nav-link scrollto" href="#contact">Contact</a></li>
<?php
session_start();
if (isset($_SESSION['user_email'])) {
echo "<li><a href='user/dashboard.php'><img class='rounded-circle border' src='assets/default_img/default_profile.png'
alt='' height='50px' width='50px' srcset=''></a></li>";
} else {
echo "<li><a class='getstarted scrollto' id='home-login-btn' data-bs-toggle='modal'
data-bs-target='#modalLogin' style='cursor: pointer;'>Login</a></li>";
}
?>
</ul>
<span class="material-symbols-outlined mobile-nav-toggle">menu</span>
</nav><!-- .navbar -->
</div>
</header><!-- End Header -->
<!-- Start login form -->
<div class="modal" tabindex="-1" id="modalLogin">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header justify-content-center d-flex">
<h5 class="modal-title">Login</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="serverSite/loginSubmit.php" method="POST" id="loginForm">
<div class="form-group">
<label for="loginEmail">Email Address</label>
<input type="email" class="form-control" id="login-email" name="loginEmail" placeholder="Enter email">
<span id="erroremail" style="color: red;"></span>
</div><br>
<div class="form-group">
<label for="loginPassword">Password</label>
<input type="password" class="form-control" id="login-password" name="loginPassword" placeholder="Password">
<span id="errorpass" style="color: red;"></span>
</div><br>
<div class="d-grid col-6 mx-auto">
<button type="submit" class="btn btn-outline-primary text-uppercase btn-block" style="font-weight: 600; transition: .3s;" onclick="return loginValidation()">Login</button>
</div>
</form><br>
<div class="justify-content-center d-flex">
<p class="d-inline">I have not an account?</p>
<p class="signin-end-text d-inline" id="reg-btn" data-bs-toggle="modal" data-bs-target="#modalRegistration" aria-label="Close">Register now
</p>
</div>
</div>
</div>
</div>
</div>
<!-- End login form -->
<!-- registration bootstrap -->
<div class="modal" tabindex="-1" id="modalRegistration">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header justify-content-center d-flex">
<h5 class="modal-title">Registration</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<form action="serverSite/registrationSubmit.php" method="POST" id="registrationForm">
<div class="form-group">
<label for="name">Full Name</label>
<input type="text" class="form-control" id="registration-name" name="name" placeholder="Enter your name">
<span id="errorname" style="color: red;"></span>
</div><br>
<div class="form-group">
<label for="email">Email Address</label>
<input type="email" class="form-control" id="registration-email" name="email" placeholder="Enter email">
<span id="erroremail" style="color: red;"></span>
</div><br>
<div class="form-group">
<label for="password">Password</label>
<input type="password" class="form-control" id="registration-password" name="password" placeholder="Password">
<span id="errorpass" style="color: red;"></span>
</div><br>
<div class="d-grid col-6 mx-auto">
<button type="submit" class="btn btn-outline-success text-uppercase btn-block" style="font-weight: 600; transition: .3s;" onclick="return registrationValidation()">Register</button>
</div>
</form><br>
<div class="justify-content-center d-flex">
<p class="d-inline">I have an account?</p>
<p class="signin-end-text d-inline" id="login-btn" data-bs-toggle="modal" data-bs-target="#modalLogin" aria-label="Close">Login now</p>
</div>
</div>
</div>
</div>
</div>
<!-- End registration -->
<!-- Hero section -->
<section class="hero-section">
<div class="hero-slider owl-carousel">
<?php
include 'serversite/fetchIndexPageData.php';
while ($row = mysqli_fetch_array($result)) {
echo "
<div class='hs-item set-bg' data-setbg='$row[s_img_path]'>
<div class='container'>
<div class='row'>
<div class='col-xl-6 col-lg-7 text-white'>
<span>$row[s_subtitle]</span>
<h2>$row[s_title]</h2>
<p>$row[s_description]</p>
<a href='#' class='site-btn sb-line'>DISCOVER</a>
<a href='#' class='site-btn sb-white'>ADD TO CART</a>
</div>
</div>
<div class='offer-card text-white'>
<span>from</span>
<h2>$row[s_offer_price]</h2>
<p>$row[s_offer_name]</p>
</div>
</div>
</div>
";
}
?>
</div>
<div class="container">
<div class="slide-num-holder" id="snh-1"></div>
</div>
</section>
<!-- Hero section end -->
<!-- letest product section -->
<section class="top-letest-product-section">
<div class="container">
<div class="section-title">
<h2>LATEST PRODUCTS</h2>
</div>
<div class="product-slider owl-carousel">
<?php
include 'serversite/fetchProductData.php';
while ($row = mysqli_fetch_array($result)) { ?>
<div class="product-item">
<div class="pi-pic">
<img src="<?php echo $row['food_img']; ?>" alt="" class="img-thumbnail">
<div class="pi-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
</div>
<div class="pi-text">
<h6><?php echo $row['food_price']; ?></h6>
<p><?php echo $row['food_title']; ?></p>
</div>
</div>
<?php
}
?>
</div>
</div>
</section>
<!-- letest product section end -->
<!-- Product filter section -->
<section class="product-filter-section">
<div class="container">
<div class="section-title">
<h2>BROWSE TOP SELLING PRODUCTS</h2>
</div>
<div class="row">
<ul class="product-filter-menu">
<li><a href="#">TOPS</a></li>
<li><a href="#">JUMPSUITS</a></li>
<li><a href="#">LINGERIE</a></li>
<li><a href="#">JEANS</a></li>
<li><a href="#">DRESSES</a></li>
<li><a href="#">COATS</a></li>
<li><a href="#">JUMPERS</a></li>
<li><a href="#">LEGGINGS</a></li>
</ul>
</div>
<div class="row g-4">
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/5.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top</p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/6.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/7.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/8.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/9.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/10.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/11.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6">
<div class="card">
<img src="assets/product/12.jpg" class="card-img-top" alt="...">
<div class="pl-links">
<a href="#" class="add-card"><span class="material-symbols-outlined shop">shopping_cart</span>
<p>ADD TOCART</p>
</a>
<a href="#" class="wishlist-btn"><span class="material-symbols-outlined">favorite</span></a>
</div>
<div class="card-body pi-text">
<div class="d-flex justify-content-between">
<p>Flamboyant Pink Top </p>
<h5>$35,00</h5>
</div>
</div>
</div>
</div>
<div class="text-center pt-5">
<button class="site-btn sb-line sb-dark">LOAD MORE</button>
</div>
</div>
</section>
<!-- Product filter section end -->
<!-- ======= Footer ======= -->
<footer id="footer">
<div class="footer-newsletter">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-6">
<h4>Join Our Newsletter</h4>
<p>Tamen quem nulla quae legam multos aute sint culpa legam noster magna</p>
<form action="" method="post">
<input type="email" name="email" style="outline: none;"><input type="submit" value="Subscribe">
</form>
</div>
</div>
</div>
</div>
<div class="footer-top">
<div class="container">
<div class="row">
<div class="col-lg-3 col-md-6 footer-contact">
<!-- <h3>Arsha</h3> -->
<?php
include 'serverSite/adminProfileGet.php';
while ($row = mysqli_fetch_array($result)) { ?>
<h3 style="text-transform: uppercase;"><?php echo $row['web_name'] ?></h3>
<?php
}
?>
<p>
A108 Adam Street <br>
New York, NY 535022<br>
United States <br><br>
<strong>Phone:</strong> +1 5589 55488 55<br>
<strong>Email:</strong> [email protected]<br>
</p>
</div>
<div class="col-lg-3 col-md-6 footer-links">
<h4>Useful Links</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Home</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">About us</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Services</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Terms of service</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Privacy policy</a></li>
</ul>
</div>
<div class="col-lg-3 col-md-6 footer-links">
<h4>Our Services</h4>
<ul>
<li><i class="bx bx-chevron-right"></i> <a href="#">Web Design</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Web Development</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Product Management</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Marketing</a></li>
<li><i class="bx bx-chevron-right"></i> <a href="#">Graphic Design</a></li>
</ul>
</div>
<div class="col-lg-3 col-md-6 footer-links">
<h4>Our Social Networks</h4>
<p>Cras fermentum odio eu feugiat lide par naso tierra videa magna derita valies</p>
<div class="social-links mt-3">
<?php
include 'serverSite/adminProfileGet.php';
while ($row = mysqli_fetch_array($result)) { ?>
<a href="<?php echo $row['twiter'] ?>" class="twitter" target="_blank"><i class="bx bxl-twitter"></i></a>
<a href="<?php echo $row['fb'] ?>" class="facebook" target="_blank"><i class="bx bxl-facebook"></i></a>
<a href="<?php echo $row['instagram'] ?>" class="instagram" target="_blank"><i class="bx bxl-instagram"></i></a>
<a href="<?php echo $row['skype'] ?>" class="google-plus" target="_blank"><i class="bx bxl-skype"></i></a>
<a href="<?php echo $row['linkedin'] ?>" class="linkedin" target="_blank"><i class="bx bxl-linkedin"></i></a>
<?php
}
?>
</div>
</div>
</div>
</div>
</div>
<div class="container footer-bottom clearfix">
<div class="copyright">
© 2022 Copyright <strong><span>Arsha</span></strong>. All Rights Reserved
</div>
<div class="credits">Designed by <a href="https://yousufislam191.github.io/resume" target="_blank">Yousuf</a>
</div>
</div>
</footer><!-- End Footer -->
<div id="preloader"></div>
<a href="#" class="back-to-top d-flex align-items-center justify-content-center"><span class="material-symbols-outlined">arrow_upward</span></a>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous">
</script>
<!-- owl-carousel cdn -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/OwlCarousel2/2.0.0-beta.3/owl.carousel.min.js"></script>
<!-- Template Custom JS File -->
<script src="js/main.js"></script>
<script src="js/login.js"></script>
<script src="js/registration.js"></script>
</body>
</html>