-
Notifications
You must be signed in to change notification settings - Fork 0
/
confirmation.php
194 lines (170 loc) · 6.54 KB
/
confirmation.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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="images/airplaneFavicon.ico">
<title>Step 4: Confirm and Pay</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-responsive.css">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css/bootstrap-combined.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/progress.css">
<?php
// Database connection
require 'databaseConfig.php';
?>
</head>
<body>
<?php
$surname=$_POST['surname'];
$givenname=$_POST['givenname'];
$gender=$_POST['gender'];
$address=$_POST['address'];
$nationality=$_POST['nationality'];
$phonenumber=$_POST['phonenumber'];
$passport=$_POST['passport'];
$email=$_POST['email'];
$cardNo=$_POST['cardNo'];
$cardType=$_POST['cardType'];
if (empty($surname)) {
echo 'variable empty';
}
//else {echo $surname;}
/* echo $surname;
echo $givenname;
echo $gender;
echo $address
echo $nationality;
echo $phonenumber;
echo $passport;
echo $email;*/
?>
<?php
$chooseID=$_POST['chooseID'];
$chooseDepartureCity=$_POST['chooseDepartureCity'];
$chooseArrivalCity=$_POST['chooseArrivalCity'];
$chooseDepartureDate=$_POST['chooseDepartureDate'];
$chooseDepartureTime=$_POST['chooseDepartureTime'];
$chooseArrivalDate=$_POST['chooseArrivalDate'];
$chooseArrivalTime=$_POST['chooseArrivalTime'];
$choosePrice=$_POST['choosePrice'];
if (empty($chooseID)) {
echo 'variable empty';
}
/*echo $chooseID;
echo $chooseDepartureCity;
echo $chooseArrivalCity;
echo $chooseDepartureDate;
echo $chooseDepartureTime;
echo $chooseArrivalDate;
echo $chooseArrivalTime;
echo $choosePrice;*/
?>
<nav class="navbar navbar-inverse navbar-static-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="index.php">G5 Airlines</a>
</div>
<div>
<ul class="nav navbar-nav">
<li><a href="index.php">Home</a></li>
<li><a href="contact-us.html">Contact Us</a></li>
</ul>
</div>
</div>
</nav>
<!-- Progress Bar -->
<div class="container">
<div class="row smpl-step" style="border-bottom: 0; min-width: 500px;">
<div class="col-xs-3 smpl-step-step complete">
<div class="text-center smpl-step-num">Step 1</div>
<div class="progress">
<div class="progress-bar"></div>
</div>
<a class="smpl-step-icon"><i class="fa fa-user" style="font-size: 60px; padding-left: 12px; padding-top: 3px; color: black;"></i></a>
<div class="smpl-step-info text-center">Search Flight</div>
</div>
<div class="col-xs-3 smpl-step-step complete">
<div class="text-center smpl-step-num">Step 2</div>
<div class="progress">
<div class="progress-bar"></div>
</div>
<a class="smpl-step-icon"><i class="fa fa-dollar" style="font-size: 60px; padding-left: 18px; padding-top: 5px; color: black;"></i></a>
<div class="smpl-step-info text-center">Choose Flight</div>
</div>
<div class="col-xs-3 smpl-step-step complete">
<div class="text-center smpl-step-num">Step 3</div>
<div class="progress">
<div class="progress-bar"></div>
</div>
<a class="smpl-step-icon"><i class="fa fa-repeat" style="font-size: 60px; padding-left: 7px; padding-top: 7px; color: black;"></i></a>
<div class="smpl-step-info text-center">Book Flight</div>
</div>
<div class="col-xs-3 smpl-step-step active">
<div class="text-center smpl-step-num">Step 4</div>
<div class="progress">
<div class="progress-bar"></div>
</div>
<a class="smpl-step-icon"><i class="fa fa-download" style="font-size: 60px; padding-left: 8px; padding-top: 4px; color: black; opacity: 0.3;"></i></a>
<div class="smpl-step-info text-center">Confirmation</div>
</div>
</div>
</div>
<!-- Confirmation Details -->
<div class="container">
<h2>Your Ticket Has Been Booked!</h2>
<!-- Read parameter values from the $_GET array and copy them into variables -->
<h3>Ticket From <?php echo $chooseDepartureCity?> to <?php echo $chooseArrivalCity?></h3>
<h4>Flight on <?php echo $chooseDepartureDate?>. Departure Time: <?php echo $chooseDepartureTime?>. Arrival Time: <?php echo $chooseArrivalTime?></h4>
<table class='table table-responsive'>
<tbody>
<tr>
<td>Name:</td>
<td><?php echo $givenname . ' ' . $givenname ?></td>
</tr>
<tr>
<td>Gender: </td>
<td><?php echo $gender ?></td>
</tr>
<tr>
<td>Address: </td>
<td><?php echo $address?></td>
</tr>
<tr>
<td>Nationality: </td>
<td><?php echo $nationality?></td>
</tr>
<tr>
<td>Phone Number: </td>
<td><?php echo $phonenumber?></td>
</tr>
<tr>
<td>Passport No: </td>
<td><?php echo $passport?></td>
</tr>
<tr>
<td>Email:</td>
<td><?php echo $email?></td>
</tr>
<tr>
<td>Card Type:</td>
<td><?php echo $cardType?></td>
</tr>
<tr>
<td>Card Number:</td>
<td><?php echo $cardNo?></td>
</tr>
</tbody>
</table>
<a href="javascript:void(0)" onclick=window.print()><button type="button" class="btn btn-primary btn-lg">Print</button></a>
</div>
<div class="footer navbar-inverse">
<div class="container">
<div class="row">
<div class="col-md-12 text-center">
<p><span style="color:white"> © 2014</span> <a href="https://github.com/victorng8/G53SQM">G53 SQM Group E</a></p>
</div>
</div>
</div>
</div>
</body>
</html>