-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathindex.php
More file actions
412 lines (364 loc) · 14.9 KB
/
Copy pathindex.php
File metadata and controls
412 lines (364 loc) · 14.9 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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<?php
/**
* ============================================================================
* Car Rental System - Landing Page
* ============================================================================
*
* This file serves as the primary entry point for the Car Rental Portal.
* It displays the homepage with marketing content, service highlights,
* platform statistics, and provides access to user authentication modals.
*
* ----------------------------------------------------------------------------
* AUTHORSHIP & CREDITS (Amey Thakur)
* ----------------------------------------------------------------------------
* This project was developed by the Amey Thakur:
* - Amey Thakur
*
*
*
*
* @package CarRentalSystem
* @subpackage Frontend
* @author Amey Thakur (Lead)
* @link https://github.com/Amey-Thakur
* @repository https://github.com/Amey-Thakur/CAR-RENTAL-SYSTEM
* @version 1.0.0
* @date 2021-01-19
* @license MIT
*
* @requires PHP 7.0+
* @requires MySQL 5.7+
* @requires Bootstrap 3.x
* @requires jQuery 3.x
*
* ============================================================================
* CHANGE LOG:
* ----------------------------------------------------------------------------
* 2021-01-19 - Initial release - Amey Thakur
* ============================================================================
*/
/**
* Session Initialization
*
* Starts the PHP session to maintain user state across page requests.
* This is essential for tracking logged-in users and storing session data
* such as user ID, email, and authentication tokens.
*/
session_start();
/**
* Database Configuration
*
* Includes the centralized database configuration file which establishes
* the PDO connection to the MySQL database server. The $dbh variable
* becomes available globally for all database operations.
*/
include('includes/config.php');
/**
* Error Reporting Configuration
*
* Suppresses all PHP error messages in production environment.
* Note: Set to E_ALL during development for debugging purposes.
*
* @production error_reporting(0)
* @development error_reporting(E_ALL)
*/
error_reporting(0);
?>
<!DOCTYPE html>
<html lang="en">
<!--
============================================================================
HTML Document Structure
============================================================================
This document follows HTML5 standards with semantic markup.
The page is divided into the following main sections:
1. Head - Meta information, CSS dependencies
2. Header - Navigation and branding (included via PHP)
3. Banner - Hero image with call-to-action
4. Features - Service highlights and value propositions
5. Statistics - Platform performance metrics
6. Footer - Site footer with contact info (included via PHP)
7. Modals - Authentication forms (login, register, forgot password)
8. Scripts - JavaScript dependencies
============================================================================
-->
<head>
<!-- Character Encoding: UTF-8 for international character support -->
<meta charset="UTF-8">
<!-- Page Title: Displayed in browser tab and search results -->
<title>AHNA | CAR Rental</title>
<!--
============================================================================
CSS DEPENDENCIES
============================================================================
The following stylesheets are loaded in order of specificity:
1. Bootstrap - Core responsive grid system and UI components
2. Custom Styles - Application-specific styling overrides
3. Carousel Libraries - Owl Carousel for image sliders
4. Slick Slider - Additional carousel functionality
5. Font Awesome - Icon library for UI elements
6. Google Fonts - Custom typography (Play font family)
============================================================================
-->
<!-- Bootstrap Framework: Responsive grid and core components -->
<link rel="stylesheet" href="assets/css/bootstrap.min.css" type="text/css">
<!-- Custom Application Styles: Brand-specific theming -->
<link rel="stylesheet" href="assets/css/style.css" type="text/css">
<!-- Owl Carousel: Touch-enabled slider component -->
<link rel="stylesheet" href="assets/css/owl.carousel.css" type="text/css">
<link rel="stylesheet" href="assets/css/owl.transitions.css" type="text/css">
<!-- Slick Slider: Alternative carousel with advanced features -->
<link href="assets/css/slick.css" rel="stylesheet">
<!-- Bootstrap Slider: Range input component -->
<link href="assets/css/bootstrap-slider.min.css" rel="stylesheet">
<!-- Font Awesome: Scalable vector icons -->
<link href="assets/css/font-awesome.min.css" rel="stylesheet">
<!-- Google Fonts: Play font for modern typography -->
<link href="https://fonts.googleapis.com/css2?family=Play&display=swap" rel="stylesheet">
<!--
============================================================================
INLINE STYLES
============================================================================
Component-specific CSS for banner text overlay positioning.
These styles position the promotional text and CTA button over the hero image.
============================================================================
-->
<style>
/* Container positioning for absolute child elements */
.container {
position: relative;
font-family: Arial;
}
/* Left-aligned text block for tagline */
.text-block {
position: absolute;
bottom: 20px;
left: 20px;
color: white;
padding-left: 20px;
padding-right: 20px;
}
/* Right-aligned text block for CTA button */
.text-blockk {
position: absolute;
bottom: 20px;
right: 20px;
color: white;
padding-left: 20px;
padding-right: 20px;
}
</style>
</head>
<body style="background-color:black;">
<!--
============================================================================
HEADER SECTION
============================================================================
Includes the shared navigation header component with:
- Brand logo and identity
- Main navigation menu
- User authentication links (Login/Register or Profile/Logout)
- Responsive mobile menu toggle
============================================================================
-->
<?php include('includes/header.php'); ?>
<!--
============================================================================
HERO BANNER SECTION
============================================================================
Primary marketing banner with:
- Full-width hero image
- Promotional tagline overlay
- Call-to-action button linking to vehicle search
============================================================================
-->
<section id="banner">
<!-- Hero Image: Full-width promotional banner -->
<img src="admin/img/vehicleimages/banner-image.jpg" style="width:100%;">
<div class="container">
<!-- Promotional Tagline: COVID-19 safety messaging -->
<div class="text-block">
<h4 style="color:white;">DRIVE IN A SANITISED CAR</h4><br /><br />
</div>
<!-- Primary Call-to-Action: Vehicle search link -->
<div class="text-blockk">
<a href="car-listing.php" class="btn" style="background-color:blue;">Search Cars</a><br /><br /><br />
</div>
</div>
</section>
<!--
============================================================================
VALUE PROPOSITION SECTION
============================================================================
Displays the key selling points and service features including:
- Self-drive rental concept
- Fuel cost inclusion policy
- Transparent pricing guarantee
- Flexible package options
- Pan-India travel permits
- 24/7 roadside assistance
- Comprehensive damage insurance
============================================================================
-->
<section style="background-color:black;">
<section id="banner">
<div class="section-header text-center">
<br />
<!-- Section Heading -->
<h2 style="color:aqua;">Self Drive Cars on Rent</h2>
<!-- Taglines -->
<h3 style="color:white;">
<span>We simplified car rentals, so you can focus on what's important to you.</span>
</h3>
<h3 style="color:white;">
<span>Unbeatable Rates. Easy & Quick Online Booking. Clean & Well Maintained Fleet.</span>
</h3>
<!-- Feature Cards Grid -->
<p>
<div class="items">
<!-- Feature 1: Fuel Cost Included -->
<div>
<h3 style="color:aqua;">Fuel Cost Included</h3>
<p style="color:white;">Don't worry about mileage! All fuel costs are included. If you refill fuel, we'll
pay you back!</p>
</div>
<!-- Feature 2: No Hidden Charges -->
<div>
<h3 style="color:aqua;">No Hidden Charges</h3>
<p style="color:white;">Our prices include taxes and insurance.<br>What you see is what you really pay!</p>
</div>
<!-- Feature 3: Flexible Pricing -->
<div>
<h3 style="color:aqua;">Flexi Pricing Packages</h3>
<p style="color:white;">One size never fits all! Choose a balance of time and kilometers that works best for
you.</p>
</div>
<!-- Feature 4: All-India Permits -->
<div>
<h3 style="color:aqua;">Go Anywhere</h3>
<p style="color:white;">Our cars have all-India permits. Just remember to pay state tolls and entry taxes.
</p>
</div>
<!-- Feature 5: 24/7 Support -->
<div>
<h3 style="color:aqua;">24x7 Roadside Assistance</h3>
<p style="color:white;">We have round-the-clock, pan India partners. Help is never far away from you.</p>
</div>
<!-- Feature 6: Insurance Coverage -->
<div>
<h3 style="color:aqua;">Damage Insurance</h3>
<p style="color:white;">All your bookings include damage insurance! Drive safe, but don't worry!</p>
</div>
</div>
</p>
</div>
</section>
<!--
============================================================================
PLATFORM STATISTICS SECTION
============================================================================
Displays key performance indicators (KPIs) to build trust:
- Daily ride count
- Total kilometers traveled
- Registered user base
- Fleet size
These statistics are hardcoded for demonstration purposes.
In a production environment, these would be fetched from the database.
============================================================================
-->
<section class="fun-facts-section">
<div class="container div_zindex">
<div class="row">
<!-- Statistic 1: Daily Rides -->
<div class="col-lg-3 col-xs-6 col-sm-3">
<div class="fun-facts-m" style="background-color:blue;">
<div class="cell">
<h2><i class="fa fa-calendar" aria-hidden="true"></i>3000+</h2>
<p style="color:white;">Rides Daily</p>
</div>
</div>
</div>
<!-- Statistic 2: Distance Covered -->
<div class="col-lg-3 col-xs-6 col-sm-3">
<div class="fun-facts-m" style="background-color:blue;">
<div class="cell">
<h2><i class="fa fa-car" aria-hidden="true"></i>36,00,000+</h2>
<p style="color:white;">Km Travelled</p>
</div>
</div>
</div>
<!-- Statistic 3: User Base -->
<div class="col-lg-3 col-xs-6 col-sm-3">
<div class="fun-facts-m" style="background-color:blue;">
<div class="cell">
<h2><i class="fa fa-user-circle-o" aria-hidden="true"></i>95,000+</h2>
<p style="color:white;">Happy users</p>
</div>
</div>
</div>
<!-- Statistic 4: Fleet Size -->
<div class="col-lg-3 col-xs-6 col-sm-3">
<div class="fun-facts-m" style="background-color:blue;">
<div class="cell">
<h2><i class="fa fa-car" aria-hidden="true"></i>6500+</h2>
<p style="color:white;">Number of Cars</p>
</div>
</div>
</div>
</div>
</div>
<!-- Visual overlay for depth effect -->
<div class="dark-overlay"></div>
</section>
<!--
============================================================================
FOOTER SECTION
============================================================================
Includes the shared footer component with:
- Contact information
- Social media links
- Newsletter subscription
- Copyright notice
============================================================================
-->
<?php include('includes/footer.php'); ?>
<!--
============================================================================
AUTHENTICATION MODALS
============================================================================
Bootstrap modal dialogs for user authentication:
- Login form with email/password
- Registration form with user details
- Forgot password form with email recovery
These modals are triggered by header navigation links.
============================================================================
-->
<?php include('includes/login.php'); ?>
<?php include('includes/registration.php'); ?>
<?php include('includes/forgotpassword.php'); ?>
<!--
============================================================================
JAVASCRIPT DEPENDENCIES
============================================================================
Scripts are loaded at the end of body for optimal page performance.
Order of loading is important due to dependencies:
1. jQuery - Core library required by all plugins
2. Bootstrap - UI framework JavaScript
3. Interface - Custom application scripts
4. Slider plugins - Carousel functionality
============================================================================
-->
<!-- jQuery: Core JavaScript library -->
<script src="assets/js/jquery.min.js"></script>
<!-- Bootstrap: UI component interactions -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Interface: Custom application logic -->
<script src="assets/js/interface.js"></script>
<!-- Bootstrap Slider: Range input functionality -->
<script src="assets/js/bootstrap-slider.min.js"></script>
<!-- Slick Slider: Carousel implementation -->
<script src="assets/js/slick.min.js"></script>
<!-- Owl Carousel: Alternative carousel library -->
<script src="assets/js/owl.carousel.min.js"></script>
</body>
</html>