-
Notifications
You must be signed in to change notification settings - Fork 0
/
shop.php
740 lines (613 loc) · 20.1 KB
/
shop.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
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
<?php
session_start();
set_include_path($_SERVER['DOCUMENT_ROOT'].'/controller');
require_once('DBconnection.php');
$var= "SELECT * FROM product";
$result=$conn->query($var);
$numOfBlog=$result->num_rows;
$blogList = array();
if($numOfBlog>0)
{
$index=0;
while ($row=$result->fetch_assoc()) {
//if($row['Approval']==1)
//{
$blogList[$index]=array('PID'=>$row['PID'],'name'=>$row['name'],
'Quantity'=>$row['Quantity'],'Price'=>$row['Price'],
'Category'=>$row['Category'],
'Includes'=>$row['Includes'],
'description'=>$row['description'],
'Files'=>$row['numberofFile']);
if($row['numberofFile']>0)
array_push($blogList[$index],$row['File1']);
$index=$index+1;
}
//print_r($blogList);
}
$index=0;
$midx=0;
$var2="SELECT * from category";
$result2=$conn->query($var2);
$numOfCatg=$result2->num_rows;
$catgList = array();
if($numOfCatg > 0) {
while ($row=$result2->fetch_assoc()) {
$catgList[$index]=array('CategoryId'=>$row['categorynumber'],
'CategoryName'=>$row['categoryname']);
$index=$index+1;
}
}
$index = 0;
?>
<!DOCTYPE html>
<html lang="zxx">
<head>
<title>Globeebd.com : Your one stop solution for protection against Corona Virus</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta charset="utf-8">
<meta name="keywords" content="Globeedb.com : Your one stop solution for protection against Corona Virus" />
<script>
addEventListener("load", function () {
setTimeout(hideURLbar, 0);
}, false);
function hideURLbar() {
window.scrollTo(0, 1);
}
</script>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<link href="css/login_overlay.css" rel='stylesheet' type='text/css' />
<link href="css/style6.css" rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="css/shop.css" type="text/css" />
<link rel="stylesheet" href="css/owl.carousel.css" type="text/css" media="all">
<link rel="stylesheet" href="css/owl.theme.css" type="text/css" media="all">
<link href="css/style.css" rel='stylesheet' type='text/css' />
<link href="css/fontawesome-all.css" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Inconsolata:400,700" rel="stylesheet">
<link href="//fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800"
rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<div class="banner-top container-fluid" id="home">
<!-- header -->
<header>
<div class="row">
<div class="col-md-3 top-info text-left mt-lg-4">
<h6 style= "font-weight:bold;color:red">Reach Us 24/7</h6>
<ul>
<p>
<a href = "tel:09612001144">
<span class = "fas fa-phone"> : 09612001144</span>
</a>
</p>
<p>
<a href="mailto:[email protected]">
<span class = "fa fa-envelope"> : [email protected]</span></a>
</p>
<p>
<a href="https://www.facebook.com/globeebd">
<span class="fab fa-facebook-f"> : www.facebook.com/globeebd</span>
</a>
</p>
</ul>
</div>
<div class="col-md-6 logo-w3layouts text-center">
<h1 class="logo-w3layouts">
<a class="navbar-brand" href="index">
<img src="images/logo1.png" class="img-fluid" alt="" >
</a>
</h1>
</div>
<div class="col-md-3 top-info-cart text-right mt-lg-4">
<a class="navbar-brand" href="index">
</a>
</div>
</div>
<!--</div>-->
<label class="top-log mx-auto"></label>
<nav class="navbar navbar-expand-lg navbar-light bg-light top-header mb-2">
<button class="navbar-toggler mx-auto" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon">
</span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav nav-mega mx-auto">
<li class="nav-item">
<a class="nav-link ml-lg-0" href="index">Home
<span class="sr-only">(current)</span>
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Featured
</a>
<ul class="dropdown-menu mega-menu ">
<li>
<div class="row">
<div class="col-md-4 media-list span4 text-left">
<h5 class="tittle-w3layouts-sub"> Frequently Bought </h5>
<ul>
<li class="media-mini mt-3">
<a href="shop">Oxygen Concentrator</a>
</li>
</ul>
</div>
<div class="col-md-4 media-list span4 text-left">
<h5 class="tittle-w3layouts-sub"> Oxygen Concetrator </h5>
<div class="media-mini mt-3">
<a href="shop">
<img src="images/globe1.png" class="img-fluid" alt="">
</a>
</div>
</div>
</div>
<hr>
</li>
</ul>
</li>
<li class="nav-item dropdown active">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown1" role="button" data-toggle="dropdown" aria-haspopup="true"
aria-expanded="false">
Product Categories
</a>
<ul class="dropdown-menu mega-menu ">
<li>
<div class="row">
<?php
while($index<sizeof($catgList)) {
echo
'<div class="col-md-4 media-list span4 text-left">
<h5 class="tittle-w3layouts-sub"> '.$catgList[$index]['CategoryName'].' </h5>
<ul>
<li class="media-mini mt-3">
<a href="'.'shopcategory'.'?categoryId='.$catgList[$index]['CategoryId'].'" style="color:#951515;font-size:18px;">Explore '.$catgList[$index]['CategoryName'].'</a>
</li>';
while($midx<sizeof($blogList)) {
if($blogList[$midx]['Category'] == $catgList[$index]['CategoryId']) {
echo
'
<li class="media-mini mt-3">
<a href="'.'product'.'?pid='.$blogList[$midx]['PID'].'"">'.$blogList[$midx]['name'].'</a>
</li>';
}
$midx=$midx+1;
}
echo
'
</ul>
</div>';
$index = $index+1;
$midx=0;
}
$index = 0;
$midx=0;
?>
</div>
<hr>
</li>
</ul>
</li>
<li class="nav-item">
<a class="nav-link" href="about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact">Contact</a>
</li>
</ul>
</div>
</nav>
</header>
</div>
<!-- banner -->
<div class="banner_inner">
<div class="services-breadcrumb">
<div class="inner_breadcrumb">
<ul class="short">
<li>
<a href="index">Home</a>
<i>|</i>
</li>
<li>Shop</li>
</ul>
</div>
</div>
</div>
<!--//banner -->
<!--/shop-->
<section class="banner-bottom-wthreelayouts py-lg-5 py-3">
<div class="container-fluid">
<div class="inner-sec-shop px-lg-4 px-3">
<div class="row">
<!-- product left -->
<!--
<!-- //product left -->
<!--/product right-->
<div class="left-ads-display col-lg-20">
<div class="wrapper_top_shop">
<!--<div class="row">
<div class="col-md-6 shop_left">
<a href = "contact.html">
<img src="images/banner3.jpg" alt="">
<h6>Most Popular in this category </h6>
</a>
</div>
<div class="col-md-6 shop_right">
<a href = "about.html">
<img src="images/banner4.jpg" alt="">
<h6>most popular 2 in this category</h6>
</a>
</div>
</div>-->
</div>
</div>
<!--//product right-->
</div>
<!--/slide-->
<div class="slider-img mid-sec mt-lg-5 mt-2">
<!--//banner-sec-->
<h3 class="tittle-w3layouts text-left my-lg-4 my-3">All Products</h3>
<div class="mid-slider">
<div class="owl-carousel owl-theme row">
<?php
while ($index<sizeof($blogList)){
echo
'<div class = "item">
<div class="product-googles-info googles slide-img googles">
<div class="men-pro-item">
<div class="men-thumb-item">
<a href="'.'product'.'?pid='.$blogList[$index]['PID'].'">'.
'<img src="'.$blogList[$index][0].'" class="img-fluid" alt="">'.'</a>'.
'<div class="men-cart-pro">
<div class="inner-men-cart-pro">
<a href="'.'product'.'?pid='.$blogList[$index]['PID'].'" class="link-product-add-cart">Quick View</a>
</div>
</div>'.
'<span class="product-new-top">In Stock</span>
</div>
<div class="item-info-product">
<div class="info-product-price">
<div class="grid_meta">
<div class="product_price">
<h4>
<a href="'.'product'.'?pid='.$blogList[$index]['PID'].'"">'.$blogList[$index]['name'].'</a>
</h4>'.
'<div class="grid-price mt-2">
<span class="money "> Tk.'.$blogList[$index]['Price'].'</span>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>';
$index = $index +1;
}
$index = 0;
?>
<!--<div class = "item">
<div class="product-googles-info googles slide-img googles">
<div class="men-pro-item">
<div class="men-thumb-item">
<img src="images/s1.jpg" class="img-fluid" alt="">
<div class="men-cart-pro">
<div class="inner-men-cart-pro">
<a href="single.html" class="link-product-add-cart">Quick View</a>
</div>
</div>
<span class="product-new-top">In Stock</span>
</div>
<div class="item-info-product">
<div class="info-product-price">
<div class="grid_meta">
<div class="product_price">
<h4>
<a href="single.html">Product 1</a>
</h4>
<div class="grid-price mt-2">
<span class="money ">Tk.300</span>
</div>
</div>
</div>
</div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>-->
<!--<div class="item">
<div class="gd-box-info text-center">
<div class="product-men women_two bot-gd">
<div class="product-googles-info slide-img googles">
<div class="men-pro-item">
<div class="men-thumb-item">
<img src="images/s6.jpg" class="img-fluid" alt="">
<div class="men-cart-pro">
<div class="inner-men-cart-pro">
<a href="single.html" class="link-product-add-cart">Quick View</a>
</div>
</div>
<span class="product-new-top">New</span>
</div>
<div class="item-info-product">
<div class="info-product-price">
<div class="grid_meta">
<div class="product_price">
<h4>
<a href="single.html">MARTIN Aviator </a>
</h4>
<div class="grid-price mt-2">
<span class="money ">$425.00</span>
</div>
</div>
<ul class="stars">
<li>
<a href="#">
<i class="fa fa-star" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-star" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-star" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-star-half-o" aria-hidden="true"></i>
</a>
</li>
<li>
<a href="#">
<i class="fa fa-star-o" aria-hidden="true"></i>
</a>
</li>
</ul>
</div>
<div class="googles single-item hvr-outline-out">
<form action="#" method="post">
<input type="hidden" name="cmd" value="_cart">
<input type="hidden" name="add" value="1">
<input type="hidden" name="googles_item" value="MARTIN Aviator">
<input type="hidden" name="amount" value="425.00">
<button type="submit" class="googles-cart pgoogles-cart">
<i class="fas fa-cart-plus"></i>
</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> -->
</div>
</div>
</div>
<!--//slider-->
</div>
</div>
</section>
<!--footer -->
<footer class="py-lg-5 py-3">
<div class="container-fluid px-lg-5 px-3">
<div class="row footer-top-w3layouts">
<div class="col-lg-3 footer-grid-w3ls">
<div class="footer-title">
<h3>About Us</h3>
</div>
<div class="footer-text">
<p>Serving the Nation in this Trying Times. To Know More <span> <a href ="contact">Click Here </a></span></p>
<ul class="footer-social text-left mt-lg-4 mt-3">
<li class="mx-2">
<a href="https://www.facebook.com/globeebd">
<span class="fab fa-facebook-f"></span>
</a>
</li>
<li class="mx-2">
<a href="https://www.instagram.com/globeebd">
<span class="fa"></span>
</a>
</li>
</ul>
</div>
</div>
<div class="col-lg-3 footer-grid-w3ls">
<div class="footer-title">
<h3>Get in touch</h3>
</div>
<div class="contact-info">
<h4>Location :</h4>
<p>318/1, Senpara Parbata, Mirpur 10, Dhaka-1216</p>
<div class="phone">
<h4>Contact :</h4>
<p>Phone : +88 0191130303 </p>
<p>Email :
<a href="mailto:[email protected]">[email protected]</a>
</p>
</div>
</div>
</div>
<div class="col-lg-3 footer-grid-w3ls">
<div class="footer-title">
<h3>Quick Links</h3>
</div>
<ul class="links">
<li>
<a href="index">Home</a>
</li>
<li>
<a href="about">About</a>
</li>
<li>
<a href="shop">Shop</a>
</li>
<li>
<a href="contact">Contact Us</a>
</li>
</ul>
</div>
<!-- <div class="col-lg-3 footer-grid-w3ls">
<div class="footer-title">
<h3>Sign up for your offers</h3>
</div>
<div class="footer-text">
<p>By subscribing to our mailing list you will always get latest news and updates from us.</p>
<form action="#" method="post">
<input class="form-control" type="email" name="Email" placeholder="Enter your email..." required="">
<button class="btn1">
<i class="far fa-envelope" aria-hidden="true"></i>
</button>
<div class="clearfix"> </div>
</form>
</div>
</div>-->
</div>
<div class="copyright-w3layouts mt-4">
<p class="copy-right text-center ">© 2020 globeebd.com. Private Property | Designed by
<a href="https://www.facebook.com/emblembangladesh"> Emblem Bangladesh.</a>
</p>
</div>
</div>
</footer>
<!-- //footer -->
<!--jQuery-->
<script src="js/jquery-2.2.3.min.js"></script>
<!-- newsletter modal -->
<!--search jQuery-->
<script src="js/modernizr-2.6.2.min.js"></script>
<script src="js/classie-search.js"></script>
<script src="js/demo1-search.js"></script>
<!--//search jQuery-->
<!-- cart-js -->
<script src="js/minicart.js"></script>
<script>
googles.render();
googles.cart.on('googles_checkout', function (evt) {
var items, len, i;
if (this.subtotal() > 0) {
items = this.items();
for (i = 0, len = items.length; i < len; i++) {}
}
});
</script>
<!-- //cart-js -->
<script>
$(document).ready(function () {
$(".button-log a").click(function () {
$(".overlay-login").fadeToggle(200);
$(this).toggleClass('btn-open').toggleClass('btn-close');
});
});
$('.overlay-close1').on('click', function () {
$(".overlay-login").fadeToggle(200);
$(".button-log a").toggleClass('btn-open').toggleClass('btn-close');
open = false;
});
</script>
<!-- carousel -->
<!-- price range (top products) -->
<script src="js/jquery-ui.js"></script>
<script>
//<![CDATA[
$(window).load(function () {
$("#slider-range").slider({
range: true,
min: 0,
max: 9000,
values: [50, 6000],
slide: function (event, ui) {
$("#amount").val("$" + ui.values[0] + " - $" + ui.values[1]);
}
});
$("#amount").val("$" + $("#slider-range").slider("values", 0) + " - $" + $("#slider-range").slider("values", 1));
}); //]]>
</script>
<!-- //price range (top products) -->
<script src="js/owl.carousel.js"></script>
<script>
$(document).ready(function () {
$('.owl-carousel').owlCarousel({
loop: true,
margin: 10,
responsiveClass: true,
responsive: {
0: {
items: 1,
nav: true
},
600: {
items: 2,
nav: false
},
900: {
items: 3,
nav: false
},
1000: {
items: 4,
nav: true,
loop: false,
margin: 20
}
}
})
})
</script>
<!-- //end-smooth-scrolling -->
<!-- dropdown nav -->
<script>
$(document).ready(function () {
$(".dropdown").hover(
function () {
$('.dropdown-menu', this).stop(true, true).slideDown("fast");
$(this).toggleClass('open');
},
function () {
$('.dropdown-menu', this).stop(true, true).slideUp("fast");
$(this).toggleClass('open');
}
);
});
</script>
<!-- //dropdown nav -->
<script src="js/move-top.js"></script>
<script src="js/easing.js"></script>
<script>
jQuery(document).ready(function($) {
$(".scroll").click(function(event) {
event.preventDefault();
$('html,body').animate({
scrollTop: $(this.hash).offset().top
}, 900);
});
});
</script>
<script>
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({
easingType: 'easeOutQuart'
});
});
</script>
<!--// end-smoth-scrolling -->
<script src="js/bootstrap.js"></script>
<!-- js file -->
</body>
</html>