-
Notifications
You must be signed in to change notification settings - Fork 1
/
women.php
459 lines (363 loc) · 12.3 KB
/
women.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
<?php
session_start();
require_once "header1.php";
?>
<head>
<script src="http://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(document).ready(function(){
$('.checkbox').on('change', function(){
var checkbox_list = [0];
$('#filters :input:checked').each(function(){
var checkbox = $(this).val();
checkbox_list.push(checkbox);
});
if(checkbox_list.length == 0)
$('.resultblock').fadeIn();
else {
$('.resultblock').each(function(){
var item = $(this).attr('data-tag');
if(jQuery.inArray(item,checkbox_list) > -1)
$(this).fadeIn('slow');
// element.hide();
else
$(this).hide();
});
}
});
});
</script>
</head>
<!--header//-->
<div class="product-model">
<div class="container">
<ol class="breadcrumb">
<li><a href="index.php">Home</a></li>
<li class="active">Women</li>
</ol>
<h2>OUR PRODUCTS</h2>
<div class="col-md-9 product-model-sec">
<?php
$qimpo = $conn->query("SELECT * FROM brand_list
")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
$brand_id[] = $fimp1['id'];
//$name = $fimp1['name'];
}
$qimpo = $conn->query("SELECT * FROM cat_list
")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
$cat_id[] = $fimp1['id'];
//$name = $fimp1['name'];
}
?>
<?php
// MEN Category link data from header1, 21-04-2018, Prabhat Chandra
if(isset($_GET["data"]))
{
$cat_i = $_GET["data"];
// echo $cat_i; ?>
<div class="resultblock" data-tag="a" style="display:block" >
<div class="desc">
<div class="desc_text">
<?php
for($b=0;$b<99;$b++){
$qimpo = $conn->query("SELECT * FROM `i_new_product` WHERE brand = '$b' AND cat='$cat_i' AND m_cat=2 ") or die(mysqli_error($conn));
while($fimp1 = $qimpo->fetch_array()){
?>
<div class="product-grid love-grid">
<div class="more-product-info"><span>TOP</span></div>
<div class="product-img b-link-stripe b-animate-go thickbox">
<div class="img-responsive">
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode( $fimp1['image'] ).'"/>';
$id = $fimp1['id'];
?>
</div>
<div class="b-wrapper">
<h4 class="b-animate b-from-left b-delay03">
<button class="btns"><a href="single.php?data=<?php echo $id; ?>">ORDER NOW</button>
</h4>
</div>
</div>
<div class="product-info simpleCart_shelfItem">
<div class="product-info-cust prt_name">
<h4 class="product_title"><?php echo $fimp1['name'];?></h4>
<h5><?php echo "Product id:".$fimp1['id'];?></h5>
<span class="item_price"><?php echo "Rs.".$fimp1['price'];?></span>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<?php }
else { ?>
<!-- SHOW ALL, 20-04-2018, Prabhat Chandra -->
<div class="resultblock" data-tag="a" style="display:block" >
<div class="desc">
<div class="desc_text">
<?php
for($bid=0;$bid<99;$bid++){
$qimpo = $conn->query("SELECT * FROM `i_new_product` WHERE brand = '$bid' AND m_cat=2 ") or die(mysqli_error($conn));
while($fimp1 = $qimpo->fetch_array()){
?>
<div class="product-grid love-grid">
<div class="more-product-info"><span>TOP</span></div>
<div class="product-img b-link-stripe b-animate-go thickbox">
<div class="img-responsive">
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode( $fimp1['image'] ).'"/>';
$id = $fimp1['id'];
?>
</div>
<div class="b-wrapper">
<h4 class="b-animate b-from-left b-delay03">
<button class="btns"><a href="single.php?data=<?php echo $id; ?>">ORDER NOW</button>
</h4>
</div>
</div>
<div class="product-info simpleCart_shelfItem">
<div class="product-info-cust prt_name">
<h4 class="product_title"><?php echo $fimp1['name'];?></h4>
<h5><?php echo "Product id:".$fimp1['id'];?></h5>
<span class="item_price"><?php echo "Rs.".$fimp1['price'];?></span>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<?php }
?>
<div class="searchresults">
<!-- SHOW ALL, 20-04-2018, Prabhat Chandra -->
<div class="resultblock" data-tag="" style="display: none" >
<div class="desc">
<div class="desc_text">
<?php
for($bid=0;$bid<99;$bid++){
$qimpo = $conn->query("SELECT * FROM `i_new_product` WHERE brand = '$bid' AND m_cat=2 ") or die(mysqli_error($conn));
while($fimp1 = $qimpo->fetch_array()){
?>
<div class="product-grid love-grid">
<div class="more-product-info"><span>TOP</span></div>
<div class="product-img b-link-stripe b-animate-go thickbox">
<div class="img-responsive">
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode( $fimp1['image'] ).'"/>';
$id = $fimp1['id'];
?>
</div>
<div class="b-wrapper">
<h4 class="b-animate b-from-left b-delay03">
<button class="btns"><a href="single.php?data=<?php echo $id; ?>">ORDER NOW</button>
</h4>
</div>
</div>
<div class="product-info simpleCart_shelfItem">
<div class="product-info-cust prt_name">
<h4 ><?php echo $fimp1['name'];?></h4>
<h5><?php echo "Product id:".$fimp1['id'];?></h5>
<span class="item_price"><?php echo "Rs.".$fimp1['price'];?></span>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php
}
}
?>
</div>
</div>
</div>
<?php
foreach($brand_id as $brid){
?>
<div class="resultblock" data-tag=" <?php
$qimpo = $conn->query("SELECT * FROM brand_list
WHERE brand_list.id='$brid' ")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
//echo $ccid."".$c_id;
$n = $fimp1['id'];
}
echo $n;
// echo $brid;
?> " style="display: none">
<div class="desc">
<div class="desc_text">
<?php
$qimpo = $conn->query("SELECT * FROM `i_new_product` WHERE brand = '$n' AND m_cat=2 ") or die(mysqli_error($conn));
while($fimp1 = $qimpo->fetch_array()){
?>
<div class="product-grid love-grid">
<div class="more-product-info"><span>TOP</span></div>
<div class="product-img b-link-stripe b-animate-go thickbox">
<div class="img-responsive">
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode( $fimp1['image'] ).'"/>';
$id = $fimp1['id'];
?>
</div>
<div class="b-wrapper">
<h4 class="b-animate b-from-left b-delay03">
<button class="btns"><a href="single.php?data=<?php echo $id; ?>">ORDER NOW</button>
</h4>
</div>
</div>
<div class="product-info simpleCart_shelfItem">
<div class="product-info-cust prt_name">
<h4><?php echo $fimp1['name'];?></h4>
<h5><?php echo "Product id:".$fimp1['id'];?></h5>
<span class="item_price"><?php echo "Rs.".$fimp1['price'];?></span>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php
} ?>
<?php
foreach($cat_id as $catd){
?>
<div class="resultblock" data-tag=" <?php
$qimpo = $conn->query("SELECT * FROM cat_list
WHERE cat_list.id='$catd' AND m_cat_as = 2")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
//echo $ccid."".$c_id;
$n = $fimp1['id'];
}
echo $n; ?> " style="display: none">
<div class="desc">
<div class="desc_text">
<?php
$qimpo = $conn->query("SELECT * FROM `i_new_product` WHERE cat = '$catd' AND m_cat=2") or die(mysqli_error($conn));
while($fimp1 = $qimpo->fetch_array()){
?>
<div class="product-grid love-grid">
<div class="more-product-info"><span></span></div>
<div class="product-img b-link-stripe b-animate-go thickbox">
<div class="img-responsive">
<?php
echo '<img src="data:image/jpeg;base64,'.base64_encode( $fimp1['image'] ).'"/>';
$id = $fimp1['id'];
?>
</div>
<div class="b-wrapper">
<h4 class="b-animate b-from-left b-delay03">
<button class="btns"><a href="single.php?data=<?php echo $id; ?>">ORDER NOW</button>
</h4>
</div>
</div>
<div class="product-info simpleCart_shelfItem">
<div class="product-info-cust prt_name">
<h4><?php echo $fimp1['name'];?></h4>
<h5><?php echo "Product id:".$fimp1['id'];?></h5>
<span class="item_price"><?php echo "Rs.".$fimp1['price'];?></span>
</div>
<div class="clearfix"> </div>
</div>
</div>
<?php
}
?>
</div>
</div>
</div>
<?php
}
?>
</div>
</div>
<!-- Created On 31-03-2018, Prabhat Chandra -->
<div class="rsidebar span_2_of_left">
<section class="sky-form">
<h4>Brand</h4>
<div id="filters">
<label class="checkbox"><input type="checkbox" id="check3" value="<?php //echo $brand_id[2] ?>" name="checkbox"><i></i>ALL</label>
<?php foreach($brand_id as $bbid => $bid){ ?>
<div class="col col-4">
<label class="checkbox"><input type="checkbox" id="check1" name="checkbox" value=" <?php
$qimpo = $conn->query("SELECT * FROM i_new_product, brand_list
WHERE i_new_product.brand='$bid' AND brand_list.id = i_new_product.brand AND m_cat=2 ")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
$b_id = $fimp1['id'];
echo $b_id;
$name_n = $fimp1['name'];
?> " >
<i></i><?php
$qimpo = $conn->query("SELECT * FROM brand_list
WHERE brand_list.id='$b_id' ")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
//echo $ccid."".$c_id;
$n = $fimp1['name'];
}
echo $n;
}
?> </label>
<div class="clearfix"> </div>
<?php
}
?>
</div>
<h4>Category</h4>
<?php foreach($cat_id as $ccid => $c_id){ ?>
<div id="filters">
<div class="col col-100">
<label class="checkbox"><input type="checkbox" id="check1" name="checkbox" value=" <?php
$qimpo = $conn->query("SELECT * FROM i_new_product, cat_list
WHERE i_new_product.cat='$c_id' AND cat_list.id = i_new_product.cat AND m_cat=2")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
$cat_id = $fimp1['id'];
//$cat_name[] = $fimp1['name'];
echo $cat_id;
?> " >
<i></i><?php
$qimpo = $conn->query("SELECT * FROM cat_list
WHERE cat_list.id='$c_id' ")
or die(mysqli_error($conn)) ;
while($fimp1 = $qimpo->fetch_array()){
//echo $ccid."".$c_id;
$n = $fimp1['name'];
}
echo $n;
}
?> </label>
<div class="clearfix"> </div>
<?php
}
?>
</div>
</div>
</div>
</section>
</div>
</div>
</div>
<?php
require_once "men_footer.php";
?>
</body>
</html>