-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathairport-booking-confirm.php
296 lines (250 loc) · 10.2 KB
/
airport-booking-confirm.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
<?php
session_start();
error_reporting(1);
//error_reporting(E_ERROR | E_WARNING | E_PARSE);
//error_reporting(E_ERROR | E_WARNING | E_PARSE | E_NOTICE);
?>
<?php
include_once('inc/db-con.php');
$cab_type = $_SESSION['bookcab'];
$rs1 = "select * from localfare where cabtype='".$cab_type."'";
$res1 = $mysqli->query($rs1);
$res1_featch = $res1->fetch_array();
$cab_rate = $res1_featch['cab_rate'];
$distance = $res1_featch['distance'];
$details = $res1_featch['details'];
$package_name = $res1_featch['package_name'];
$micro_fare = $res1_featch['micro_fare'];
$rates = $res1_featch['rates'];
$fullname = $_POST['fullname'];
$email = $_POST['email'];
$mobile_number = $_POST['mobile_number'];
$pick_city = $_POST['pick_city'];
$drop_city = $_POST['drop_city'];
$pick_address = $_POST['pick_address'];
$drop_address = $_POST['drop_address'];
$sp_remarks = $_POST['sp_remarks'];
$pick_date_time = $_POST['pick_date_time'];
$explode_pdt = explode(" ",$pick_date_time);
$pick_date = $explode_pdt[0];
$pick_time = $explode_pdt[1];
$rs = "insert into booking(package,fullname,email,mobile_number,pick_city,pick_address,drop_city,drop_address,cab_type,cab_rate,distance,details,package_name,micro_fare,rates,pick_date,pick_time,sp_remark,payment_method,time_now)
values('airport','$fullname','$email','$mobile_number','$pick_city','$pick_address','$drop_city','$drop_address','$cab_type','$cab_rate','$distance','$details','$package_name','$micro_fare','$rates','$pick_date','$pick_time','$sp_remarks','CASH',now())";
$res = $mysqli->query($rs);
//print_r($res);exit;
include("includes/mailcall.php");
$cust_details = '<table style="font-family:Verdana, Geneva, sans-serif; font-size: 12px; background:#999999; width:700px; border:none;" cellpadding="5" cellspacing="1">
<tr>
<th align="left" style="font-weight:bold; font-variant:small-caps; background:#F1C40F;" colspan="8">Booking Details</th>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="2"><strong>Package Type : </strong></td>
<td bgcolor="#ffffff" align="left" colspan="6">Airport Transfer</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Pick-up City : </strong>'.$pick_city.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Drop City : </strong>'.$drop_city.'</td>
</tr>
<tr>
<td bgcolor="#f2f2f2" align="left" colspan="8"><strong>Pick-up Location : </strong>'.$pick_address.'</td>
</tr>
<tr>
<td bgcolor="#f2f2f2" align="left" colspan="8"><strong>Drop Location : </strong>'.$drop_address.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Pick-up Date : </strong>'.$pick_date.'</td>
</tr>
<tr>
<td bgcolor="#f2f2f2" align="left" colspan="8"><strong>Pick-up Time : </strong>'.$pick_time.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Cab Type : </strong>'.$cab_type.'</td>
</tr>
<tr>
<td bgcolor="#f2f2f2" align="left" colspan="8"><strong>Gross Total : </strong>'.$details.'</td>
</tr>
<tr>
<td bgcolor="#f2f2f2" align="left" colspan="8"><strong>Details : </strong>'.$rates.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>One Day Estimated Distance : </strong>'.$distance.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>*Note: Ext. Chrg. Pay </strong>'.$micro_fare.' after '.$distance.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Customer Name: </strong>'.$fullname.'</td>
</tr>
<tr>
<td bgcolor="#f2f2f2" align="left" colspan="8"><strong>Customer Mobile Number : </strong>'.$mobile_number.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Customer EmailId : </strong>'.$email.'</td>
</tr>
<tr>
<td bgcolor="#ffffff" align="left" colspan="8"><strong>Special Remark : </strong>'.$sp_remarks.'</td>
</tr>
</table>';
$bsiMail = new bsiMail();
$mail_add = '[email protected]';
$mail_sub = 'New Booking UKG Tours&Travels';
$mail_body = "Team,<br><br>";
$mail_body .= "Please book the following Airport Transfer Booking for the customer<br><br>";
$mail_body .= "This booking has been entered by customer at www.ukgcab.com<br><br>";
$mail_body .= $cust_details;
//echo $mail_body;exit;
$returnMsg = $bsiMail->sendEMail($mail_add, $mail_sub, $mail_body);
if($returnMsg == true) {
$Email_Address = $email;
$Email_Subject = 'ukgcab.com : Booking Confirmation';
$Email_Body = "Dear Sir/Madam ,<br><br>";
$Email_Body .= "Thank you for Booking with ukgcab.com.<br><br>";
$Email_Body .= $cust_details;
$notifynMsg = $bsiMail->sendEMail($Email_Address, $Email_Subject, $Email_Body);
$sucess = 1;
}else {
$sucess = 2;
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
<meta name="keywords" content="" />
<meta name="description" content="">
<meta name="author" content="">
<title>Airport Transfer | UKG Tours & Travels</title>
<link rel="stylesheet" href="css/theme-new.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="stylesheet" href="css/animate.css" />
<link rel="stylesheet" href="css/whatsapp.css" />
<link rel="stylesheet" href="css/topbutton.css" />
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/fonts.css">
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Raleway:400,500,600,700|Montserrat:400,700">
<link rel="shortcut icon" href="images/favicon.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
</head>
<body>
<!-- Header -->
<?php include_once('inc/header.php'); ?>
<!-- //Header -->
<!-- Main -->
<main class="main" role="main" style="background-color: #2b2a29;">
<!-- Page info -->
<header class="site-title color">
<div class="wrap">
<div class="container">
<h1>Thank you. Your Airport Transfer Booking is now confirmed.</h1>
</div>
</div>
</header>
<!-- //Page info -->
<div class="wrap">
<div class="row">
<div class="three-fourth">
<form class="box readonly">
<h3>Passenger details</h3>
<div class="f-row">
<div class="one-fourth">Name and surname</div>
<div class="three-fourth"><?php echo $fullname; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">Mobile number</div>
<div class="three-fourth"><?php echo $mobile_number; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">Email address</div>
<div class="three-fourth" style="text-transform:none;"><?php echo $email; ?></div>
</div>
<h3>Airport Transfer Booking details</h3>
<div class="f-row">
<div class="one-fourth">Estimated Distance:</div>
<div class="three-fourth"><?php echo $distance; ?></div>
</div>
<div class="f-row">
<div class="one-fourth"> Pick Up Date</div>
<div class="three-fourth"><?php echo $pick_date." ".$pick_time; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">From</div>
<div class="three-fourth"><?php echo $pick_city; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">To</div>
<div class="three-fourth"><?php echo $drop_city; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">Pick-Up address</div>
<div class="three-fourth"><?php echo $pick_address; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">Drop Address</div>
<div class="three-fourth"><?php echo $drop_address; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">CabType</div>
<div class="three-fourth"><?php echo $cab_type; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">Special Remarks</div>
<div class="three-fourth"><?php echo $sp_remarks; ?></div>
</div>
<div class="f-row">
<div class="one-fourth">Basic Fare</div>
<div class="three-fourth"><?php echo "Rs ".$cab_rate; ?></div>
</div>
<b>Gross Total : <?php echo $details; ?> </b>
<h3>*Note : <?php echo "Ext. Chrg. Pay " .$micro_fare; ?> after <?php echo $distance; ?></h3>
<h3>Booking Amount Per 30% advance : <a href="pay-now" title="Pay Now" class="btn dkactive">Pay Now</a></h3>
</form>
</div>
<!--- Sidebar -->
<aside class="one-fourth sidebar right">
<!-- Widget -->
<div class="widget">
<h4>Need help booking?</h4>
<div class="textwidget">
<p>Call our customer services team on the number below to speak to one of our advisors who will help you with all of your needs.</p>
<p class="contact-data"><span class="ico phone black"></span> +91-9820439169</p>
</div>
</div>
<!-- //Widget -->
<!-- Widget -->
<div class="widget">
<h4>Advertisment</h4>
<a href="#"><img src="img/advertisment.jpg" alt="" /></a>
</div>
<!-- //Widget -->
</aside>
<!--- //Sidebar -->
</div>
</div>
</main>
<!-- //Main -->
<!-- Footer -->
<?php include_once('inc/footer.php'); ?>
<!-- //Footer -->
<!-- Preloader -->
<!--<div class="preloader">
<div id="followingBallsG">
<div id="followingBallsG_1" class="followingBallsG"></div>
<div id="followingBallsG_2" class="followingBallsG"></div>
<div id="followingBallsG_3" class="followingBallsG"></div>
<div id="followingBallsG_4" class="followingBallsG"></div>
</div>
</div>-->
<!-- //Preloader -->
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<script src="js/jquery.uniform.min.js"></script>
<script src="js/jquery.slicknav.min.js"></script>
<script src="js/wow.min.js"></script>
<script src="js/scripts.js"></script>
<script src="js/topbutton.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>