-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
280 lines (238 loc) · 11.3 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
<?php
use GuzzleHttp\Promise\Is;
include('./includes/connect.php');
session_start();
// echo $_SESSION['username'];
// echo $_SESSION['passengerUsername'];
// $sessionDriverName = $_SESSION['username'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="./assets/img/taxi-img.png" type="image/x-icon" class="object-fit-cover" />
<title>Home | City - Taxi</title>
<!-- Google Font (Sen) -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Sen:wght@400;500;600;700&display=swap" rel="stylesheet" />
<!-- Font Awesome CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" />
<!-- Bootsrap CSS -->
<link rel="stylesheet" href="./assets/css/bootstrap.min.css" />
<!-- External CSS -->
<link rel="stylesheet" href="./assets/css/style.css" />
</head>
<body class="overflow-x-hidden">
<div class="container-fluid background-gradient-image vh-100">
<!-- Header -->
<nav class="navbar navbar-expand-lg container py-3">
<div class="container-fluid">
<!-- Logo -->
<a class="navbar-brand text-white fs-1 fw-bold" href="./index.php">City<span class="text-warning">Taxi</span></a>
<!-- Toggle Button (Responsvie) -->
<button class="navbar-toggler bg-warning" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- Menu -->
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav ms-auto mb-2 mb-lg-0">
<!-- Home -->
<li class="nav-item">
<a class="nav-link active text-white fs-5 rounded hover-effect me-2 px-3" aria-current="page" href="./index.php">Home</a>
</li>
<!-- Pick a Driver -->
<li class="nav-item">
<a class="nav-link active text-white fs-5 rounded hover-effect me-2 px-3" aria-current="page" href="./select-driver.php">Pick a Driver</a>
</li>
<!-- About -->
<!-- <li class="nav-item">
<a class="nav-link text-white fs-5 rounded hover-effect me-2 px-3" href="./about-us.php">About</a>
</li> -->
<!-- Contact Us -->
<!-- <li class="nav-item">
<a class="nav-link text-white fs-5 rounded hover-effect me-2 px-3" href="./contact-us.php">Contact Us</a>
</li> -->
</ul>
<!-- Login Button:
## Based on the below code; If the Passenger / Driver loggedin It will show Logout instead of Login.
## Otherwise, It will show as Login through the SESSION.
-->
0.<div class="btn-group me-4">
<?php
if (isset($_SESSION['username'])) {
echo "
<a href='logout.php' class='btn btn-warning fw-bold'>
Logout
</a>
";
}
if (isset($_SESSION['passengerUsername'])) {
echo "
<a href='logout.php' class='btn btn-warning fw-bold'>
Logout
</a>
";
}
if (!(isset($_SESSION['username'])) && !((isset($_SESSION['passengerUsername'])))) {
echo "
<button type='button' class='btn btn-warning dropdown-toggle fw-bold' data-bs-toggle='dropdown' aria-expanded='false'>
Login
</button>
<ul class='dropdown-menu bg-black py-2'>
<li><a class='dropdown-item text-light hover-effect' href='./admin-panel/index.php'>Admin</a></li>
<li><a class='dropdown-item text-light hover-effect' href='./driver-directory/login.php'>Driver</a></li>
<li><a class='dropdown-item text-light hover-effect' href='./passenger-directory/passenger-login.php'>Passenger</a></li>
</ul>
";
}
?>
</div>
<!-- Sign-Up Button -->
<div class="btn-group">
<button type="button" class="btn border-warning text-light hover-effect dropdown-toggle fw-bold" data-bs-toggle="dropdown" aria-expanded="false">
Sign Up
</button>
<ul class="dropdown-menu bg-black py-2">
<li><a class="dropdown-item text-light hover-effect" href="./sign-up/driver.php">Driver</a></li>
<li><a class="dropdown-item text-light hover-effect" href="./sign-up/customer.php">Passenger</a></li>
</ul>
<!-- <a href=""></a> -->
</div>
</div>
</div>
</nav>
<!-- End -->
<div class="text-center mt-sm-1 height d-flex flex-column justify-content-center align-items-center">
<h3 class="text-warning fw-semibold text-uppercase">
Book your Taxi Now
</h3>
<a href="tel:+12345678900" class="text-white text-decoration-none fs-1 fw-bold"><i class="fa-solid fa-mobile-screen"></i> +94 754946927</a>
<small class="font-white-secondary">Tap to call 👆</small>
</div>
</div>
<!-- Best in City Division -->
<div>
<div class="bg-warning container-fluid mx-auto row p-sm-2 p-md-5">
<div class="col-12 col-md-6 p-5">
<p class="fw-bold m-1 mx-0">Best in City</p>
<h3 class="fw-bolder">Trusted Taxi Services in Sri Lanka 🇱🇰</h3>
<p>
"Step into a world of convenience and comfort! Greetings from your
go-to City Taxi service. Ready to embark on a hassle-free journey
through the heart of the city? Buckle up for a ride that blends
style, efficiency, and local expertise. Your destination awaits –
let's make every mile memorable together!"
</p>
</div>
<div class="col-md-6 p-5">
<img src="./assets/img/taxi-img.png" class="img-fluid mx-auto" alt="Responsive image" />
</div>
</div>
</div>
<!-- Our Services Division -->
<div class="container-fluid bg-light mt-5 mb-5 p-5">
<div>
<h3 class="text-center mb-5 fw-bold">We do best than you wish</h3>
<div class="row justify-content-center gap-5 mb-5">
<div class="col-12 col-md-4 border d-flex justify-content-between align-items-start gap-3 p-4 white-variant rounded-1">
<i class="fa-solid fa-taxi bg-warning p-3 rounded-5"></i>
<div>
<p class="mb-2 fw-bold">Quick Pickup</p>
<p class="">
Fast, reliable, and just a tap away! Conveniently located
around the city, we're ready to get you where you need to be,
pronto. Tap, ride, and go with us!
</p>
</div>
</div>
<div class="col-12 col-md-4 border d-flex justify-content-between align-items-start gap-3 p-4 white-variant rounded-1">
<i class="fa-solid fa-trophy bg-warning p-3 rounded-5"></i>
<div>
<p class="mb-2 fw-bold">Fast Booking</p>
<p class="">
"Swift bookings, seamless rides! With our taxi service,
booking a ride is as quick as a tap. Experience instant
reservations, hassle-free scheduling, and prompt pickups. Your
journey starts with a click – book fast, ride faster
</p>
</div>
</div>
</div>
<div class="row justify-content-center gap-5">
<div class="col-12 col-md-4 border d-flex justify-content-between align-items-start gap-3 p-4 white-variant rounded-1">
<i class="fa-solid fa-taxi bg-warning p-3 rounded-5"></i>
<div>
<p class="mb-2 fw-bold">Quick Pickup</p>
<p class="">
Fast, reliable, and just a tap away! Conveniently located
around the city, we're ready to get you where you need to be,
pronto. Tap, ride, and go with us!
</p>
</div>
</div>
<div class="col-12 col-md-4 border d-flex justify-content-between align-items-start gap-3 p-4 white-variant rounded-1">
<i class="fa-solid fa-trophy bg-warning p-3 rounded-5"></i>
<div>
<p class="mb-2 fw-bold">Fast Booking</p>
<p class="">
"Swift bookings, seamless rides! With our taxi service,
booking a ride is as quick as a tap. Experience instant
reservations, hassle-free scheduling, and prompt pickups. Your
journey starts with a click – book fast, ride faster
</p>
</div>
</div>
</div>
</div>
</div>
<!-- We are ready to take your call 24 hours, 07 days! -->
<div class="bg-warning text-center p-5">
<p class="fw-semibold fs-4 m-0">
We are ready to take your call 24 hours, 07 days!
</p>
<a href="tel:+123 4567 8900" class="text-decoration-none text-black fs-1 fw-bolder"><i class="fa-solid fa-mobile-screen"></i> +94754946927</a>
</div>
<!-- For Drivers -->
<div>
<div class="bg-light container-fluid mx-auto row p-sm-2 p-md-5">
<div class="col-12 col-md-6 p-5">
<p class="fw-bold m-1">For Drivers</p>
<h1 class="fw-bolder">Do you want to Earn with Us?</h3>
<a href="./sign-up/driver.php" target="_blank" class="btn btn-warning fw-bold mt-2">Become a Driver</a>
</div>
<div class="col-md-6 p-5">
<img src="./assets/img/taxi-top-view.png" class="img-fluid mx-auto" alt="Responsive image" />
</div>
</div>
</div>
<!-- Footer -->
<div class="bg-black">
<div class="row gap-2 p-5">
<div class="col-12 col-md-4">
<div class="text-light">
<h4 class="fw-bold">About City<span class="text-warning">Taxi</span></h4>
</div>
<p class="text-color">
Meet City<span class="text-warning">Taxi</span> – your go-to for
swift, safe rides! With a commitment to excellence, we offer
seamless travel with a reliable fleet and professional drivers. Your
journey, our priority. Choose us for a ride that exceeds
expectations!
</p>
<div class="text-warning">
<a href="#" target="_blank" class="text-decoration-none text-warning mx-3"><i class="fa-brands fa-facebook-f"></i></a>
<a href="#" target="_blank" class="text-decoration-none text-warning mx-3"><i class="fa-brands fa-whatsapp"></i></a>
<a href="#" target="_blank" class="text-decoration-none text-warning mx-3"><i class="fa-brands fa-instagram"></i></a>
<a href="#" target="_blank" class="text-decoration-none text-warning mx-3"><i class="fa-brands fa-x-twitter"></i></a>
</div>
</div>
<div class="col-12 col-md-4"></div>
</div>
</div>
<!-- Boostrap JS Files -->
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.2/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.1/dist/js/bootstrap.min.js" integrity="sha384-Atwg2Pkwv9vp0ygtn1JAojH0nYbwNJLPhwyoVbhoPwBhjQPR5VtM2+xf0Uwh9KtT" crossorigin="anonymous"></script>
</body>
</html>