-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
201 lines (164 loc) · 7.63 KB
/
index.php
File metadata and controls
201 lines (164 loc) · 7.63 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Prokicks | Home</title>
<!-- ===== CSS ===== -->
<!--<link rel="stylesheet" href="assets/css/style.css" />-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-9ndCyUaIbzAi2FUVXJi0CjmCapSmO7SnpJef0486qhLnuZ2cdeRhO02iuK6FUUVM" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
<!-- ===== BOX ICONS ===== -->
<link href="https://unpkg.com/boxicons@2.1.2/css/boxicons.min.css" rel="stylesheet" />
<?php
include 'header.php';
?>
</head>
<body>
<main class="l-main">
<!--===== HOME =====-->
<section class="home" id="home">
<div class="home__container bd-grid">
<div class="home__sneaker animate__animated animate__fadeInRight">
<div class="home__shape"></div>
<img src="./assets/images/imghome.png" alt="" class="home__img" />
</div>
<div class="home__data ">
<span class="home__new animate__animated animate__fadeInLeft">New In</span>
<h1 class="home__title animate__animated animate__fadeInLeft animate__delay-1.5s">YEEZY BOOST <br />SPLY - 350</h1>
<p class="home__description animate__animated animate__fadeInLeft animate__delay-600ms">
Explore the new collections of sneakers
</p>
<a href="./views/store.php" class="button animate__animated animate__fadeInLeft animate__delay-1s">Explore</a>
</div>
</div>
</section>
<!--===== FEATURED =====-->
<section class="featured section" id="featured">
<h2 class="section-title">FEATURED</h2>
<?php
include './database/config.php';
$query = "SELECT * FROM product_table ORDER BY RAND() LIMIT 6";
$Record = mysqli_query($con, $query);
while($row = mysqli_fetch_array($Record)){
echo "<div class='sam'>";
echo "
<div class='featured-container'>
<article class='sneaker animate__animated animate__fadeInUp animate__delay-500ms'>
<img src='./admin/product/$row[Image]' class='sneaker__img' />
<span class='sneaker__name'>$row[PName]</span>
<span class='sneaker__preci'>₦$row[PPrice]</span>
<span class='sneaker__preci2'>₦$row[PPrice2]</span>
<form method='post' action='insertbag.php' onsubmit='showSuccessMessage(); return true;'>
<input type='hidden' name='Image' value='$row[Image]' />
<input type='hidden' name='PName' value='$row[PName]' />
<input type='hidden' name='PPrice' value='$row[PPrice]' />
<input type='hidden' name='PPrice2' value='$row[PPrice2]' />
<input type='hidden' name='PQuantity' value='1' />
<button type='submit' class='button-light no-border' name='addCart'>
Add to Bag <i class='bx bx-right-arrow-alt button-icon'></i>
</button>
</form>
</article>
</div> " ;
echo "</div";
}
?>
</section>
<!--=====SLIDES =====-->
<section class="featured section" id="featured">
<h2 class="section-title">SLIDES</h2>
<?php
include './database/config.php';
$Record = mysqli_query($con, "SELECT * FROM product_table WHERE PCategory='slides' ORDER BY RAND() LIMIT 4");
while($row = mysqli_fetch_array($Record)){
echo "<div class='sam'>";
echo "
<div class='featured-container'>
<article class='sneaker'>
<img src='./admin/product/$row[Image]' class='sneaker__img' />
<span class='sneaker__name'>$row[PName]</span>
<span class='sneaker__preci'>₦$row[PPrice]</span>
<span class='sneaker__preci2'>₦$row[PPrice2]</span>
<form method='post' action='insertbag.php' onsubmit='showSuccessMessage(); return true;'>
<input type='hidden' name='PName' value='$row[PName]' />
<input type='hidden' name='PPrice' value='$row[PPrice]' />
<input type='hidden' name='PQuantity' value='1' />
<button type='submit' class='button-light no-border' name='addCart'>
Add to Bag <i class='bx bx-right-arrow-alt button-icon'></i>
</button>
</form>
</article>
</div> " ;
echo "</div";
}
?>
</section>
<!--===== SHOES =====-->
<section class='featured section' id='featured'>
<h2 class='section-title'>SHOES</h2>
<?php
include './database/config.php';
$Record = mysqli_query($con, "SELECT * FROM product_table WHERE PCategory='shoes' ORDER BY RAND() LIMIT 4");
while($row = mysqli_fetch_array($Record)){
echo "
<div class='featured__container bd-grid'>
<article class='sneaker'>
<img src='./admin/product/$row[Image]' class='sneaker__img' />
<span class='sneaker__name'>$row[PName]</span>
<span class='sneaker__preci'>₦$row[PPrice]</span>
<span class='sneaker__preci2'>₦$row[PPrice2]</span>
<a href='#' class='button-light'>Add to Cart <i class='bx bx-right-arrow-alt button-icon'></i></a>
</article>
</div> " ;
}
?>
</section>
<!--=====SLIDES =====-->
<section class='featured section' id='featured'>
<h2 class='section-title'>LUXURY</h2>
<?php
include './database/config.php';
$Record = mysqli_query($con, "SELECT * FROM product_table WHERE PCategory='luxury' ORDER BY RAND() LIMIT 6");
while($row = mysqli_fetch_array($Record)){
echo "<div class='sam'>";
echo "
<div class='featured-container'>
<article class='sneaker'>
<img src='./admin/product/$row[Image]' class='sneaker__img' />
<span class='sneaker__name'>$row[PName]</span>
<span class='sneaker__preci'>₦$row[PPrice]</span>
<span class='sneaker__preci2'>₦$row[PPrice2]</span>
<form method='post' action='insertbag.php' onsubmit='showSuccessMessage(); return true;'>
<input type='hidden' name='PName' value='$row[PName]' />
<input type='hidden' name='PPrice' value='$row[PPrice]' />
<input type='hidden' name='PQuantity' value='1' />
<button type='submit' class='button-light no-border' name='addCart'>
Add to Bag <i class='bx bx-right-arrow-alt button-icon'></i>
</button>
</form>
</article>
</div> " ;
echo "</div";
}
?>
</section>
<!--<section class="newsletter section">
<div class="newsletter__container bd-grid">
<div>
<h3 class="newsletter__title">Subcribe And Get <br> 10% OFF</h3>
<p class="newsletter__description">Get 10% discount for all product</p>
</div>
<form action="./newsletter.php" class="newsletter__subscribe">
<input type="text" placeholder="abc@gmail.com" class="newsletter__input">
<a href="#" class="button" value="submit">Subcribe</a>
</form>
</div>
</section>-->
</main>
<?php
include 'footer.php';
?>
</body>
</html>