-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
382 lines (370 loc) · 17.4 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
<?php include'core/database/connect.php';?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>E-Commerce Landing Page</title>
<link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/nprogress.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/animate.css" type="text/css" media="screen" />
<link rel="stylesheet" href="css/reset.css" type="text/css" media="screen" />
<link href="css/pace-theme-loading-bar.css" rel="stylesheet" />
<link href='http://fonts.googleapis.com/css?family=Josefin+Slab:100,300,400,600|Lobster+Two|Arbutus+Slab|Rokkitt:400,700|Niconne|Droid+Sans|PT+Serif|Source+Sans+Pro:300,400' rel='stylesheet' type='text/css'>
<script src="jquery/lightbox.js"></script>
<script src="jquery/prefixfree.min.js"></script>
<script src="jquery/hoverIntent.minified.js"></script>
<script src="jquery/nprogress.js"></script>
<script src="jquery/wow.min.js"></script>
<script src="jquery/primary.js"></script>
<script src="jquery/jquery-1.11.1.min.js"></script>
<script src="jquery/jquery-migrate-1.2.1.min.js"></script>
<script>
new WOW().init();
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script type="text/javascript">window.jQuery || document.write('<script type="text\/javascript" src="js\/1.7.2.jquery.min"><\/script>')</script>
<script src="jquery/pace.js"></script>
</head>
<body>
<div class="header up home">
<div class="wrapper">
<div class="logo"></div>
<div class="pull">
<div class="pull-cont">
<span></span><br>
<span style="padding:37%;"> Menu</span>
</div>
</div>
<form class="search">
<input type="text" name="header_search" id="common_search-input" class="autosuggest" placeholder="Search">
<div class="dropdown">
<ul class="result"><ul>
</div>
</form>
<ul class="nav">
<li class="on"><a href="index.php">Home</a></li>
<li><a href="products.php">Categories</a></li>
<li>Shop</li>
<li><a href="contact.php">Contact</a></li>
</ul>
<ul class="log">
<li><a href="">Login</a></li>
<li><a href="">Sign up</a></li>
<?php
include 'cart.php';
?>
</ul>
</div>
</div>
<ul class="second">
<li><a href="items.php?<?php
$pass1='9777443097argha1';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">Rosogolla</a></li>
<li><a href="items.php?<?php
$pass1='9777443097argha2';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">Mishti Doi</a></li>
<li><a href="items.php?<?php
$pass1='9777443097argha3';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">Sandesh</a></li>
<li><a href="items.php?<?php
$pass1='9777443097argha4';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">Fried Misti</a></li>
<li><a href="items.php?<?php
$pass1='9777443097argha5';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">Baked</a></li>
<li><a href="items.php?<?php
$pass1='9777443097argha6';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">Son Papri</a></li>
<li><a href="items.php?<?php
$pass1='9777443097argha7';
$pass1=md5($pass1);
echo 'pass1='.$pass1;?>">More</a></li>
</ul>
<!-- ATTENTION: when creating the include files, header is till here-->
<div class="content static">
<div class="section banner">
<div id="slides" class="slider">
<div class="slides-container">
<a href="items.php"><img src="img/slider1.jpg" alt="Cinelli"></a>
<a href="items.php"><img src="img/slider2.jpg" alt="Surly"></a>
<a href="items.php"><img src="img/slider3.jpg" alt="Cinelli"></a>
<a href="items.php"><img src="img/slider4.jpg" alt="Affinity"></a>
<a href="items.php"><img src="img/slider5.jpg" alt="Affinity"></a>
</div>
<nav class="slides-navigation">
<a href="#" class="next"><i class="icon-circle-right"></i></a>
<a href="#" class="prev"><i class="icon-circle-left"></i></a>
</nav>
</div>
</div>
<div class="section products">
<div class="wrapper">
<div class="latest">
<div class="grid">
<div class="grid p1">
<a></a>
<div class="rows">
<div class="row row-1">
<h1>Deal of the Day</h1>
</div>
<div class="row row-2">
<p>Details about the product</p>
</div>
<div class="row row-3">
<p>Sub-Details about the product</p>
</div>
</div>
</div>
<a href=""><div class="grid p2"></div></a>
<a href=""><div class="grid p3"></div></a>
<div class="grid p4">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
<div class="grid p5">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
<div class="grid p6">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="featured">
<div class="grid">
<a href="#">
<h3>Featured Deals</h3>
<p>Hand selected by our creative director</p>
</a>
<div class="grid p6">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
<div class="grid p6">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
<div class="grid p6">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
<div class="grid p6">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
</div>
</div>
<div class="trending">
<div class="grid">
<a href="#">
<h3>Trending</h3>
<p>Shop from the latest trending collections</p>
</a>
<div class="grid p6">
<div class="container">
<a href="">
<div class="card">
<figure class="front"></figure>
<figure class="back">
<div class="image"></div>
<div class="desc">
<h1>Product Name</h1>
<span>Buy Now</span>
<h2>1kg @ Rs 50</h2>
</div>
</figure>
</div>
</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
<div class="wrapper">
<p>Copyright of Gogol's</p>
</div>
</footer>
<!--ATTENTION: include this jquery snippet in every file too-->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="jquery/jquery.easing.1.3.js"></script>
<script src="jquery/jquery.animate-enhanced.min.js"></script>
<script src="jquery/jquery.superslides.js" type="text/javascript" charset="utf-8"></script>
<script>
$(function() {
$('#slides').superslides({
hashchange: false,
play: 2000,
inherit_height_from: '.banner'
});
$(document).ready(function() {
$('body').show();
if($('.header').hasClass('up')) {
$('.pull-cont span:nth-child(1)').text("The Sweet Tooth's");
}
else{
$('.pull-cont span:nth-child(1)').text("Hide");
}
//$('#slides').superslides('stop');
var isOpen = false;
$('.dropdown').addClass('hidden');
$('.pull').click(function(){
$('.header').toggleClass('up');
if($('.header').hasClass('up')) {
$('.pull-cont span:nth-child(1)').text("The Sweet Tooth's");
$('.pull-cont span:nth-child(1)').css("padding", '15%');
}
else{
$('.pull-cont span:nth-child(1)').text("Hide");
$('.pull-cont span:nth-child(1)').css("padding", '40%');
}
});
var isOpen = false;
$('.dropdown').addClass('hidden');
$('.autosuggest').focus(function(){
$(this).addClass('expand');
});
$('.autosuggest').blur(function(){
if($('.result a').size()==0){
$(this).removeClass('expand');
$('.dropdown').addClass('hidden');
}
else{
if($('.result a li').hasClass('empty_search')){
//alert("close now");
$(this).removeClass('expand');
$('.dropdown').addClass('hidden');
}
}
});
$('.autosuggest').keyup(function(){
var search_term=$(this).val();
$.post('ajax/search.php',{search_term:search_term},function(data){
$('.result').html(data);
});
$('.dropdown').removeClass('hidden');
});
});
$('#slides').on('mouseenter', function() {
$(this).superslides('stop');
console.log('Stopped')
});
$('#slides').on('mouseleave', function() {
$(this).superslides('start');
console.log('Started')
});
});
$(".container").hover(function(){
$(this).find(".card").toggleClass('flipped');
$(this).parent().toggleClass('cardhover');
},function(){
$(this).find(".card").toggleClass('flipped');
$(this).parent().toggleClass('cardhover');
});
$(".nav li:nth-child(3)").click(function(){
$('.second').toggleClass("second_active");
});
</script>
</body>
</html>