-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
350 lines (301 loc) · 8.68 KB
/
index.php
File metadata and controls
350 lines (301 loc) · 8.68 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
<?php
$servername = "localhost";
$username = "root"; // MySQL User Name
$password = ""; // MySQL Password
$dbname = "user"; // MySQL DB Name
// Create connection
$conn = new mysqli($servername, $username, $password, $dbname);
// Check connection
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
// Update iscomplete column based on expiry date
$currentDateTime = date('Y-m-d H:i:s');
$sql_update = "UPDATE orders SET iscomplete = 1 WHERE expiry < ?";
$stmt_update = $conn->prepare($sql_update);
$stmt_update->bind_param("s", $currentDateTime);
$stmt_update->execute();
$stmt_update->close();
// Close connection
$conn->close();
?>
<!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.0" />
<title>cars Website</title>
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
text-decoration: none;
list-style: none;
font-family: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande",
"Lucida Sans", Arial, sans-serif;
}
:root {
--color-primary: rgb(23, 67, 227);
--color-white: #eaeaea;
--color-dark: #333;
--color-black: #222;
}
.container {
max-width: 1620px;
width: 90%;
margin: 0 auto;
}
/* .......................Start Nav Bar...................... */
nav {
width: 100%;
height: 8%;
position: absolute;
left: 0;
top: 0;
z-index: 100;
display: grid;
place-items: center;
}
.nav-container {
display: flex;
justify-content: space-between;
align-items: center;
}
.nav-container ul {
display: flex;
align-items: center;
gap: 30px;
}
.logo h3 {
font-size: 25px;
color: var(--color-black);
opacity: 0;
animation: logoAni 1s ease forwards;
}
.nav-link li a {
color: var(--color-black);
font-size: 17px;
transition: 0.4s ease;
display: inline-block;
animation: NavliaAni forwards 1s ease;
animation-delay: calc(0.2s * var(--i));
opacity: 0;
}
.nav-link li a:hover {
color: var(--color-primary);
}
.nav-link li .active {
color: var(--color-primary);
}
/* .......................End Nav Bar...................... */
/* .......................Animation Start...................... */
@keyframes logoAni {
0% {
transform: translateX(-100px);
opacity: 0;
}
100% {
transform: translateX(0);
opacity: 1;
}
}
@keyframes NavliaAni {
0% {
transform: translateY(100px);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
footer {
background-color: #1743e3;
color: white;
padding: 20px 0;
text-align: center;
display: flex;
justify-content: space-between;
align-items: flex-start;
flex-wrap: wrap;
position: relative;
}
.contact-info {
width: 100%;
text-align: left;
padding-right: 20px;
box-sizing: border-box;
margin-left: auto;
margin-right: auto;
}
#map-frame {
width: calc(50% - 20px);
height: 300px;
margin-top: 20px;
overflow: hidden;
border-radius: 10px;
}
#map {
width: 100%;
height: 100%;
position: relative;
right: 20%;
}
.footer-copyright {
color: white;
position: absolute;
bottom: 10px;
left: 10px;
}
@keyframes slideInFromBottom {
0% {
transform: translateY(100%);
opacity: 0;
}
100% {
transform: translateY(0);
opacity: 1;
}
}
.infobox {
width: calc(30% - 20px);
margin: 10px;
padding: 20px;
border: 1px solid transparent;
overflow: hidden;
display: inline-block;
vertical-align: top;
}
img {
max-width: 40%;
max-height: 40%;
}
@media only screen and (max-width: 591px) {
.infobox {
width: calc(100% - 25px);
}
footer {
flex-direction: column;
}
}
.video-container {
position: relative;
width: 85%;
padding-block: 25%;
overflow: hidden;
display: inline-block;
vertical-align: top;
}
.video-container video {
position: absolute;
top: 15%;
width: 90%;
height: 80%;
}
</style>
</head>
<body class="container">
<section>
<!-- ..................Start Navbar................... -->
<nav>
<div class="container nav-container">
<a href="" class="logo">
<h3>AutoElegance.</h3>
</a>
<ul class="nav-link">
<!--<li><a href="" style="--i:1;" class="active">Home</a></li> -->
<li><a href="about.php" style="--i: 2">About</a></li>
<li><a href="login.php" style="--i: 2">Login</a></li>
<li><a href="registration.php" style="--i: 2">Register</a></li>
</ul>
</div>
</nav>
<div class="video-container">
<video src="images/WP-FINAL.mp4" autoplay muted loop></video>
</div>
<!-- ..................End Navbar................... -->
</section>
<!-- Electric Car Section -->
<section>
<h2>Why Electric Cars?</h2>
<div class="infobox">
<div class="box-content">
<img src="images/high-performance.png" alt="High Performance" />
<p>
Experience high-performance with lightning-fast acceleration, making every drive exhilarating and efficient.
</p>
</div>
</div>
<div class="infobox">
<div class="box-content">
<img src="images/green-economy.png" alt="Green Economy" />
<p>
Embrace a green economy with pocket-friendly electric cars, reducing carbon footprint while saving money.
</p>
</div>
</div>
<div class="infobox">
<div class="box-content">
<img src="images/eco-energy.png" alt="Eco Energy" />
<p>
Choose eco-energy vehicles for a planet-friendly ride, contributing to sustainability.
</p>
</div>
</div>
</section>
<section>
<h2>Why Autoelegance ?</h2>
<div class="infobox">
<div class="box-content">
<img src="images/car.png" alt="" />
<p>
Autoelegance offers top-notch products, providing customers with an exceptional driving experience.
</p>
</div>
</div>
<div class="infobox">
<div class="box-content">
<img src="images/rating_3773000.png" alt="" />
<p>
Trust our stellar reviews, ensuring the best-in-class service and satisfaction.
</p>
</div>
</div>
<div class="infobox">
<div class="box-content">
<img src="images/networking_1239608.png" alt="" />
<p>
Join a community of enthusiasts, connecting through a shared passion for eco-friendly transportation.
</p>
</div>
</div>
</section>
<section>
<footer>
<div class="contact-info">
<h3>Contact Us</h3>
<p>Email: info@autoelegance.com</p>
<p>Phone: +1 123-456-7890</p>
<p>Address: 123 Main St, City, Country</p>
</div>
<!-- Google Maps API Integration -->
<div id="map-frame">
<iframe
src="https://www.google.com/maps/embed?pb=!1m18!1m12!1m3!1d15090.677740708084!2d73.1173691153526!3d18.990200947700366!2m3!1f0!2f0!3f0!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x3be7e866de88667f%3A0xc1c5d5badc610f5f!2sPillai%20College%20of%20Engineering%2C%20New%20Panvel%20(Autonomous)!5e0!3m2!1sen!2sin!4v1707241870504!5m2!1sen!2sin"
width="600"
height="450"
style="border: 0"
allowfullscreen=""
loading="lazy"
referrerpolicy="no-referrer-when-downgrade"
></iframe>
</div>
<div class="footer-copyright">
<p>© 2024 AutoElegance. All Rights Reserved.</p>
</div>
</footer>
</section>
</body>
</html>