forked from arjankc/online-store
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
109 lines (91 loc) · 2.69 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
<!DOCTYPE html>
<html lang="en">
<?php
include ("files/head.php");
?>
<body class="animsition">
<?php
include ("files/header.php");
include ("files/slider.php");
include ("files/banner.php");
?>
<!-- Product -->
<section class="bg0 p-t-23 p-b-140">
<div class="container">
<div class="p-b-10">
<h3 class="ltext-103 cl5">
Product Overview
</h3>
</div>
<div class="flex-w flex-sb-m p-b-52">
<div class="flex-w flex-l-m filter-tope-group m-tb-10">
<button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5 how-active1" data-filter="*">
All Products
</button>
<button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5" data-filter=".1">
Women
</button>
<button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5" data-filter=".2">
Men
</button>
<button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5" data-filter=".3">
Kids
</button>
<button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5" data-filter=".4">
Accessories
</button>
<button class="stext-106 cl6 hov1 bor3 trans-04 m-r-32 m-tb-5" data-filter=".5">
Others
</button>
</div>
</div>
<div class="row isotope-grid">
<?php
include("files/connect.php");
$sql="Select * from products";
$results=$connect->query($sql);
while($final=$results->fetch_assoc())
{ ?>
<div class="col-sm-6 col-md-4 col-lg-3 p-b-35 isotope-item <?php echo $final['category_id'] ?>">
<!-- Block2 -->
<div class="block2">
<div class="block2-pic hov-img0">
<img src="
<?php
$path= $final['picture'];
$display = substr($path, 3);
echo $display;
?>" alt="IMG-PRODUCT">
<a href="details.php?details_id=<?php echo $final['id']?>" class="block2-btn flex-c-m stext-103 cl2 size-102 bg0 bor2 hov-btn1 p-lr-15 trans-04">
More Details
</a>
</div>
<div class="block2-txt flex-w flex-t p-t-14">
<div class="block2-txt-child1 flex-col-l ">
<a href="product-detail.html" class="stext-104 cl4 hov-cl1 trans-04 js-name-b2 p-b-6">
<?php echo $final['name'] ?>
</a>
<span class="stext-105 cl3">
Rs. <?php echo $final['price'] ?>
</span>
</div>
<div class="block2-txt-child2 flex-r p-t-3">
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<!-- Load more -->
<div class="flex-c-m flex-w w-full p-t-45">
<a href="product.php" class="flex-c-m stext-101 cl5 size-103 bg2 bor1 hov-btn1 p-lr-15 trans-04">
View all products
</a>
</div>
</div>
</section>
<?php
include ("files/footer.php");
?>
</body>
</html>