-
Notifications
You must be signed in to change notification settings - Fork 0
/
product.php
259 lines (202 loc) · 8.02 KB
/
product.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
<?php include "head.php";?>
<body class="animsition">
<!-- Header -->
<?php include"header.php"; ?>
<?php
//include "common/dl.php";
$categories=getCategories();
//$products=getProductsByName("mobiles");
?>
<!-- Title Page -->
<section class="bg-title-page p-t-50 p-b-40 flex-col-c-m" style="background-image: url(images/heading-pages-02.jpg);">
<h2 class="l-text2 t-center">
EzyShoppe
</h2>
<p class="m-text13 t-center">
Big Billion Days 2018
</p>
</section>
<!-- Content page -->
<section class="bgwhite p-t-55 p-b-65">
<div class="container">
<div class="row">
<div class="col-sm-6 col-md-4 col-lg-3 p-b-50">
<div class="leftbar p-r-20 p-r-0-sm">
<!-- -->
<h4 class="m-text14 p-b-7">
Categories
</h4>
<ul class="p-b-54">
<?php foreach($categories as $category) {?>
<li class="p-t-4">
<a href="#" class="s-text13 active1">
<?php echo $category['name'];?>
</a>
</li>
<?php }?>
</ul>
<!-- Filters -->
<h4 class="m-text14 p-b-32">
Filters
</h4>
<div class="filter-price p-t-22 p-b-50 bo3">
<div class="m-text15 p-b-17">
Price
</div>
<div class="wra-filter-bar">
<div id="filter-bar"></div>
</div>
<div class="flex-sb-m flex-w p-t-16">
<div class="w-size11">
<!-- Button -->
<button class="flex-c-m size4 bg7 bo-rad-15 hov1 s-text14 trans-0-4">
Filter
</button>
</div>
<div class="s-text3 p-t-10 p-b-10">
Range: $<span id="value-lower">610</span> - $<span id="value-upper">980</span>
</div>
</div>
</div>
<div class="filter-color p-t-22 p-b-50 bo3">
<div class="m-text15 p-b-12">
Color
</div>
<ul class="flex-w">
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter1" type="checkbox" name="color-filter1">
<label class="color-filter color-filter1" for="color-filter1"></label>
</li>
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter2" type="checkbox" name="color-filter2">
<label class="color-filter color-filter2" for="color-filter2"></label>
</li>
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter3" type="checkbox" name="color-filter3">
<label class="color-filter color-filter3" for="color-filter3"></label>
</li>
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter4" type="checkbox" name="color-filter4">
<label class="color-filter color-filter4" for="color-filter4"></label>
</li>
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter5" type="checkbox" name="color-filter5">
<label class="color-filter color-filter5" for="color-filter5"></label>
</li>
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter6" type="checkbox" name="color-filter6">
<label class="color-filter color-filter6" for="color-filter6"></label>
</li>
<li class="m-r-10">
<input class="checkbox-color-filter" id="color-filter7" type="checkbox" name="color-filter7">
<label class="color-filter color-filter7" for="color-filter7"></label>
</li>
</ul>
</div>
<div class="search-product pos-relative bo4 of-hidden">
<input class="s-text7 size6 p-l-23 p-r-50" type="text" name="search-product" placeholder="Search Products...">
<button class="flex-c-m size5 ab-r-m color2 color0-hov trans-0-4">
<i class="fs-12 fa fa-search" aria-hidden="true"></i>
</button>
</div>
</div>
</div>
<div class="col-sm-6 col-md-8 col-lg-9 p-b-50">
<!-- sorting search section -->
<div class="flex-sb-m flex-w p-b-35">
<div class="flex-w">
<div class="rs2-select2 bo4 of-hidden w-size12 m-t-5 m-b-5 m-r-10">
<select class="selection-2" name="sorting">
<option>Default Sorting</option>
<option>Popularity</option>
<option>Price: low to high</option>
<option>Price: high to low</option>
</select>
</div>
<div class="rs2-select2 bo4 of-hidden w-size12 m-t-5 m-b-5 m-r-10">
<select class="selection-2" name="sorting">
<option>Price</option>
<option>$0.00 - $50.00</option>
<option>$50.00 - $100.00</option>
<option>$100.00 - $150.00</option>
<option>$150.00 - $200.00</option>
<option>$200.00+</option>
</select>
</div>
</div>
<span class="s-text8 p-t-5 p-b-5">
Showing 1–12 of 16 results
</span>
</div>
<!-- Product -->
<?php
foreach($categories as $category)
{
$name=$category['name'];
echo $name;
$products=getProductsByName($name);
?>
<div class="row">
<section class="newproduct bgwhite p-t-45 p-b-105">
<div class="container">
<!-- Slide2 -->
<div class="wrap-slick2">
<div class="slick2">
<?php foreach($products as $product) { ?>
<div class="item-slick2 p-l-15 p-r-15">
<!-- Block2 -->
<div class="block2">
<div class="block2-img wrap-pic-w of-hidden pos-relative block2-labelnew">
<?php $image=getImagesByPid($product['id'])[0]; ?>
<img src="images/<?php echo $image['url']; ?>" alt="IMG-PRODUCT">
<div class="block2-overlay trans-0-4">
<a href="product.php" class="block2-btn-addwishlist hov-pointer trans-0-2">
<i class="icon-wishlist icon_heart_alt" aria-hidden="true"></i>
<i class="icon-wishlist icon_heart dis-none" aria-hidden="true"></i>
</a>
<div class="block2-btn-addcart w-size1 trans-0-4">
<!-- Button -->
<button class="flex-c-m size1 bg4 bo-rad-23 hov1 s-text1 trans-0-4">
Add to Cart
</button>
</div>
</div>
</div>
<div class="block2-txt p-t-20">
<a href="product_detail.php?id=<?php echo $product['id']?>" class="block2-name dis-block s-text3 p-b-5">
<?php echo $product['name']; ?>
</a>
<span class="block2-price m-text6 p-r-5">
₹ <?php echo $product['price'];?>
</span>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</section>
<?php } ?>
</div>
<!-- Pagination -->
<div class="pagination flex-m flex-w p-t-26">
<a href="#" class="item-pagination flex-c-m trans-0-4 active-pagination">1</a>
<a href="#" class="item-pagination flex-c-m trans-0-4">2</a>
</div>
</div>
</div>
</div>
</section>
<!-- Footer -->
<?php include "footer.php"; ?>
<!-- Back to top -->
<div class="btn-back-to-top bg0-hov" id="myBtn">
<span class="symbol-btn-back-to-top">
<i class="fa fa-angle-double-up" aria-hidden="true"></i>
</span>
</div>
<!-- Container Selection -->
<div id="dropDownSelect1"></div>
<div id="dropDownSelect2"></div>
<?php include "body.php";?>