-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.php
391 lines (363 loc) · 13.2 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
<?php
include_once "includes/db.php"
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>Ecommerce Fajar</title>
<!-- fonts -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Roboto:400,500,700,300,100" />
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="styles/bootstrap.min.css" />
<!-- fontawesome -->
<link rel="stylesheet" href="fontawesome/web-fonts-with-css/css/fontawesome-all.min.css"/>
<!-- style.css -->
<link rel="stylesheet" type="text/css" href="styles/styles.css" />
</head>
<body>
<div id="top"><!-- top starts -->
<div class="container"><!-- container start -->
<div class="row">
<div class="col-md-6 offer">
<a href="#" class="btn btn-success btn-sm">
Welcome : Guest
</a>
<a href="#">Shopping Cart Total Price: $100, Total Item 2</a>
</div>
<div class="col-md-6">
<ul class="menu">
<li><a href="customer_register.php">Register</a></li>
<li><a href="checkout.php">My Account</a></li>
<li><a href="cart.php">Go To Cart</a></li>
<li><a href="checkout.php">Login</a></li>
</ul><!-- menu end -->
</div>
</div>
</div><!-- container end -->
</div><!-- top end -->
<nav class="navbar navbar-expand-lg navbar-light" id="navbar">
<div class="container">
<a class="navbar-brand home" href="index.php">FajarStore</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navigation" aria-controls="navigation" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navigation">
<div class="padding-nav">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="index.php">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="shop.php">Shop</a>
</li>
<li class="nav-item">
<a class="nav-link" href="customer/my_account.php">My Account</a>
</li>
<li class="nav-item">
<a class="nav-link" href="cart.php">Shopping Cart</a>
</li>
<li class="nav-item">
<a class="nav-link" href="contact.php">Contact Us</a>
</li>
</ul>
</div><!-- padding-nav ends -->
</div><!-- collapse navbar-collapse ends -->
<div class="clearfix">
<button class="btn btn-primary mr-1" type="button" data-toggle="collapse" data-target="#search" aria-expanded="false" aria-controls="collapseExample">
<i class="fa fa-search"></i>
</button>
<a href="cart.php" class="btn btn-primary navbar-btn right">
<i class="fa fa-shopping-cart"></i>
<span>4 Items in carts</span>
</a>
</div><!-- clearfix ends -->
</div><!-- container ends -->
</nav><!-- navbar ends -->
<div class="collapse clearfix bg-white" id="search">
<div class="container">
<form class="form-inline navbar-form my-1" method="get" action="results.php">
<input class="form-control mr-sm-1" type="text" placeholder="Search" aria-label="Search" name="user-query" required>
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
</form>
</div><!-- container ends -->
</div><!-- collapse celarfix -->
<!-- slide section -->
<div class="container my-4 mx-auto" id="slider">
<div id="slides_images" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#slides_images" data-slide-to="0" class="active"></li>
<li data-target="#slides_images" data-slide-to="1"></li>
<li data-target="#slides_images" data-slide-to="2"></li>
<li data-target="#slides_images" data-slide-to="3"></li>
</ol>
<div class="carousel-inner">
<?php
$get_slides = "SELECT * FROM slider LIMIT 0,1";
$run_slides = mysqli_query($con, $get_slides);
while($row_slides = mysqli_fetch_array($run_slides)):
$slide_name = $row_slides['slider_name'];
$slide_img = $row_slides['slider_img'];
?>
<div class="carousel-item active">
<img class="d-block w-100 h-25" src="admin_area/slides_images/<?=$slide_img;?>" alt="<?=$slide_name;?>">
</div>
<?php
endwhile;
$get_slides2 = "SELECT * FROM slider LIMIT 1,3";
$run_slides2 = mysqli_query($con, $get_slides2);
while($row_slides2 = mysqli_fetch_array($run_slides2)):
$slide_name2 = $row_slides2['slider_name'];
$slide_img2 = $row_slides2['slider_img'];
?>
<div class="carousel-item">
<img class="d-block w-100 h-25" src="admin_area/slides_images/<?=$slide_img2;?>" alt="<?=$slide_name2;?>">
</div>
<?php
endwhile;
?>
<!-- <div class="carousel-item active">
<img class="d-block w-100 h-25" src="admin_area/slides_images/slide1.jpg" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block w-100 h-25" src="admin_area/slides_images/slide2.jpg" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block w-100 h-25" src="admin_area/slides_images/slide3.jpg" alt="Third slide">
</div>
<div class="carousel-item">
<img class="d-block w-100 h-25" src="admin_area/slides_images/slide4.jpg" alt="Fourth slide">
</div> -->
</div><!-- carousel inner ends -->
<a class="carousel-control-prev" href="#slides_images" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#slides_images" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<div id="advantages">
<div class="container">
<div class="same-height-row row">
<div class="col-sm-4">
<div class="box same-height">
<div class="icon">
<i class="fa fa-tags"></i>
</div>
<h3>
<a href="#">We Love Our Costumer</a>
</h3>
<p>We are known to provide best possible service ever</p>
</div>
</div>
<div class="col-sm-4">
<div class="box same-height">
<div class="icon">
<i class="fa fa-heart"></i>
</div>
<h3>
<a href="#">Best Price</a>
</h3>
<p>You can check all others sites about the prices and than compare with us</p>
</div>
</div>
<div class="col-sm-4">
<div class="box same-height">
<div class="icon">
<i class="fa fa-shopping-bag"></i>
</div>
<h3>
<a href="#">100% satisfaction Guaranteed</a>
</h3>
<p>Free returns on everything for 3 months</p>
</div>
</div>
</div><!-- same-height-row ends -->
</div><!-- container ends -->
</div><!-- advantages ends -->
<div id="hot">
<div class="box">
<div class="container">
<div class="col-md-12">
<h2>latest This Week</h2>
</div>
</div>
</div><!-- box ends -->
</div><!-- hot ends -->
<div id="content" class="container">
<div class="row">
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
<div class="col-md-3 col-sm-6 single">
<div class="product">
<a href="details.php">
<img src="admin_area/product_images/produk1.jpg" alt="produk 1" class="img-fluid"/>
</a>
<div class="text">
<h3>
<a href="details.php">Marvel Black Kids Polo T-Shirt</a>
</h3>
<p class="price">$50</p>
<p class="buttons">
<a href="details.php" class="btn btn-sm btn-light">View Details</a>
<a href="details.php" class="btn btn-sm btn-primary">
<i class="fa fa-shopping-cart"></i>
Add to cart
</a>
</p>
</div> <!-- text ends -->
</div> <!-- product ends -->
</div> <!-- col-sm-4 col-sm-6 single ends -->
</div> <!-- row ends -->
</div><!-- container ends -->
<?php include_once "includes/footer.php"; ?>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="js/jquery.min.js"></script>
<script src="js/popper.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>