-
Notifications
You must be signed in to change notification settings - Fork 0
/
book_flight.php
405 lines (350 loc) · 14.1 KB
/
book_flight.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
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
<?php
session_start();
ob_start();
include('header.php');
include('admin/db_connect.php');
$query = $conn->query("SELECT * FROM system_settings limit 1")->fetch_assoc();
if ($query) {
foreach ($query as $key => $value) {
if (!is_numeric($key)) {
$_SESSION['setting_'.$key] = $value;
}
}
}
ob_end_flush();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo isset($_SESSION['setting_name']) ? $_SESSION['setting_name'] : 'Website Title'; ?></title>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Poppins', sans-serif;
background-color: #f0f0f0;
color: #333;
margin: 0;
padding: 0;
}
header.masthead {
background: url(assets/img/<?php echo isset($_SESSION['setting_cover_img']) ? $_SESSION['setting_cover_img'] : 'default.jpg'; ?>) no-repeat center center;
background-size: cover;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
color: #fff;
text-align: center;
position: relative;
}
header.masthead::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
}
header.masthead .container {
position: relative;
z-index: 2;
}
header.masthead h1 {
font-size: 3rem;
margin-bottom: 1rem;
}
header.masthead p {
font-size: 1.5rem;
margin-bottom: 2rem;
}
.btn-primary {
background-color: #ff5f57;
border: none;
padding: 10px 20px;
color: #fff;
font-size: 1rem;
border-radius: 5px;
transition: background-color 0.3s ease;
}
.btn-primary:hover {
background-color: #ff2e1f;
}
nav.navbar {
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
nav.navbar .navbar-brand {
font-size: 1.5rem;
font-weight: 600;
color: #333;
}
nav.navbar .nav-link {
color: #333;
font-weight: 500;
margin-right: 1rem;
}
.footer {
background-color: #333;
color: #fff;
padding: 2rem 0;
text-align: center;
}
.footer .container a {
color: #ff5f57;
text-decoration: none;
}
.footer .container a:hover {
text-decoration: underline;
}
.section {
padding: 4rem 0;
}
.section h2 {
font-size: 2rem;
margin-bottom: 1rem;
text-align: center;
}
.section p {
font-size: 1.2rem;
text-align: center;
max-width: 600px;
margin: 0 auto;
color: #666;
}
.modal-content {
border-radius: 10px;
}
.modal-header, .modal-footer {
border: none;
}
.toast {
position: fixed;
top: 20px;
right: 20px;
z-index: 9999;
}
html{
scroll-behavior: smooth;
}
</style>
</head>
<body id="page-top">
<div class="toast" id="alert_toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-body text-white"></div>
</div>
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="./"><?php echo isset($_SESSION['setting_name']) ? $_SESSION['setting_name'] : 'Website Name'; ?></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto my-2 my-lg-0">
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="book_flight.php">Home</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="flights.php">Flight List</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="about.php">About</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="index.php">Logout</a></li>
</ul>
</div>
</div>
</nav>
<header class="masthead">
<div class="container">
<h1>Book Your Next Adventure</h1>
<p>Find the best flights at the best prices</p>
<a href="#bookNow" class="btn btn-primary">Book Now</a>
</div>
</header>
<section class="section" id="services">
<div class="container">
<h2>Our Services</h2>
<p>We provide the best flight booking services to make your journey comfortable and affordable.</p>
</div>
</section>
<div id="bookNow">
<?php
$page = isset($_GET['page']) ? $_GET['page'] : "home";
include $page . '.php';
?>
</div>
<div class="modal fade" id="confirm_modal" role="dialog">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirmation</h5>
</div>
<div class="modal-body">
<div id="delete_content"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id='confirm'>Continue</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uni_modal" role="dialog">
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
</div>
<div class="modal-body"></div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id='submit' onclick="$('#uni_modal form').submit()">Save</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uni_modal_right" role="dialog">
<div class="modal-dialog modal-full-height modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="fa fa-arrow-right"></span>
</button>
</div>
<div class="modal-body"></div>
</div>
</div>
</div>
<div id="preloader"></div>
<footer class="footer">
<div class="container">
<h2>Contact us</h2>
<div class="row">
<div class="col-lg-4 ml-auto text-center mb-5 mb-lg-0">
<i class="fas fa-phone fa-3x mb-3 text-muted"></i>
<div><?php echo isset($_SESSION['setting_contact']) ? $_SESSION['setting_contact'] : 'Contact Number'; ?></div>
</div>
<div class="col-lg-4 mr-auto text-center">
<i class="fas fa-envelope fa-3x mb-3 text-muted"></i>
<a class="d-block" href="mailto:<?php echo isset($_SESSION['setting_email']) ? $_SESSION['setting_email'] : '[email protected]'; ?>"><?php echo isset($_SESSION['setting_email']) ? $_SESSION['setting_email'] : '[email protected]'; ?></a>
</div>
</div>
<br>
</div>
</footer>
<?php include('footer.php'); ?>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js"></script>
</body>
</html>
<!--
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?php echo isset($_SESSION['setting_name']) ? $_SESSION['setting_name'] : 'Website Title'; ?></title>
<style>
header.masthead {
background: url(assets/img/<?php echo isset($_SESSION['setting_cover_img']) ? $_SESSION['setting_cover_img'] : 'default.jpg'; ?>);
background-repeat: no-repeat;
background-size: cover;
}
</style>
</head>
<body id="page-top">
<div class="toast" id="alert_toast" role="alert" aria-live="assertive" aria-atomic="true">
<div class="toast-body text-white">
</div>
</div>
<nav class="navbar navbar-expand-lg navbar-light fixed-top py-3" id="mainNav">
<div class="container">
<a class="navbar-brand js-scroll-trigger" href="./"><?php echo isset($_SESSION['setting_name']) ? $_SESSION['setting_name'] : 'Website Name'; ?></a>
<button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="navbar-nav ml-auto my-2 my-lg-0">
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="book_flight.php">Home</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="flights.php">Flight List</a></li>
<li class="nav-item"><a class="nav-link js-scroll-trigger" href="about.php">About</a></li>
</ul>
</div>
</div>
</nav>
<?php
$page = isset($_GET['page']) ? $_GET['page'] : "home";
include $page . '.php';
?>
<div class="modal fade" id="confirm_modal" role='dialog'>
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Confirmation</h5>
</div>
<div class="modal-body">
<div id="delete_content"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id='confirm'>Continue</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uni_modal" role='dialog'>
<div class="modal-dialog modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
</div>
<div class="modal-body">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" id='submit' onclick="$('#uni_modal form').submit()">Save</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
<div class="modal fade" id="uni_modal_right" role='dialog'>
<div class="modal-dialog modal-full-height modal-md" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span class="fa fa-arrow-right"></span>
</button>
</div>
<div class="modal-body">
</div>
</div>
</div>
</div>
<div id="preloader"></div>
<footer class="bg-light py-5">
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8 text-center">
<h2 class="mt-0">Contact us</h2>
<hr class="divider my-4" />
</div>
</div>
<div class="row">
<div class="col-lg-4 ml-auto text-center mb-5 mb-lg-0">
<i class="fas fa-phone fa-3x mb-3 text-muted"></i>
<div><?php echo isset($_SESSION['setting_contact']) ? $_SESSION['setting_contact'] : 'Contact Number'; ?></div>
</div>
<div class="col-lg-4 mr-auto text-center">
<i class="fas fa-envelope fa-3x mb-3 text-muted"></i>
<a class="d-block" href="mailto:<?php echo isset($_SESSION['setting_email']) ? $_SESSION['setting_email'] : '[email protected]'; ?>"><?php echo isset($_SESSION['setting_email']) ? $_SESSION['setting_email'] : '[email protected]'; ?></a>
</div>
</div>
</div>
<br>
<div class="container">
<div class="small text-center text-muted"><?php echo isset($_SESSION['setting_name']) ? $_SESSION['setting_name'] : 'Website Name'; ?> | <a href="https://www.campcodes.com" target="_blank">CampCodes</a></div>
</div>
</footer>
<?php include('footer.php'); ?>
</body>
</html> -->
<?php $conn->close(); ?>