-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
339 lines (330 loc) · 18.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
<?php include("header.php"); ?>
<!-- main slider start -->
<section class="bg-light position-relative">
<div class="main-slider dots-style theme1">
<div class="slider-item bg-img bg-img1">
<div class="container">
<div class="row align-items-center slider-height">
<div class="col-12">
<div class="slider-content">
<p class="text text-white text-uppercase animated mb-25" data-animation-in="fadeInDown">
nike running shoes</p>
<h4 class="title text-white animated text-capitalize mb-25" data-animation-in="fadeInLeft"
data-delay-in="1">Sport Shoes</h4>
<h2 class="sub-title text-white animated" data-animation-in="fadeInRight" data-delay-in="2">
Sale 40% Off</h2>
<a href="shop-grid-4-column.html"
class="btn theme--btn1 btn--lg text-uppercase rounded-5 animated mt-45 mt-sm-25"
data-animation-in="zoomIn" data-delay-in="3">Shop now</a>
</div>
</div>
</div>
</div>
</div>
<!-- slider-item end -->
<div class="slider-item bg-img bg-img2">
<div class="container">
<div class="row align-items-center slider-height">
<div class="col-12">
<div class="slider-content">
<p class="text text-white text-uppercase animated mb-25" data-animation-in="fadeInLeft">
New Arrivals</p>
<h4 class="title text-white animated text-capitalize mb-25" data-animation-in="fadeInRight"
data-delay-in="1"> Sumer Sale</h4>
<h2 class="sub-title text-white animated" data-animation-in="fadeInUp" data-delay-in="2">Up
To 70% Off</h2>
<a href="shop-grid-4-column.html"
class="btn theme--btn1 btn--lg text-uppercase rounded-5 animated mt-45 mt-sm-25"
data-animation-in="zoomIn" data-delay-in="3">Shop now</a>
</div>
</div>
</div>
</div>
</div>
<!-- slider-item end -->
</div>
<!-- slick-progress -->
<div class="slick-progress">
<span></span>
</div>
<!-- slick-progress end-->
</section>
<!-- main slider end -->
<!-- common banner start -->
<div class="common-banner pt-80 bg-white">
<div class="container">
<div class="row">
<div class="col-md-6 mb-30">
<div class="banner-thumb">
<a href="shop-grid-4-column.html" class="zoom-in d-block overflow-hidden">
<img src="assets/img/banner/1.jpg" alt="banner-thumb-naile">
</a>
</div>
</div>
<div class="col-md-3 col-sm-6 mb-30">
<div class="banner-thumb">
<a href="shop-grid-4-column.html" class="zoom-in d-block overflow-hidden">
<img src="assets/img/banner/2.jpg" alt="banner-thumb-naile">
</a>
</div>
</div>
<div class="col-md-3 col-sm-6 mb-30">
<div class="banner-thumb">
<a href="shop-grid-4-column.html" class="zoom-in d-block overflow-hidden">
<img src="assets/img/banner/3.jpg" alt="banner-thumb-naile">
</a>
</div>
</div>
</div>
</div>
</div>
<!-- common banner end -->
<!-- product tab start -->
<section class="product-tab bg-white pt-50 pb-80">
<div class="container">
<div class="product-tab-nav mb-35">
<div class="row align-items-center">
<div class="col-12">
<div class="section-title text-center mb-30">
<h2 class="title text-dark text-capitalize">Our products</h2>
<p class="text mt-10">Add our products to weekly line up</p>
</div>
</div>
<div class="col-12">
<nav class="product-tab-menu theme1">
<ul class="nav nav-pills justify-content-center" id="pills-tab" role="tablist">
<li class="nav-item">
<a class="nav-link active" id="pills-home-tab" data-toggle="pill" href="#pills-home"
role="tab" aria-controls="pills-home" aria-selected="true">Women Shoes</a>
</li>
</ul>
</nav>
</div>
</div>
</div>
<!-- product-tab-nav end -->
<?php
include('connect.php');
$raw_results = mysqli_query($connect,"SELECT * FROM products LIMIT 4");
if(mysqli_num_rows($raw_results) > 0){ ?>
<div class="row">
<?php while($results = mysqli_fetch_array($raw_results)){ ?>
<div class="col-md-3">
<div class="product-list">
<div class="card product-card">
<div class="card-body p-0">
<div class="media flex-column">
<div class="product-thumbnail position-relative">
<span class="badge badge-danger top-right">New</span>
<a href="single-product.php?id=<?php echo $results['id']; ?>">
<img class="first-img" src="admin/productimgs/<?php echo $results['picture']; ?>"
alt="thumbnail">
</a>
<!-- product links -->
<ul class="product-links d-flex justify-content-center">
<li>
<a href="wishlist.html">
<span data-toggle="tooltip" data-placement="bottom"
title="add to wishlist" class="icon-heart"> </span>
</a>
</li>
<li>
<a href="#" data-toggle="modal" data-target="#quick-view">
<span data-toggle="tooltip" data-placement="bottom"
title="Quick view" class="icon-magnifier"></span>
</a>
</li>
</ul>
<!-- product links end-->
</div>
<div class="media-body">
<div class="product-desc">
<h3 class="title"><a href="single-product.php?id=<?php echo $results['id']; ?>"><?php echo $results['name']; ?></a></h3>
<div class="star-rating">
<span class="ion-ios-star"></span>
<span class="ion-ios-star"></span>
<span class="ion-ios-star"></span>
<span class="ion-ios-star"></span>
<span class="ion-ios-star de-selected"></span>
</div>
<div class="d-flex align-items-center justify-content-between">
<h6 class="product-price">Rs. <?php echo $results['price']; ?></h6>
<form class="form-submit">
<input type="hidden" class="pid" value="<?php echo $results['id']; ?>">
<input type="hidden" class="pname" value="<?php echo $results['name']; ?>">
<input type="hidden" class="pprice" value="<?php echo $results['price']; ?>">
<input type="hidden" class="pimage" value="<?php echo $results['picture']; ?>">
<button id="addItem" class="pro-btn"><i class="icon-basket"></i></button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php } ?>
</div>
<?php } ?>
</div>
</section>
<!-- product tab end -->
<!-- staic media start -->
<section class="static-media-section pb-80 bg-white">
<div class="container">
<div class="static-media-wrap theme-bg rounded-5">
<div class="row">
<div class="col-lg-3 col-sm-6 py-3">
<div class="d-flex static-media2 flex-column flex-sm-row">
<img class="align-self-center mb-2 mb-sm-0 mr-auto mr-sm-3" src="assets/img/icon/2.png"
alt="icon">
<div class="media-body">
<h4 class="title text-capitalize text-white">Free Shipping</h4>
<p class="text text-white">On all orders over $75.00</p>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-6 py-3">
<div class="d-flex static-media2 flex-column flex-sm-row">
<img class="align-self-center mb-2 mb-sm-0 mr-auto mr-sm-3" src="assets/img/icon/3.png"
alt="icon">
<div class="media-body">
<h4 class="title text-capitalize text-white">Free Returns</h4>
<p class="text text-white">Returns are free within 9 days</p>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-6 py-3">
<div class="d-flex static-media2 flex-column flex-sm-row">
<img class="align-self-center mb-2 mb-sm-0 mr-auto mr-sm-3" src="assets/img/icon/4.png"
alt="icon">
<div class="media-body">
<h4 class="title text-capitalize text-white">100% Payment Secure</h4>
<p class="text text-white">Your payment are safe with us.</p>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-6 py-3">
<div class="d-flex static-media2 flex-column flex-sm-row">
<img class="align-self-center mb-2 mb-sm-0 mr-auto mr-sm-3" src="assets/img/icon/5.png"
alt="icon">
<div class="media-body">
<h4 class="title text-capitalize text-white">Support 24/7</h4>
<p class="text text-white">Contact us 24 hours a day</p>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- staic media end -->
<!-- blog-section start -->
<section class="blog-section theme1 pb-65">
<div class="container">
<div class="row">
<div class="col-12">
<div class="section-title text-center mb-30">
<h2 class="title text-dark text-capitalize">Latest Blogs</h2>
<p class="text mt-10">Present posts in a best way to highlight interesting moments of your blog.
</p>
</div>
</div>
</div>
<div class="row">
<div class="col-12">
<div class="blog-init slick-nav">
<div class="slider-item">
<div class="single-blog">
<a class="blog-thumb mb-20 zoom-in d-block overflow-hidden"
href="blog-grid-left-sidebar.html">
<img src="assets/img/blog-post/1.jpg" alt="blog-thumb-naile">
</a>
<div class="blog-post-content">
<a class="blog-link theme-color d-inline-block mb-10 text-uppercase"
href="https://themeforest.net/user/hastech">Fashion</a>
<h3 class="title text-capitalize mb-15"><a href="single-blog.html">This is first
Post For XipBlog</a></h3>
<h5 class="sub-title"> Posted by <a class="blog-link theme-color d-inline-block mx-1"
href="https://themeforest.net/user/hastech">HasTech</a>31TH Aug 2020</h5>
</div>
</div>
</div>
<!-- slider-item end -->
<div class="slider-item">
<div class="single-blog">
<a class="blog-thumb mb-20 zoom-in d-block overflow-hidden"
href="blog-grid-left-sidebar.html">
<img src="assets/img/blog-post/2.jpg" alt="blog-thumb-naile">
</a>
<div class="blog-post-content">
<a class="blog-link theme-color d-inline-block mb-10 text-uppercase"
href="https://themeforest.net/user/hastech">Fashion</a>
<h3 class="title text-capitalize mb-15"><a href="single-blog.html">This is Secound
Post For XipBlog</a></h3>
<h5 class="sub-title"> Posted by <a class="blog-link theme-color d-inline-block mx-1"
href="https://themeforest.net/user/hastech">HasTech</a>31TH Aug 2020</h5>
</div>
</div>
</div>
<!-- slider-item end -->
<div class="slider-item">
<div class="single-blog">
<a class="blog-thumb mb-20 zoom-in d-block overflow-hidden"
href="blog-grid-left-sidebar.html">
<img src="assets/img/blog-post/3.jpg" alt="blog-thumb-naile">
</a>
<div class="blog-post-content">
<a class="blog-link theme-color d-inline-block mb-10 text-uppercase"
href="https://themeforest.net/user/hastech">Fashion</a>
<h3 class="title text-capitalize mb-15"><a href="single-blog.html">This is third
Post For XipBlog</a></h3>
<h5 class="sub-title"> Posted by <a class="blog-link theme-color d-inline-block mx-1"
href="https://themeforest.net/user/hastech">HasTech</a>31TH Aug 2020</h5>
</div>
</div>
</div>
<!-- slider-item end -->
<div class="slider-item">
<div class="single-blog">
<a class="blog-thumb mb-20 zoom-in d-block overflow-hidden"
href="blog-grid-left-sidebar.html">
<img src="assets/img/blog-post/4.jpg" alt="blog-thumb-naile">
</a>
<div class="blog-post-content">
<a class="blog-link theme-color d-inline-block mb-10 text-uppercase"
href="https://themeforest.net/user/hastech">Fashion</a>
<h3 class="title text-capitalize mb-15"><a href="single-blog.html">This is fourth
Post For XipBlog</a></h3>
<h5 class="sub-title"> Posted by <a class="blog-link theme-color d-inline-block mx-1"
href="https://themeforest.net/user/hastech">HasTech</a>31TH Aug 2020</h5>
</div>
</div>
</div>
<!-- slider-item end -->
<div class="slider-item">
<div class="single-blog">
<a class="blog-thumb mb-20 zoom-in d-block overflow-hidden"
href="blog-grid-left-sidebar.html">
<img src="assets/img/blog-post/1.jpg" alt="blog-thumb-naile">
</a>
<div class="blog-post-content">
<a class="blog-link theme-color d-inline-block mb-10 text-uppercase"
href="https://themeforest.net/user/hastech">Fashion</a>
<h3 class="title text-capitalize mb-15"><a href="single-blog.html">This is fiveth
Post For XipBlog</a></h3>
<h5 class="sub-title"> Posted by <a class="blog-link theme-color d-inline-block mx-1"
href="https://themeforest.net/user/hastech">HasTech</a>31TH Aug 2020</h5>
</div>
</div>
</div>
<!-- slider-item end -->
</div>
</div>
</div>
</div>
</section>
<!-- blog-section end -->
<!-- brand slider start -->
<?php include("footer.php"); ?>