-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
463 lines (448 loc) · 17 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
463
<?php
// include("db.php");
include("functions/functions.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Easy Shopping.com</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" type="text/css" href="grid.css"><!--------used as main css file ------->
<link rel="stylesheet" href="product-slider/swiper.min.css"><!--------used for product slider ------->
</head>
<body>
<div class="header"><!------ header starts----->
<div class="header1"><!---- header1 starts ------>
<h6 class="div1h6">India's Fastest Online Shopping Destination</h6>
<ul>
<li><span style='font-size:25px;'>☰</span>
<ul>
<li><a href="">Gift Card</a></li>
<li><a href="">Kerala Flood Relief</a></li>
<li><a href="">Gift Card</a></li>
<li><a href="">Sell On Easy Shoppi</a></li>
<li><a href="">  Download App</a></li>
</ul>
</li>
</ul>
</div><!---- header1 ends ------>
<div class="header2"><!---- header2 starts ------>
<img src="images/logos/logo.png">
<h5>EASY SHOPPING.COM</h5>
<div class="searchcontainer">
<div class="searchbox">
<form action="" method="post">
<input type="text" name="searchbox" id="searchtextf" placeholder="Search Anything .......">
<button type="submit" name="searchsubmit" style="">🔍<i class="button_i">Search</i></button>
</form>
</div>
<div class="mainsearcha">
<?php getProsearch(); ?>
</div>
</div>
<a href="cart.php" class="addtocart">Cart</a>
<div class="loginsignin" style="margin-top: 15px; color: white; "><!---- log in with php starts ------>
<?php
include 'login-signup-page1/logincheck.php';
if( isset($_SESSION['removelogin']) && !empty($_SESSION['removelogin']) )
{
?>
<div class="useracc">
<ul>
<li><p class="userpre"><?php echo $_SESSION['username'] ?>
<ul>
<li style=""><a href="my_account.php">My Account</a></li>
<li style=""><a href="">Settings</a></li>
<li style=""><a href="login-signup-page1/logout.php">Logout</a></li>
</ul>
</li>
</ul>
<!--- <p class="userpre"><?php echo $_SESSION['username'] ?></p> -->
</div>
<?php }else{ ?>
<a href="login-signup-page1/login-signup.php" >Login</a>
<?php } ?>
</div><!---- log in with php ends ------>
</div><!---- header2 endss ------>
</div><!------ header ends----->
<div class="contaner"><!---- conainer start-->
<div class="div1">
<a href="specifictypeproduct.php">Shop</a>
</div>
<div class="div2"><!---- sidebar start-->
<div class="div21">
<ul>
<li><p>TOP CATAGORIES</p>
<ul>
<?php
getCats();
?>
</ul>
</li>
</ul>
<ul class="ull">
<li><p class="p2" style="padding-bottom: 0px;">MORE CATAGORIES</p>
<ul>
<?php
getPCats();
?>
</ul>
</li>
</ul>
</div>
<div class="div22">
<img src="images/qr-code.png">
</div>
</div> <!---- sidebar ends-->
<div class="div3 middle"><!---- slider start-->
<div class="slides">
<input type="radio" name="r" id="r1" checked>
<input type="radio" name="r" id="r2">
<input type="radio" name="r" id="r3">
<input type="radio" name="r" id="r4">
<input type="radio" name="r" id="r5">
<!------ Slide1 starts ------>
<?php
$get_slide= "select * from slider limit 0,1";
$run_slider=mysqli_query(db(),$get_slide);
while ($row_slide=mysqli_fetch_array($run_slider)) {
$slide_name=$row_slide['slide_name'];
$slide_image=$row_slide['slide_image'];
echo "
<div class='slide s1'>
<a href='product.php?pro_id=41'><img src='$slide_image' alt=''></a>
</div>
";
}
?><!------ Slide1 ends ------>
<!------ Slide2 starts ------>
<?php
$get_slide= "select * from slider limit 1,1";
$run_slider=mysqli_query(db(),$get_slide);
while ($row_slide=mysqli_fetch_array($run_slider)) {
$slide_name=$row_slide['slide_name'];
$slide_image=$row_slide['slide_image'];
echo "
<div class='slide'>
<a href='index.php'><img src='$slide_image' alt=''></a>
</div>
";
}
?><!------ Slide2 ends ------>
<!------ Slide3 starts ------>
<?php
$get_slide= "select * from slider limit 2,1";
$run_slider=mysqli_query(db(),$get_slide);
while ($row_slide=mysqli_fetch_array($run_slider)) {
$slide_name=$row_slide['slide_name'];
$slide_image=$row_slide['slide_image'];
echo "
<div class='slide'>
<a href='index.php'><img src='$slide_image' alt=''></a>
</div>
";
}
?><!------ Slide3 ends ------>
<!------ Slide4 starts ------>
<?php
$get_slide= "select * from slider limit 3,1";
$run_slider=mysqli_query(db(),$get_slide);
while ($row_slide=mysqli_fetch_array($run_slider)) {
$slide_name=$row_slide['slide_name'];
$slide_image=$row_slide['slide_image'];
echo "
<div class='slide'>
<a href='index.php'><img src='$slide_image' alt=''></a>
</div>
";
}
?><!------ Slide4 ends ------>
<!------ Slide5 starts ------>
<?php
$get_slide= "select * from slider limit 4,1";
$run_slider=mysqli_query(db(),$get_slide);
while ($row_slide=mysqli_fetch_array($run_slider)) {
$slide_name=$row_slide['slide_name'];
$slide_image=$row_slide['slide_image'];
echo "
<div class='slide'>
<a href='index.php'><img src='$slide_image' alt=''></a>
</div>
";
}
?><!------ Slide5 ends ------>
</div>
<div class="navigationdiv">
<div class="navigation">
<label for="r1" class="bar"></label>
<label for="r2" class="bar"></label>
<label for="r3" class="bar"></label>
<label for="r4" class="bar"></label>
<label for="r5" class="bar"></label>
</div>
</div>
</div><!---- slider ends-->
<div class="div4"><!-----product-poster1---------->
<?php
$get_p_poster= "select * from product_poster limit 0,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!-----product-poster1---------->
<div class="div5">
<?php
$get_p_poster= "select * from product_poster limit 1,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!-----product-poster2---------->
<div class="div6">
<?php
$get_p_poster= "select * from product_poster limit 2,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!-----product-poster3---------->
</div> <!---- conainer end -->
<!------ Product Section 1 -------------->
<div class="productcontainer"><!------ productcontainer starts------->
<div class="productsubcontainer1"><!------ productsubcontainer1 starts------->
<div class="subcontainer11">
<p>Smartphones Deals</p>
</div>
<div class="subcontainer12">
<a href="specifictypeproduct.php?p_cat=1">view More</a>
</div>
</div><!------ productsubcontainer1 ends------->
<div class="productsubcontainer2"><!------ productsubcontainer2 starts------->
<div class="swiper-container"><!------Product Slider Starts ----->
<div class="swiper-wrapper">
<!------- Product slider For Smartphone and Accessories 1-8 ---------->
<?php
getProSmartphoneAndAccessories();
?>
<!------- Product slider For Smartphone and Accessories 1-8 Ends---------->
</div><!----- swiper-wrapper ends --->
</div><!------Product Slider Ends ----->
</div><!------ productsubcontainer2 ends------->
</div><!------ productcontainer Ends------->
<!------ Product Section 1 End -------------->
<!------ Product Link Section 1 -------------->
<div class="productimagelinks"><!-- productimagelinks starts-,-contain product-poster 4,5,6-->
<div class="pimagelink1">
<?php
$get_p_poster= "select * from product_poster limit 3,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!---------product-poster4---------->
<div class="pimagelink1">
<?php
$get_p_poster= "select * from product_poster limit 4,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!---------product-poster5---------->
<div class="pimagelink1 removeinmobile">
<?php
$get_p_poster= "select * from product_poster limit 5,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!---------product-poster6---------->
</div><!------ productimagelinks ends------->
<!------ Product Link Section 1 Ends -------------->
<!------ Product Section 2 -------------->
<div class="productcontainer"><!------ productcontainer starts------->
<div class="productsubcontainer1"><!------ productsubcontainer1 starts------->
<div class="subcontainer11">
<p>Mens Fashion</p>
</div>
<div class="subcontainer12">
<a href="specifictypeproduct.php?cat=4">view More</a>
</div>
</div><!------ productsubcontainer1 ends------->
<div class="productsubcontainer2"><!------ productsubcontainer2 starts------->
<div class="swiper-container"><!------Product Slider Starts ----->
<div class="swiper-wrapper">
<?php
getProMenFashion()
?>
</div><!----- swiper-wrapper ends --->
</div><!------Product Slider Ends ----->
</div><!------ productsubcontainer2 ends------->
</div><!------ productcontainer Ends------->
<!------ Product Section 2 End-------------->
<!------ Product Section 3 -------------->
<div class="productcontainer"><!------ productcontainer starts------->
<div class="productsubcontainer1"><!------ productsubcontainer1 starts------->
<div class="subcontainer11">
<p>Womens Fashion</p>
</div>
<div class="subcontainer12">
<a href="specifictypeproduct.php?cat=5">view More</a>
</div>
</div><!------ productsubcontainer1 ends------->
<div class="productsubcontainer2"><!------ productsubcontainer2 starts------->
<div class="swiper-container"><!------Product Slider Starts ----->
<div class="swiper-wrapper">
<?php
getProWomenFashion()
?>
</div><!----- swiper-wrapper ends --->
</div><!------Product Slider Ends ----->
</div><!------ productsubcontainer2 ends------->
</div><!------ productcontainer Ends------->
<!------ Product Section 3 End -------------->
<!------ Product Section 4 -------------->
<div class="productcontainer"><!------ productcontainer starts------->
<div class="productsubcontainer1"><!------ productsubcontainer1 starts------->
<div class="subcontainer11">
<p>Mobile And Accessories</p>
</div>
<div class="subcontainer12">
<a href="specifictypeproduct.php?cat=1">view More</a>
</div>
</div><!------ productsubcontainer1 ends------->
<div class="productsubcontainer2"><!------ productsubcontainer2 starts------->
<div class="swiper-container"><!------Product Slider Starts ----->
<div class="swiper-wrapper">
<?php
getProSmartphoneAccessories()
?>
</div><!----- swiper-wrapper ends --->
</div><!------Product Slider Ends ----->
</div><!------ productsubcontainer2 ends------->
</div><!------ productcontainer Ends------->
<!------ Product Section 4 End-------------->
<!------ Product Link Section 1 -------------->
<div class="productimagelinks"><!-- productimagelinks starts-,-contain product-poster 7,8,9-->
<div class="pimagelink1">
<?php
$get_p_poster= "select * from product_poster limit 6,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!---------product-poster7---------->
<div class="pimagelink1">
<?php
$get_p_poster= "select * from product_poster limit 4,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!---------product-poster8---------->
<div class="pimagelink1 removeinmobile">
<?php
$get_p_poster= "select * from product_poster limit 5,1";
$run_p_poster=mysqli_query(db(),$get_p_poster);
while ($row_p_poster=mysqli_fetch_array($run_p_poster)) {
$poster_name=$row_p_poster['p_poster_name'];
$poster_image=$row_p_poster['p_poster_image'];
echo "
<a href=''><img src='$poster_image'></a>
";
}
?>
</div><!---------product-poster9---------->
</div><!------ productimagelinks Ends------->
<!------ Product Link Section 1 Ends -------------->
<div class="additionalcontent"><!------ additionalcontent starts------->
<div class="contentcode11"><a href=""><img src="images/aa2.jpg"></a></div>
<div class="contentcode11"><a href=""><img src="images/aa3.jpg"></a></div>
<div class="contentcode11"><a href=""><img src="images/aa4.jpg"></a></div>
<div class="contentcode11"><a href=""><img src="images/aa1.png"></a></div>
<div class="contentcode12"><a href=""><img src="images/aa2.jpg"></a></div>
<div class="contentcode12"><a href=""><img src="images/aa3.jpg"></a></div>
<div class="contentcode12"><a href=""><img src="images/aa4.jpg"></a></div>
<div class="contentcode12"><a href=""><img src="images/aa1.png"></a></div>
</div><!------ additionalcontent ends------->
<div class="aditionallist"><!------ aditionallist starts------->
<!-- <img src="images/footerup.png" alt=""> -->
</div><!------ aditionallist Ends------->
<div class="footer"><!------ footer starts------->
<div class="footerp1 footerp">
<p>Copyright © 2017, EasyShopping Private Limited. All Rights Reserved</p>
</div>
<div class="footerp2 footerp">
<p>Made with ❤ in india</p>
</div>
</div><!------ footer Ends------->
<!------
<script type="text/javascript">
$(document).ready(function(){
$("#searchtextf").keyup(function(){
var searchText=$(this).val();
if(searchText!=''){
$.ajax({
url:'action.php',
method:'post',
data:{query:searchText},
success:function(responce){
$("#show_list").html(responce);
}
});
}
else{
$("#show_list").html('');
}
});
$(document).on('click','a',function(){
$("#show_list").val($(this).text());
$("#show_list").html('');
});
});
</script>
---->
<script type="text/javascript" src="product-slider/swiper.min.js"></script><!--------used for product slider ------->
<script type="" src="product-slider/slider.js"></script><!--------used for product slider ------->
</body>
</html>