-
Notifications
You must be signed in to change notification settings - Fork 5
/
index.php
462 lines (355 loc) · 16.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
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Meta -->
<meta charset="utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="description" content="">
<meta name="author" content="">
<meta name="keywords" content="MediaCenter, Template, eCommerce">
<meta name="robots" content="all">
<title>Shopping Portal Home Page</title>
<!-- Bootstrap Core CSS -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css">
<!-- Customizable CSS -->
<link rel="stylesheet" href="assets/css/main.css">
<link rel="stylesheet" href="assets/css/green.css">
<link rel="stylesheet" href="assets/css/owl.carousel.css">
<link rel="stylesheet" href="assets/css/owl.transitions.css">
<!--<link rel="stylesheet" href="assets/css/owl.theme.css">-->
<link href="assets/css/lightbox.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/animate.min.css">
<link rel="stylesheet" href="assets/css/rateit.css">
<link rel="stylesheet" href="assets/css/bootstrap-select.min.css">
<!-- Demo Purpose Only. Should be removed in production -->
<link rel="stylesheet" href="assets/css/config.css">
<link href="assets/css/green.css" rel="alternate stylesheet" title="Green color">
<link href="assets/css/blue.css" rel="alternate stylesheet" title="Blue color">
<link href="assets/css/red.css" rel="alternate stylesheet" title="Red color">
<link href="assets/css/orange.css" rel="alternate stylesheet" title="Orange color">
<link href="assets/css/dark-green.css" rel="alternate stylesheet" title="Darkgreen color">
<link rel="stylesheet" href="assets/css/font-awesome.min.css">
<link href='http://fonts.googleapis.com/css?family=Roboto:300,400,500,700' rel='stylesheet' type='text/css'>
<!-- Favicon -->
<link rel="shortcut icon" href="assets/images/favicon.ico">
</head>
<body class="cnt-home">
<!-- ============================================== HEADER ============================================== -->
<header class="header-style-1">
<?php include('includes/top-header.php');?>
<?php include('includes/main-header.php');?>
<?php include('includes/menu-bar.php');?>
</header>
<!-- ============================================== HEADER : END ============================================== -->
<div class="body-content outer-top-xs" id="top-banner-and-menu">
<div class="container">
<div class="furniture-container homepage-container">
<div class="row">
<div class="col-xs-12 col-sm-12 col-md-3 sidebar">
<!-- ================================== TOP NAVIGATION ================================== -->
<?php include('includes/side-menu.php');?>
<!-- ================================== TOP NAVIGATION : END ================================== -->
</div><!-- /.sidemenu-holder -->
<div class="col-xs-12 col-sm-12 col-md-9 homebanner-holder">
<!-- ========================================== SECTION – HERO ========================================= -->
<div id="hero" class="homepage-slider3">
<div id="owl-main" class="owl-carousel owl-inner-nav owl-ui-sm">
<div class="full-width-slider">
<div class="item" style="background-image: url(assets/images/sliders/slider1.png);">
<!-- /.container-fluid -->
</div><!-- /.item -->
</div><!-- /.full-width-slider -->
<div class="full-width-slider">
<div class="item full-width-slider" style="background-image: url(assets/images/sliders/slider2.png);">
</div><!-- /.item -->
</div><!-- /.full-width-slider -->
</div><!-- /.owl-carousel -->
</div>
<!-- ========================================= SECTION – HERO : END ========================================= -->
<!-- ============================================== INFO BOXES ============================================== -->
<div class="info-boxes wow fadeInUp">
<div class="info-boxes-inner">
<div class="row">
<div class="col-md-6 col-sm-4 col-lg-4">
<div class="info-box">
<div class="row">
<div class="col-xs-2">
<i class="icon fa fa-dollar"></i>
</div>
<div class="col-xs-10">
<h4 class="info-box-heading green">money back</h4>
</div>
</div>
<h6 class="text">30 Day Money Back Guarantee.</h6>
</div>
</div><!-- .col -->
<div class="hidden-md col-sm-4 col-lg-4">
<div class="info-box">
<div class="row">
<div class="col-xs-2">
<i class="icon fa fa-truck"></i>
</div>
<div class="col-xs-10">
<h4 class="info-box-heading orange">free shipping</h4>
</div>
</div>
<h6 class="text">free ship-on oder over Rs. 600.00</h6>
</div>
</div><!-- .col -->
<div class="col-md-6 col-sm-4 col-lg-4">
<div class="info-box">
<div class="row">
<div class="col-xs-2">
<i class="icon fa fa-gift"></i>
</div>
<div class="col-xs-10">
<h4 class="info-box-heading red">Special Sale</h4>
</div>
</div>
<h6 class="text">All items-sale up to 20% off </h6>
</div>
</div><!-- .col -->
</div><!-- /.row -->
</div><!-- /.info-boxes-inner -->
</div><!-- /.info-boxes -->
<!-- ============================================== INFO BOXES : END ============================================== -->
</div><!-- /.homebanner-holder -->
</div><!-- /.row -->
<!-- ============================================== SCROLL TABS ============================================== -->
<div id="product-tabs-slider" class="scroll-tabs inner-bottom-vs wow fadeInUp">
<div class="more-info-tab clearfix">
<h3 class="new-product-title pull-left">Featured Products</h3>
<ul class="nav nav-tabs nav-tab-line pull-right" id="new-products-1">
<li class="active"><a href="#all" data-toggle="tab">All</a></li>
<li><a href="#books" data-toggle="tab">Books</a></li>
<li><a href="#furniture" data-toggle="tab">Furniture</a></li>
</ul><!-- /.nav-tabs -->
</div>
<div class="tab-content outer-top-xs">
<div class="tab-pane in active" id="all">
<div class="product-slider">
<div class="owl-carousel home-owl-carousel custom-carousel owl-theme" data-item="4">
<?php
$ret=mysqli_query($con,"select * from products");
while ($row=mysqli_fetch_array($ret))
{
# code...
?>
<div class="item item-carousel">
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
<a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>">
<img src="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="180" height="300" alt=""></a>
</div><!-- /.image -->
</div><!-- /.product-image -->
<div class="product-info text-left">
<h3 class="name"><a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['productName']);?></a></h3>
<div class="rating rateit-small"></div>
<div class="description"></div>
<div class="product-price">
<span class="price">
Rs.<?php echo htmlentities($row['productPrice']);?> </span>
<span class="price-before-discount">Rs.<?php echo htmlentities($row['productPriceBeforeDiscount']);?> </span>
</div><!-- /.product-price -->
</div><!-- /.product-info -->
<?php if($row['productAvailability']=='In Stock'){?>
<div class="action"><a href="index.php?page=product&action=add&id=<?php echo $row['id']; ?>" class="lnk btn btn-primary">Add to Cart</a></div>
<?php } else {?>
<div class="action" style="color:red">Out of Stock</div>
<?php } ?>
</div><!-- /.product -->
</div><!-- /.products -->
</div><!-- /.item -->
<?php } ?>
</div><!-- /.home-owl-carousel -->
</div><!-- /.product-slider -->
</div>
<div class="tab-pane" id="books">
<div class="product-slider">
<div class="owl-carousel home-owl-carousel custom-carousel owl-theme">
<?php
$ret=mysqli_query($con,"select * from products where category=3");
while ($row=mysqli_fetch_array($ret))
{
# code...
?>
<div class="item item-carousel">
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
<a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>">
<img src="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="180" height="300" alt=""></a>
</div><!-- /.image -->
</div><!-- /.product-image -->
<div class="tab-pane" id="furniture">
<div class="product-slider">
<div class="owl-carousel home-owl-carousel custom-carousel owl-theme">
<?php
$ret=mysqli_query($con,"select * from products where category=5");
while ($row=mysqli_fetch_array($ret))
{
?>
<div class="item item-carousel">
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
<a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>">
<img src="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="180" height="300" alt=""></a>
</div>
</div>
<div class="product-info text-left">
<h3 class="name"><a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['productName']);?></a></h3>
<div class="rating rateit-small"></div>
<div class="description"></div>
<div class="product-price">
<span class="price">
Rs.<?php echo htmlentities($row['productPrice']);?> </span>
<span class="price-before-discount">Rs.<?php echo htmlentities($row['productPriceBeforeDiscount']);?></span>
</div>
</div>
<?php if($row['productAvailability']=='In Stock'){?>
<div class="action"><a href="index.php?page=product&action=add&id=<?php echo $row['id']; ?>" class="lnk btn btn-primary">Add to Cart</a></div>
<?php } else {?>
<div class="action" style="color:red">Out of Stock</div>
<?php } ?>
</div>
</div>
</div>
<?php } ?>
</div>
</div>
</div>
</div>
</div>
<!-- ============================================== TABS ============================================== -->
<div class="sections prod-slider-small outer-top-small">
<div class="row">
<div class="col-md-6">
<section class="section">
<h3 class="section-title">Smart Phones</h3>
<div class="owl-carousel homepage-owl-carousel custom-carousel outer-top-xs owl-theme" data-item="2">
<?php
$ret=mysqli_query($con,"select * from products where category=4 and subCategory=4");
while ($row=mysqli_fetch_array($ret))
{
?>
<div class="item item-carousel">
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
<a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>"><img src="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="180" height="300"></a>
</div><!-- /.image -->
</div><!-- /.product-image -->
t of Stock</div>
<?php } ?>
</div>
</div>
</div>
<?php }?>
</div>
</section>
</div>
<div class="col-md-6">
<section class="section">
<h3 class="section-title">Laptops</h3>
<div class="owl-carousel homepage-owl-carousel custom-carousel outer-top-xs owl-theme" data-item="2">
<?php
$ret=mysqli_query($con,"select * from products where category=4 and subCategory=6");
while ($row=mysqli_fetch_array($ret))
{
?>
<div class="item item-carousel">
<div class="products">
<div class="product">
<div class="product-image">
<div class="image">
<a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>"><img src="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="300" height="300"></a>
</div><!-- /.image -->
</div><!-- /.product-image -->
<div class="product-info text-left">
<h3 class="name"><a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['productName']);?></a></h3>
<div class="rating rateit-small"></div>
<div class="description"></div>
<div class="product-price">
<span class="price">
Rs .<?php echo htmlentities($row['productPrice']);?> </span>
<span class="price-before-discount">Rs.<?php echo htmlentities($row['productPriceBeforeDiscount']);?></span>
</div>
</div>
</div>
<?php }?>
</div>
</section>
</div>
</div>
</div>
<!-- ============================================== TABS : END ============================================== -->
<section class="section featured-product inner-xs wow fadeInUp">
<h3 class="section-title">Fashion</h3>
<div class="owl-carousel best-seller custom-carousel owl-theme outer-top-xs">
<?php
$ret=mysqli_query($con,"select * from products where category=6");
while ($row=mysqli_fetch_array($ret))
{
# code...
?>
<div class="item">
<div class="products">
<div class="product">
<div class="product-micro">
<div class="row product-micro-row">
<div class="col col-xs-6">
<div class="product-image">
<div class="image">
<a href="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" data-lightbox="image-1" data-title="<?php echo htmlentities($row['productName']);?>">
<img data-echo="admin/productimages/<?php echo htmlentities($row['id']);?>/<?php echo htmlentities($row['productImage1']);?>" width="170" height="174" alt="">
<div class="zoom-overlay"></div>
</a>
</div><!-- /.image -->
</div><!-- /.product-image -->
</div><!-- /.col -->
<div class="col col-xs-6">
<div class="product-info">
<h3 class="name"><a href="product-details.php?pid=<?php echo htmlentities($row['id']);?>"><?php echo htmlentities($row['productName']);?></a></h3>
<div class="rating rateit-small"></div>
<div class="product-price">
<span class="price">
Rs. <?php echo htmlentities($row['productPrice']);?>
</span>
</div><!-- /.product-price -->
<?php if($row['productAvailability']=='In Stock'){?>
<div class="action"><a href="index.php?page=product&action=add&id=<?php echo $row['id']; ?>" class="lnk btn btn-primary">Add to Cart</a></div>
<?php } else {?>
<div class="action" style="color:red">Out of Stock</div>
<?php } ?>
</div>
</div><!-- /.col -->
</div><!-- /.product-micro-row -->
</div><!-- /.product-micro -->
</div>
</div>
</div><?php } ?>
</div>
</section>
<?php include('includes/brands-slider.php');?>
</div>
</div>
<?php include('includes/footer.php');?>
<script src="assets/js/jquery-1.11.1.min.js"></script>
<script src="assets/js/bootstrap.min.js"></script>
<script src="assets/js/bootstrap-hover-dropdown.min.js"></script>
<script src="assets/js/owl.carousel.min.js"></script>
<script src="assets/js/echo.min.js"></script>
<script src="assets/js/jquery.easing-1.3.min.js"></script>
<script src="assets/js/bootstrap-slider.min.js"></script>
<script src="assets/js/jquery.rateit.min.js"></script>
<script type="text/javascript" src="assets/js/lightbox.min.js"></script>
<script src="assets/js/bootstrap-select.min.js"></script>
</body>
</html>