-
Notifications
You must be signed in to change notification settings - Fork 0
/
shop.php
330 lines (283 loc) · 12.5 KB
/
shop.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Shop</title>
<link rel="stylesheet" href="rankings.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KK94CHFLLe+nY2dmCWGMq91rCGa5gtU4mk92HdvYe+M/SXH301p5ILy+dN9+nJOZ" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" />
<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@1,700;1,800&display=swap" rel="stylesheet">
<?php
session_start();
$nowtime = time();
if ($nowtime > $_SESSION['expire']) {
session_unset();
session_destroy();
$message = "Please log in again. Your session has expired.";
$loginLink = "login3.php";
echo "<script>alert('$message'); window.location.href = '$loginLink';</script>";
}
if (isset($_SESSION['product'])) {
$_SESSION['product']++;
}
echo $_SESSION['product'];
?>
<style>
.main {
background-color: #252525;
padding-top: 30px;
padding-bottom: 20px;
}
.outer {
display: flex;
align-items: center;
justify-content: center;
border-radius: 50px;
border-radius: 30px;
background: #85c1b7;
box-shadow: inset -27px 27px 54px #68978f,
inset 27px -27px 54px #a2ebdf;
margin-left: 150px;
margin-right: 150px;
margin-top: 6px;
margin-bottom: 15px;
}
.card {
margin: 20px;
border-radius: 50px;
}
.card-body {
text-align: center;
}
.nav-black {
background-color: #252525;
}
.page-link {
background-color: #252525;
}
.card-link {
color: #68978f;
}
.card-link:hover {
background-color: #252525;
border-radius: 13px;
padding: 8px;
}
</style>
</head>
<body>
<nav class="navbar navbar-expand-lg fixed-top navbar-scroll" style="background-color: darkgray; color: aliceblue;">
<div class="container-fluid">
<button class="navbar-toggler ps-0" type="button" data-mdb-toggle="collapse" data-mdb-target="#navbarExample01" aria-controls="navbarExample01" aria-expanded="false" aria-label="Toggle navigation">
<span class="d-flex justify-content-start align-items-center">
<i class="fas fa-bars"></i>
</span>
</button>
<a class="navbar-brand " href="#">GALAXY</a>
<div class="collapse navbar-collapse" id="navbarExample01">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
<li class="nav-item active">
<a class="nav-link" aria-current="page" href="home.php">Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="news.php" rel="nofollow" >News</a>
</li>
<li class="nav-item">
<a class="nav-link" href="ranking-insert.php" >Ranking</a>
</li>
<li class="nav-item">
<a class="nav-link" href="videos.php" >Videos</a>
</li>
<li class="nav-item" >
<button type="button" class="btn btn-dark position-relative" >
Match Schedules
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
Under Development
<span class="visually-hidden">unread messages</span>
</span>
</button>
</li>
<li class="nav-item" style="margin-left: 80px;">
<button type="button" class="btn btn-dark position-relative">
Awards
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">
Under Development
<span class="visually-hidden">unread messages</span>
</span>
</button>
</li>
</ul>
<?php
if (isset($_SESSION['username'])) {
echo "<button class='btn btn-outline-success' type='button'>";
echo $_SESSION['username'];
echo "</button>";
echo "____";
echo '<button type="button" class="btn btn-success position-relative">
<a href="mail.php"> CheckOut </a>
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">' .
$_SESSION['product'] .
'<span class="visually-hidden">unread messages</span>
</span>
</button>';
echo "____";
echo "<button class='btn btn-outline-success' type='button'>";
echo "<a href='Logout.php'>Logout</a>";
echo "</button>";
} else {
echo "<button class='btn btn-outline-success' type='button'>";
echo " <a href='login3.php'>";
echo "LOG IN </a>";
echo "</button>";
}
?>
</div>
</div>
</nav>
<a href="#hot-item">
<img src="IMAGES/db842141-8132-46f3-84c4-d7af7dd18298__1600X752.png" class="img-fluid" alt="...">
</a>
<div class="main">
<div class="outer">
<div class="card" style="width: 25rem;">
<img src="IMAGES/new-zealand-t20-2022-black-caps-replica-shirt_ss4_p-13345245+u-mpl2lo68ywhy3fv17zwe+v-6f7aab7d058f43c59f67081466044f13.PNG" class="card-img-top" alt="new" height="300px">
<div class="card-body">
<h5 class="card-title">New zealand T-Shirt
</h5>
<p class="card-text">Stylish, com table, durable New Zealand T-Shirt for cricket enthusiasts</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-decoration: no;">ADD to Cart</a>
</div>
</div>
<div class="card" style="width: 25rem;">
<img src="IMAGES/australia-mens-t20-world-cup-2022-tipped-polo-shirt_ss4_p-13346622+u-cudigo23rif67b41vryd+v-56b70df1368544678e3f926e4aa4f5d2.WEBP" class="card-img-top" alt="aus" height="300px">
<div class="card-body">
<h5 class="card-title">Australia Men</h5>
<p class="card-text">
Fashionable, high-quality Australian Men's T-Shirt for trendy and casual lsook.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-decoration: no;">ADD to Cart</a>
</div>
</div>
<div class="card" style="width: 25rem;" id="hot-item">
<img src="IMAGES/icc-womens-t20-world-cup-logo-graphic-t-shirt-navy_ss4_p-13385835+u-agjb80mcuiipfjiq99pi+v-80c1fe7c74de4a3cbc57024f217cefa5.WEBP" class="card-img-top" alt="..." height="300px">
<div class="card-body">
<h5 class="card-title">Women World Cup</h5>
<p class="card-text">
Celebrate women's cricket with this stylish World Cup t-shirt for women.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-align: centers;">ADD to Cart</a>
</div>
</div>
</div>
<div class="outer">
<div class="card" style="width: 25rem;">
<img src="IMAGES/australia-womens-t20-world-cup-match-graphic-hoodie_ss4_p-13386219+u-1bxjh2gzn94c5yxspjti+v-5c69e4de0fa84687b7050910def5d29d.WEBP" class="card-img-top" alt="..." height="300px">
<div class="card-body">
<h5 class="card-title">Australia Women</h5>
<p class="card-text">
Stay warm and show your support with our cozy Australia Women's hoodies.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-decoration: no;">ADD to Cart</a>
</div>
</div>
<div class="card" style="width: 25rem;">
<img src="IMAGES/icc-mens-t20-world-cup-water-bottle-navy_ss4_p-13345268+u-19yhtwveawz6k1iebcq1+v-1dd82d33ab9447989ee0b219d009a746.JPG" class="card-img-top" alt="bottle" height="300px">
<div class="card-body">
<h5 class="card-title">Water Bottle</h5>
<p class="card-text">Stay hydrated and ready for action with our World Cup water bottle.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-decoration: no;">ADD to Cart</a>
</div>
</div>
<div class="card" style="width: 25rem;">
<img src="IMAGES/pakistan-womens-t20-world-cup-match-graphic-hoodie-green_ss4_p-13385827+u-7wa2cfji5tislc8yl8mj+v-332848ca6bb74f89bc99ec9ec08f36bf.WEBP" class="card-img-top" alt="aus-w" height="300px">
<div class="card-body">
<h5 class="card-title">Pakistan Womens</h5>
<p class="card-text">Stay warm and stylish with our Pakistan Women's hoodies.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-align: centers;">ADD to Cart</a>
</div>
</div>
</div>
<div class="outer">
<div class="card" style="width: 25rem;">
<img src="IMAGES/pakistan-womens-t20-world-cup-match-graphic-hoodie-green_ss4_p-13385827+u-7wa2cfji5tislc8yl8mj+v-332848ca6bb74f89bc99ec9ec08f36bf.WEBP" class="card-img-top" alt="pak-w" height="300px">
<div class="card-body">
<h5 class="card-title">Pakistan Womens T20</h5>
<p class="card-text">Show your support for Pakistan Women's T20 cricket with our stylish hoodies.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-decoration: no;">ADD to Cart</a>
</div>
</div>
<div class="card" style="width: 25rem;">
<img src="IMAGES/west-indies-mens-t20-world-cup-mug_ss4_p-13345270+u-7oaroatb6t6vx052yi5z+v-0c6db9c9e1c1424eae31034ae9258538.WEBP" class="card-img-top" alt="cup" height="300px">
<div class="card-body">
<h5 class="card-title">World Cup Mug</h5>
<p class="card-text">
Celebrate the thrilling cricket action with our World Cup Mug featuring West Indies.</p>
</div>
<div class="card-body">
<a href="#" class="card-link" style="text-decoration: no;">ADD to Cart</a>
</div>
</div>
<div class="card" style="width: 25rem;">
<img src="IMAGES/new-zealand-womens-t20-world-cup-match-graphic-hoodie-black_ss4_p-13385819+u-1fybm9av6bgfonn4pn3h+v-1fa22ba033d94099a740304f0c1a8965.WEBP" class="card-img-top" alt="..." height="300px">
<div class="card-body">
<h5 class="card-title">New-Zealand Womens</h5>
<p class="card-text">
Stay cozy and show your support for New Zealand with our Women's Hoodies.</p>
</div>
<div class="card-body">
<form method="post">
<button type="submit" name="increment">ADD to Cart</button>
</form>
</div>
</div>
</div>
<nav class="nav-black" aria-label="Page navigation example">
<ul class="pagination justify-content-center">
<li class="page-item"><a class="page-link" href="shop.php">Previous</a></li>
<li class="page-item"><a class="page-link" href="shop.php">1</a></li>
<li class="page-item"><a class="page-link" href="shop2.php">2</a></li>
<li class="page-item"><a class="page-link" href="shop2.php">Next</a></li>
</ul>
</nav>
<footer class="text-center text-white" style="background-color: rgb(70, 70, 70)">
<!-- Grid container -->
<div class="container p-4 pb-0">
<!-- Section: Social media -->
<section class="mb-4">
<!-- Facebook -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-facebook-f"></i></a>
<!-- Twitter -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-twitter"></i></a>
<!-- Google -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-google"></i></a>
<!-- Instagram -->
<a class="btn btn-outline-light btn-floating m-1" href="#!" role="button"><i class="fab fa-instagram"></i></a>
</section>
<!-- Section: Social media -->
</div>
<!-- Grid container -->
<!-- Copyright -->
<div class="text-center p-3" style="background-color: #252525">
© 2023 Copyright:
<a class="text-white" href="#">GALAXY</a>
</div>
<!-- Copyright -->
</footer>
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ENjdO4Dr2bkBIFxQpeoTz1HIcje39Wm4jDKdf19U8gI4ddQ3GYNS7NTKfAdVQSZe" crossorigin="anonymous"></script>
</body>
</html>