-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
398 lines (358 loc) · 12.5 KB
/
index.php
File metadata and controls
398 lines (358 loc) · 12.5 KB
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
<?php
session_start();
include_once("function/rupiah.php");
$email = isset($_SESSION['email']) ? $_SESSION['email'] : false;
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>WEAR</title>
<!-- Google font -->
<link href="https://fonts.googleapis.com/css?family=Hind:400,700" rel="stylesheet">
<!-- Bootstrap -->
<link type="text/css" rel="stylesheet" href="css/bootstrap.min.css" />
<!-- Slick -->
<link type="text/css" rel="stylesheet" href="css/slick.css" />
<link type="text/css" rel="stylesheet" href="css/slick-theme.css" />
<!-- nouislider -->
<link type="text/css" rel="stylesheet" href="css/nouislider.min.css" />
<!-- Font Awesome Icon -->
<link rel="stylesheet" href="css/font-awesome.min.css">
<!-- Custom stlylesheet -->
<link type="text/css" rel="stylesheet" href="css/style.css" />
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- HEADER -->
<header>
<!-- header -->
<div id="header">
<div class="container">
<div class="pull-left">
<!-- Logo -->
<div class="header-logo">
<a class="logo" href="index.php">
<img src="./img/logo.jpg" alt="">
</a>
</div>
<!-- /Logo -->
<!-- Search -->
<div class="header-search">
<form action="products.php" method="GET">
<input class="input search-input" type="text" placeholder="Cari Barang" name="cari">
<button class="search-btn" value="cari"><i class="fa fa-search"></i></button>
</form>
</div>
<!-- /Search -->
</div>
<div class="pull-right">
<ul class="header-btns">
<!-- Account -->
<?php if($email)
{
?>
<li class="header-account">
<div class="dropdown-toggle" role="button" data-toggle="dropdown" aria-expanded="true">
<div class="header-btns-icon">
<i class="fa fa-user-o"></i>
</div>
<strong class="text-uppercase">Hi, <?php echo "$email";?> </strong>
</div>
<a href="function/logout.php" class="text-uppercase">Keluar</a>
<ul class="custom-menu">
<li><a href="login.php"><i class="fa fa-unlock-alt"></i> Masuk</a></li>
<li><a href="register.php"><i class="fa fa-user-plus"></i> Buat Akun</a></li>
</ul>
</li>
<?php
} else{
?>
<li class="header-account dropdown default-dropdown">
<div class="dropdown-toggle" role="button" data-toggle="dropdown" aria-expanded="true">
<div class="header-btns-icon">
<i class="fa fa-user-o"></i>
</div>
<strong class="text-uppercase">Akun Saya            <i class="fa fa-caret-down"></i></strong>
</div>
<a href="#" class="text-uppercase">Lupa Kata Sandi</a>
<ul class="custom-menu">
<li><a href="login.php"><i class="fa fa-unlock-alt"></i> Masuk</a></li>
<li><a href="register.php"><i class="fa fa-user-plus"></i> Buat Akun</a></li>
</ul>
</li>
<?php
}
?>
<!-- /Account -->
<!-- Mobile nav toggle-->
<li class="nav-toggle">
<button class="nav-toggle-btn main-btn icon-btn"><i class="fa fa-bars"></i></button>
</li>
<!-- / Mobile nav toggle -->
</ul>
</div>
</div>
<!-- header -->
</div>
<!-- container -->
</header>
<!-- /HEADER -->
<!-- NAVIGATION -->
<div id="navigation">
<!-- container -->
<div class="container">
<div id="responsive-nav">
<!-- category nav -->
<div class="category-nav">
<span class="category-header">Kategori <i class="fa fa-list"></i></span>
<ul class="category-list">
<li class="dropdown side-dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">Sepatu Perempuan <i class="fa fa-angle-right"></i></a>
<div class="custom-menu">
<div class="row">
<div class="col-md-5">
<ul class="list-links">
<li>
<h3 class="list-links-title">Kategori Sepatu Perempuan</h3></li>
<li><a href="products.php?perempuan=true&formal=true">Sepatu Formal</a></li>
<li><a href="products.php?perempuan=true&kasual=true">Sepatu Kasual</a></li>
<li><a href="products.php?perempuan=true&sneaker=true">Sepatu Sneaker</a></li>
</ul>
<hr class="hidden-md hidden-lg">
</div>
<div class="row hidden-sm hidden-xs">
<div class="col-md-6">
<a class="banner banner-1" href="#">
<img src="./img/banner05.jpg" alt="">
<div class="banner-caption text-center">
<h3 class="white-color">NEW COLLECTION</h3>
<h3 class="white-color font-weak">HOT DEAL</h3>
</div>
</a>
</div>
</div>
</div>
</li>
<li class="dropdown side-dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true">Sepatu Pria <i class="fa fa-angle-right"></i></a>
<div class="custom-menu">
<div class="row">
<div class="col-md-4">
<ul class="list-links">
<li>
<h3 class="list-links-title">Kategori Sepatu Pria</h3></li>
<li><a href="products.php?pria=true&formal=true">Sepatu Formal</a></li>
<li><a href="products.php?pria=true&kasual=true">Sepatu Kasual</a></li>
<li><a href="products.php?pria=true&sneaker=true">Sepatu Sneaker</a></li>
</ul>
<hr class="hidden-md hidden-lg">
</div>
<div class="row hidden-sm hidden-xs">
<div class="col-md-6">
<a class="banner banner-1" href="#">
<img src="./img/banner05.jpg" alt="">
<div class="banner-caption text-center">
<h3 class="white-color">NEW COLLECTION</h3>
<h3 class="white-color font-weak">HOT DEAL</h3>
</div>
</a>
</div>
</div>
</div>
</li>
<li class="">
<a href="custom.php" aria-expanded="true">Custom Sepatu </a>
</li>
<li class="">
<a href="#" aria-expanded="true">Perawatan Sepatu </a>
</li>
</ul>
</div>
<!-- /category nav -->
</div>
</div>
<!-- /container -->
</div>
<!-- /NAVIGATION -->
<!-- HOME -->
<div id="home">
<!-- container -->
<div class="container">
<!-- home wrap -->
<div class="home-wrap">
<!-- home slick -->
<div id="home-slick">
<!-- banner -->
<div class="banner banner-1">
<img src="./img/banner02.jpg" alt="">
<div class="banner-caption text-center">
<h1>Shoes Sale</h1>
<h3 class="white-color font-weak">Up to 50% Discount</h3>
<button class="primary-btn">Shop Now</button>
</div>
</div>
<!-- /banner -->
<!-- banner -->
<div class="banner banner-1">
<img src="./img/banner06.jpg" alt="" height="490" >
<div class="banner-caption">
<h1 class="primary-color">HOT DEAL<br><span class="white-color font-weak">Up to 50% OFF</span></h1>
<button class="primary-btn">Shop Now</button>
</div>
</div>
<!-- /banner -->
</div>
<!-- /home slick -->
</div>
<!-- /home wrap -->
</div>
<!-- /container -->
</div>
<!-- /HOME -->
<!-- section -->
<div class="section">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<!-- section title -->
<div class="col-md-12">
<div class="section-title">
<h2 class="title">Latest Products</h2>
</div>
</div>
<!-- section title -->
<!-- Product Single -->
<?php
include_once("function/koneksi.php");
$data = mysqli_query($koneksi, "SELECT * FROM produk_sepatu");
while($d = mysqli_fetch_array($data)){
$id_p = $d['id_produk'];
$nama = $d['nama_produk'];
$harga = $d['harga'];
$gambar = $d['gambar'];
?>
<div class="col-md-3 col-sm-6 col-xs-6">
<div class="product product-single">
<div class="product-thumb">
<button class="main-btn quick-view"><a href="product-page.php?id_p=<?php echo $id_p; ?> "><i class="fa fa-search-plus"></i> Quick view</a></button>
<img src="./file/<?php echo $gambar ?>" height="250" alt="">
</div>
<div class="product-body">
<h4 class="product-price"> <?php echo rupiah($harga) ?></h4>
<div class="product-rating">
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star"></i>
<i class="fa fa-star-o empty"></i>
</div>
<h2 class="product-name"><a href="product-page.php?id_p=<?php echo $id_p; ?> "><?php echo $nama ?></a></h2>
<div class="product-btns">
<button class="main-btn icon-btn"><i class="fa fa-heart"></i></button>
<button class="main-btn icon-btn"><i class="fa fa-exchange"></i></button>
<a href="product-page.php?id_p=<?php echo $id_p; ?>&email= <?php echo "$email"; ?> " class="primary-btn add-to-cart" > <i class="fa fa-shopping-cart"></i> Add to Cart</a>
</div>
</div>
</div>
</div>
<!-- /Product Single -->
<?php } ?>
</div>
<!-- /row -->
</div>
<!-- /container -->
</div>
<!-- /section -->
<!-- FOOTER -->
<footer id="footer" class="section section-grey">
<!-- container -->
<div class="container">
<!-- row -->
<div class="row">
<!-- footer widget -->
<div class="col-md-4 col-sm-6 col-xs-6">
<div class="footer">
<!-- footer logo -->
<div class="footer-logo">
<a class="logo" href="#">
<img src="./img/logo.jpg" alt="">
</a>
</div>
<!-- /footer logo -->
<p>Tempat beli sepatu terkini dan terbaru, serta perawatan sepatu nomor satu di Indonesia.</p>
<!-- footer social -->
<ul class="footer-social">
<li><a href="#"><i class="fa fa-facebook"></i></a></li>
<li><a href="#"><i class="fa fa-instagram"></i></a></li>
</ul>
<!-- /footer social -->
</div>
</div>
<!-- /footer widget -->
<div class="clearfix visible-sm visible-xs"></div>
<!-- footer widget -->
<div class="col-md-4 col-sm-6 col-xs-6">
<div class="footer">
<h3 class="footer-header">Customer Service</h3>
<ul class="list-links">
<li><a href="#">Tentang Kami</a></li>
<li><a href="#">Pengiriman & Pengembalian</a></li>
<li><a href="#">Pedoman Pengiriman</a></li>
<li><a href="hub_kami.php">Hubungi Kami</a></li>
</ul>
</div>
</div>
<!-- /footer widget -->
<!-- footer subscribe -->
<div class="col-md-4 col-sm-6 col-xs-6">
<div class="footer">
<h3 class="footer-header">Langganan</h3>
<p>Dapatkan info produk terbaru dari kami serta penawaran khusus.</p>
<form>
<div class="form-group">
<input class="input" placeholder="Enter Email Address">
</div>
<button class="primary-btn">Gabung langganan</button>
</form>
</div>
</div>
<!-- /footer subscribe -->
</div>
<!-- /row -->
<hr>
<!-- row -->
<div class="row">
<div class="col-md-8 col-md-offset-2 text-center">
<!-- footer copyright -->
<div class="footer-copyright">
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
Copyright ©<script>document.write(new Date().getFullYear());</script> All rights reserved | This template is made with <i class="fa fa-heart-o" aria-hidden="true"></i> by <a href="https://colorlib.com" target="_blank">Colorlib</a>
<!-- Link back to Colorlib can't be removed. Template is licensed under CC BY 3.0. -->
</div>
<!-- /footer copyright -->
</div>
</div>
<!-- /row -->
</div>
<!-- /container -->
</footer>
<!-- /FOOTER -->
<!-- jQuery Plugins -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/slick.min.js"></script>
<script src="js/nouislider.min.js"></script>
<script src="js/jquery.zoom.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>