-
Notifications
You must be signed in to change notification settings - Fork 32
/
index.php
487 lines (454 loc) · 18.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
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
<?php
session_start();
if (!isset($_SESSION['loggedin']) || $_SESSION['loggedin'] !== true) {
header("location: login.html");
}
?>
<!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" />
<!-- Boxicons -->
<link href="https://unpkg.com/[email protected]/css/boxicons.min.css" rel="stylesheet" />
<!-- Glide js -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Glide.js/3.4.1/css/glide.core.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Glide.js/3.4.1/css/glide.theme.css">
<!-- Custom StyleSheet -->
<link rel="stylesheet" href="./css/styles.css" />
<title>ecommerce Website</title>
</head>
<body>
<!-- Header -->
<header class="header" id="header">
<!-- Top Nav -->
<div class="top-nav">
<div class="container d-flex">
<p>Order Online Or Call Us:(+91) 8081886430,7376550891</p>
<ul class="d-flex">
<li><a href="about.html">About Us</a></li>
<li><a href="contact.html">FAQ</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</div>
</div>
<div class="navigation">
<div class="nav-center container d-flex">
<a href="index.html" class="logo">
<h1>The Mart</h1>
</a>
<ul class="nav-list d-flex">
<li class="nav-item">
<a href="index.php" class="nav-link">Home</a>
</li>
<li class="nav-item">
<a href="product.html" class="nav-link">Shop</a>
</li>
<li class="nav-item">
<a href="terms.xml" class="nav-link">Terms</a>
</li>
<li class="nav-item">
<a href="about.html" class="nav-link">About</a>
</li>
<li class="nav-item">
<a href="contact.html" class="nav-link">Contact</a>
</li>
<li class="nav-item">
<a href="#" class="nav-link"><?php echo "Welcome " . $_SESSION['username'] ?></a>
</li>
</ul>
<div class="icons d-flex">
<a href="login.html" class="icon">
<i class="bx bx-user"></i>
</a>
<a href="search.html" class="icon">
<i class="bx bx-search"></i>
</a>
<div class="icon">
<i class="bx bx-heart"></i>
<span class="d-flex">0</span>
</div>
<a href="cart.html" class="icon">
<i class="bx bx-cart"></i>
<span class="d-flex">0</span>
</a>
<a href="logout.php" class="icon">
<i class="bx bx-log-out"></i>
</a>
</div>
<div class="hamburger">
<i class="bx bx-menu-alt-left"></i>
</div>
</div>
</div>
<div class="hero">
<div class="glide" id="glide_1">
<div class="glide__track" data-glide-el="track">
<ul class="glide__slides">
<li class="glide__slide">
<div class="center">
<div class="left">
<span class="">New Inspiration 2022</span>
<h1 class="">NEW COLLECTION!</h1>
<p>Trending from men's and women's style collection</p>
<a href="product.html" class="hero-btn">SHOP NOW</a>
</div>
<div class="right">
<img class="img1" src="./images/hero-1.png" alt="">
</div>
</div>
</li>
<li class="glide__slide">
<div class="center">
<div class="left">
<span>New Inspiration 2022</span>
<h1>THE PERFECT MATCH!</h1>
<p>Trending from men's and women's style collection</p>
<a href="product.html" class="hero-btn">SHOP NOW</a>
</div>
<div class="right">
<img class="img2" src="./images/hero-2.png" alt="">
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</header>
<!-- Categories Section -->
<section class="section category">
<div class="cat-center">
<div class="cat">
<img src="./images/cat3.jpg" alt="" />
<div>
<p>WOMEN'S WEAR</p>
</div>
</div>
<div class="cat">
<img src="./images/cat2.jpg" alt="" />
<div>
<p>ACCESSORIES</p>
</div>
</div>
<div class="cat">
<img src="./images/cat1.jpg" alt="" />
<div>
<p>MEN'S WEAR</p>
</div>
</div>
</div>
</section>
<!-- New Arrivals -->
<section class="section new-arrival">
<div class="title">
<h1>NEW ARRIVALS</h1>
<p>All the latest picked from designer of our store</p>
</div>
<div class="product-center">
<div class="product-item">
<div class="overlay">
<a href="productDetails.html" class="product-thumb">
<img src="./images/product-1.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="productDetails.html">Quis Nostrud Exercitation</a>
<h4>$700</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-3.jpg" alt="" />
</a>
<span class="discount">50%</span>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Sonata White Men’s Shirt</a>
<h4>$800</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-2.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Concepts Solid Pink Men’s Polo</a>
<h4>$150</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-4.jpg" alt="" />
</a>
<span class="discount">50%</span>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Edor do eiusmod tempor</a>
<h4>$900</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-5.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Edor do eiusmod tempor</a>
<h4>$100</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-6.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Edor do eiusmod tempor</a>
<h4>$500</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-7.jpg" alt="" />
</a>
<span class="discount">50%</span>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Edor do eiusmod tempor</a>
<h4>$200</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-2.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Edor do eiusmod tempor</a>
<h4>$560</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
</div>
</section>
<!-- Promo -->
<section class="section banner">
<div class="left">
<span class="trend">Trend Design</span>
<h1>New Collection 2022</h1>
<p>New Arrival <span class="color">Sale 50% OFF</span> Limited Time Offer</p>
<a href="product.html" class="btn btn-1">Discover Now</a>
</div>
<div class="right">
<img src="./images/banner.png" alt="">
</div>
</section>
<!-- Featured -->
<section class="section new-arrival">
<div class="title">
<h1>Featured</h1>
<p>All the latest picked from designer of our store</p>
</div>
<div class="product-center">
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-7.jpg" alt="" />
</a>
<span class="discount">50%</span>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Quis Nostrud Exercitation</a>
<h4>$700</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-4.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Sonata White Men’s Shirt</a>
<h4>$800</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-1.jpg" alt="" />
</a>
<span class="discount">40%</span>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Concepts Solid Pink Men’s Polo</a>
<h4>$150</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
<div class="product-item">
<div class="overlay">
<a href="" class="product-thumb">
<img src="./images/product-6.jpg" alt="" />
</a>
</div>
<div class="product-info">
<span>MEN'S CLOTHES</span>
<a href="">Edor do eiusmod tempor</a>
<h4>$900</h4>
</div>
<ul class="icons">
<li><i class="bx bx-heart"></i></li>
<li><i class="bx bx-search"></i></li>
<li><i class="bx bx-cart"></i></li>
</ul>
</div>
</section>
<!-- Contact -->
<section class="section contact">
<div class="row">
<div class="col">
<h2>EXCELLENT SUPPORT</h2>
<p>We love our customers and they can reach us any time
of day we will be at your service 24/7</p>
<a href="contact.html" class="btn btn-1">Contact</a>
</div>
<div class="col">
<form action="">
<div>
<input type="email" placeholder="Email Address">
<a href="">Send</a>
</div>
</form>
</div>
</div>
</section>
<!-- Footer -->
<footer class="footer">
<div class="row">
<div class="col d-flex">
<h4>INFORMATION</h4>
<a href="about.html">About us</a>
<a href="contact.html">Contact Us</a>
<a href="">Term & Conditions</a>
<a href="">Shipping Guide</a>
</div>
<div class="col d-flex">
<h4>USEFUL LINK</h4>
<a href="">Online Store</a>
<a href="">Customer Services</a>
<a href="">Promotion</a>
<a href="">Top Brands</a>
</div>
<div class="col d-flex">
<span><i class='bx bxl-facebook-square'></i></span>
<span><i class='bx bxl-instagram-alt'></i></span>
<span><i class='bx bxl-github'></i></span>
<span><i class='bx bxl-twitter'></i></span>
<span><i class='bx bxl-pinterest'></i></span>
</div>
</div>
</footer>
<!-- PopUp -->
<div class="popup hide-popup">
<div class="popup-content">
<div class="popup-close">
<i class='bx bx-x'></i>
</div>
<div class="popup-left">
<div class="popup-img-container">
<img class="popup-img" src="./images/popup.jpg" alt="popup">
</div>
</div>
<div class="popup-right">
<div class="right-content">
<h1>Get Discount <span>50%</span> Off</h1>
<p>Sign up to our newsletter and save 30% for you next purchase. No spam, we promise!
</p>
<form action="#">
<input type="email" placeholder="Enter your email..." class="popup-form">
<a href="#">Subscribe</a>
</form>
</div>
</div>
</div>
</div>
</body>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Glide.js/3.4.1/glide.min.js"></script>
<script src="./js/slider.js"></script>
<script src="./js/index.js"></script>
</html>