-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
441 lines (406 loc) · 21.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
<?php
session_start();
include_once 'admin/database.php';
?>
<!doctype html>
<html lang="zxx">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="icon" href="img/favicon2.png">
<title>ASB Fashion</title>
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- animate CSS -->
<link rel="stylesheet" href="css/animate.css">
<!-- owl carousel CSS -->
<link rel="stylesheet" href="css/owl.carousel.min.css">
<!-- font awesome CSS -->
<link rel="stylesheet" href="css/all.css">
<!-- flaticon CSS -->
<link rel="stylesheet" href="css/flaticon.css">
<link rel="stylesheet" href="css/themify-icons.css">
<!-- font awesome CSS -->
<link rel="stylesheet" href="css/magnific-popup.css">
<!-- swiper CSS -->
<link rel="stylesheet" href="css/slick.css">
<!-- style CSS -->
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<!--::header part start::-->
<?php include_once 'include/header.php'; ?>
<!-- Header part end-->
<!-- banner part start-->
<section class="banner_part">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-7">
<div class="banner_slider">
<div class="single_banner_slider">
<div class="banner_text">
<div class="banner_text_iner">
<h5><b>ASB</b> Fashion (PVT) LTD </h5>
<h1>Fashion Collection 2020</h1>
<a href="javascript:scroll()" class="btn_1">shop now</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- banner part start-->
<!-- feature_part start-->
<section class="feature_part pt-4">
<div class="container-fluid p-lg-0 overflow-hidden">
<div class="row align-items-center justify-content-between">
<div class="col-lg-4 col-sm-6">
<div class="single_feature_post_text">
<img src="img/feature_1.png" alt="#">
<div class="hover_text">
<a href="category.php?cat=Gents" class="btn_2">Shop For Gents</a>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="single_feature_post_text">
<img src="img/feature_2.png" alt="#">
<div class="hover_text">
<a href="category.php?cat=Ladies" class="btn_2">Shop For Ladies</a>
</div>
</div>
</div>
<div class="col-lg-4 col-sm-6">
<div class="single_feature_post_text">
<img src="img/feature_3.png" alt="#">
<div class="hover_text">
<a href="category.php?cat=Kids" class="btn_2">Shop For Kids</a>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- upcoming_event part start-->
<!-- new arrival part here -->
<section class="new_arrival section_padding" id="arrival">
<div class="container">
<div class="row align-items-center">
<div class="col-lg-8">
<div class="arrival_tittle">
<h2>new arrival</h2>
</div>
</div>
<div class="col-lg-4">
<div class="arrival_filter_item filters" >
<ul >
<li class="active controls" data-filter=".all">All</li>
<li class="controls" data-filter=".men">men</li>
<li class="controls" data-filter=".women">women</li>
<li class="controls" data-filter=".kid">kids</li>
</ul>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="new_arrival_iner filter-container" >
<?php if(!isset($_GET['filter'])){
$sql = "SELECT idProduct,title,price,`path` FROM product , image where product.idProduct=image.Product_idProduct and imgid = ( SELECT MIN(imgid) from image WHERE image.Product_idProduct = product.idProduct) and product.category='Ladies' and ava = 1";
$result = $conn->query($sql);
$cnt = 1;
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$cnt = $cnt+1;
echo '<div class="single_arrivel_item weidth_4 mix women all">
<img src="admin/img/product/'.$row["path"].'" alt="'.$row["idProduct"].'">
<div class="hover_text">
<p>New Arival</p>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"><h6>'.$row["title"].'</h6></a>
<div class="rate_icon">
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR '.$row["price"].'.00</h5>
<div class="social_icon">
<a href="./singleproduct.php?pid='.$row["idProduct"].'"><i class="ti-bag"></i></a>
</div>
</div>
</div>';
if($cnt>4){
break;
}} } }
?>
<?php if(!isset($_GET['filter'])){
$sql = "SELECT idProduct,title,price,`path` FROM product , image where product.idProduct=image.Product_idProduct and imgid = ( SELECT MIN(imgid) from image WHERE image.Product_idProduct = product.idProduct) and product.category='Gents' and ava = 1";
$result = $conn->query($sql);
$cnt = 1;
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$cnt = $cnt+1;
echo '<div class="single_arrivel_item weidth_4 mix men all">
<img src="admin/img/product/'.$row["path"].'" alt="'.$row["idProduct"].'">
<div class="hover_text">
<p>New Arival</p>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"><h6>'.$row["title"].'</h6></a>
<div class="rate_icon">
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR '.$row["price"].'.00</h5>
<div class="social_icon">
<a href="./singleproduct.php?pid='.$row["idProduct"].'"><i class="ti-bag"></i></a>
</div>
</div>
</div>';
if($cnt>3){
break;
}} } }
?>
<?php if(!isset($_GET['filter'])){
$sql = "SELECT idProduct,title,price,`path` FROM product , image where product.idProduct=image.Product_idProduct and imgid = ( SELECT MIN(imgid) from image WHERE image.Product_idProduct = product.idProduct) and product.category='Kids' and ava = 1";
$result = $conn->query($sql);
$cnt = 1;
if ($result->num_rows > 0) {
while($row = $result->fetch_assoc()) {
$cnt = $cnt+1;
echo '<div class="single_arrivel_item weidth_4 mix kid all">
<img src="admin/img/product/'.$row["path"].'" alt="'.$row["idProduct"].'">
<div class="hover_text">
<p>New Arival</p>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"><h6>'.$row["title"].'</h6></a>
<div class="rate_icon">
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
<a href="./singleproduct.php?pid='.$row["idProduct"].'"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR '.$row["price"].'.00</h5>
<div class="social_icon">
<a href="./singleproduct.php?pid='.$row["idProduct"].'"><i class="ti-bag"></i></a>
</div>
</div>
</div>';
if($cnt>3){
break;
}} } }
?>
<!--
<div class="single_arrivel_item weidth_2 mix women">
<img src="img/arrivel/arrivel_2.png" alt="#">
<div class="hover_text">
<p>Canvas</p>
<a href="single-product.html"><h3>Lorem Canvas Low-Top Sneaker</h3></a>
<div class="rate_icon">
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR 1500</h5>
<div class="social_icon">
<a href="#"><i class="ti-heart"></i></a>
<a href="#"><i class="ti-bag"></i></a>
</div>
</div>
</div>
<div class="single_arrivel_item weidth_3 mix shoes women" >
<img src="img/arrivel/arrivel_3.png" alt="#">
<div class="hover_text">
<p>Canvas</p>
<a href="single-product.html"><h3>Lorem Canvas Low-Top Sneaker</h3></a>
<div class="rate_icon">
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR 1500</h5>
<div class="social_icon">
<a href="#"><i class="ti-heart"></i></a>
<a href="#"><i class="ti-bag"></i></a>
</div>
</div>
</div>
<div class="single_arrivel_item weidth_3 mix women ">
<img src="img/arrivel/arrivel_4.png" alt="#">
<div class="hover_text">
<p>Canvas</p>
<a href="single-product.html"><h3>Lorem Canvas Low-Top Sneaker</h3></a>
<div class="rate_icon">
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR 1500</h5>
<div class="social_icon">
<a href="#"><i class="ti-heart"></i></a>
<a href="#"><i class="ti-bag"></i></a>
</div>
</div>
</div>
<div class="single_arrivel_item weidth_2 mix women">
<img src="img/arrivel/arrivel_1.png" alt="#">
<div class="hover_text">
<p>Canvas</p>
<a href="single-product.html"><h3>Lorem Canvas Low-Top Sneaker</h3></a>
<div class="rate_icon">
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR 1500</h5>
<div class="social_icon">
<a href="#"><i class="ti-heart"></i></a>
<a href="#"><i class="ti-bag"></i></a>
</div>
</div>
</div>
<div class="single_arrivel_item weidth_1 mix shoes ">
<img src="img/arrivel/arrivel_6.png" alt="#">
<div class="hover_text">
<p>Canvas</p>
<a href="single-product.html"><h3>Lorem Canvas Low-Top Sneaker</h3></a>
<div class="rate_icon">
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
<a href="#"> <i class="fas fa-star"></i> </a>
</div>
<h5>LKR 1500</h5>
<div class="social_icon">
<a href="#"><i class="ti-heart"></i></a>
<a href="#"><i class="ti-bag"></i></a>
</div>
</div>
</div> -->
</div>
</div>
</div>
</div>
</section>
<!-- new arrival part end -->
<!-- free shipping here -->
<section class="shipping_details section_padding">
<div class="container">
<div class="row">
<div class="col-lg-3 col-sm-6">
<div class="single_shopping_details">
<img src="img/icon/icon_1.png" alt="">
<h4>Fast Delivery</h4>
<p>Multiple fast and secure delivery options.</p>
</div>
</div>
<div class="col-lg-3 col-sm-6">
<div class="single_shopping_details">
<img src="img/icon/icon_2.png" alt="">
<h4>Lowest Price</h4>
<p>High quality products for good price.</p>
</div>
</div>
<div class="col-lg-3 col-sm-6">
<div class="single_shopping_details">
<img src="img/icon/icon_3.png" alt="">
<h4>Easy Payment</h4>
<p>Multiple payment options.</p>
</div>
</div>
<div class="col-lg-3 col-sm-6">
<div class="single_shopping_details">
<img src="img/icon/icon_4.png" alt="">
<h4>24 7 Contact</h4>
<p>24 7 Customer support service.</p>
</div>
</div>
</div>
</div>
</section>
<!-- free shipping end -->
<!-- subscribe_area part start-->
<section class="instagram_photo">
<div class="container-fluid>
<div class="row">
<div class="col-lg-12">
<div class="instagram_photo_iner">
<div class="single_instgram_photo">
<img src="img/instagram/inst_1.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_2.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_3.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_4.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
<div class="single_instgram_photo">
<img src="img/instagram/inst_5.png" alt="">
<a href="#"><i class="ti-instagram"></i></a>
</div>
</div>
</div>
</div>
</div>
</section>
<!--::subscribe_area part end::-->
<!--::footer_part start::-->
<?php include_once 'include/footer.php'; ?>
<!--::footer_part end::-->
<!-- jquery plugins here-->
<script src="js/jquery-1.12.1.min.js"></script>
<!-- popper js -->
<script src="js/popper.min.js"></script>
<!-- bootstrap js -->
<script src="js/bootstrap.min.js"></script>
<!-- easing js -->
<script src="js/jquery.magnific-popup.js"></script>
<!-- swiper js -->
<script src="js/swiper.min.js"></script>
<!-- swiper js -->
<script src="js/mixitup.min.js"></script>
<!-- particles js -->
<script src="js/owl.carousel.min.js"></script>
<script src="js/jquery.nice-select.min.js"></script>
<!-- slick js -->
<script src="js/slick.min.js"></script>
<script src="js/jquery.counterup.min.js"></script>
<script src="js/waypoints.min.js"></script>
<script src="js/contact.js"></script>
<script src="js/jquery.ajaxchimp.min.js"></script>
<script src="js/jquery.form.js"></script>
<script src="js/jquery.validate.min.js"></script>
<script src="js/mail-script.js"></script>
<!-- custom js -->
<script src="js/custom.js"></script>
<script type="text/javascript">
function scroll(){
$('html, body').animate({
scrollTop: $("#arrival").offset().top
}, 900);}
</script>
</body>
</html>