-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpayment.php
132 lines (113 loc) · 5.9 KB
/
payment.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
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>Airlines Reservation System</title>
<link rel="stylesheet" href="./css/style_reset.css" type="text/css">
<link rel="stylesheet" href="./css/help.css" type="text/css">
<link rel="stylesheet" href="./css/openflights.css" type="text/css">
<style type="text/css"></style>
<link href="jquery-ui.min.css" rel="stylesheet" type="text/css" />
<!-- load jquery library -->
<script src="jquery-1.11.3.min.js"></script>
<!-- load jquery ui js file -->
<script src="jquery-ui.min.js"></script>
</head>
<body>
<div id="mainContainer">
<div id="sideBarContentWrapper">
<div id="contentContainer">
<div id="nonmap">
<h1>Airlines Reservation System</h1>
<a href="Home.php">
Home</a> | <a href="view.php">
View Reservation</a> |<a href="Airport.php">
Airport</a> | <a href="Airline.php">
Airline</a> | <a href="Route.php">
Route</a> | <a href="Analytical.php">
Analytical Operations</a>
<a name="airport Information"></a>
<h2>Payment</h2>
<?php
if (!isset($_POST["path"]))
{
echo "<h4><b>Something went wrong. seems like you redirects to this page directly.<b></h4>";
exit();
}
$array = unserialize(base64_decode($_POST["path"]));
//print_r($array);
?>
<form method="post" action="iternary.php" id="searchform">
<fieldset>
<h3>Personal Details</h3>
<table style="width:100%">
<tr>
<td><label>Full Name</label></td>
<td><input name="name" id="name" type="text" placeholder = "Full Name" size="50" qaname="Full Name" qadata="name?q=full" required/></td>
</tr>
<tr>
<td><label>Age</label></td>
<td><input name="age" id="age" type="text" placeholder = "Age" size="50" qaname="Age" qadata="random?max=72" required/></td>
</tr>
<tr>
<td><label>Gender</label></td>
<td><input name="gender" id="gender" type="text" placeholder = "Gender" size="50" qaname="Gender" qadata="gender" required/></td>
</tr>
<tr>
<td><label>Nationality</label></td>
<td><input name="nationality" id="natinality" type="text" placeholder = "Nationality" size="50" qaname="Nationality" qadata="nationality" required/></td>
</tr>
<tr>
<td><label>Mobile Number</label></td>
<td><input name="mobile" id="mobile" type="text" placeholder = "Mobile Number" size="50" qaname="Mobile Number" qadata="phonenumber" required/></td>
</tr>
<tr>
<td><label>Email</label></td>
<td><input name="email" id="email" type="text" placeholder = "Email" size="50" qaname="Email" qadata="email" required/></td>
</tr>
<tr>
<td><label>Street</label></td>
<td><input name="street" id="street" type="text" placeholder = "Street" size="50" qaname="Street" qadata="street" required/></td>
</tr>
<tr>
<td><label>State</label></td>
<td><input name="state" id="state" type="text" placeholder = "State" size="50" qaname="State" qadata="state" required/></td>
</tr>
<tr>
<td><label>Country</label></td>
<td><input name="country" id="Country" type="text" placeholder = "Country" size="50" qaname="Country" qadata="country" required/></td>
</tr>
</table>
<br> <br>
<h2>Credit card details</h2>
<table style="width:80%">
<tr>
<td><label>Credit Card Number</label></td>
<td><input name="credit" id="credit" type="text" placeholder = "Credit Card Number" size="50" qaname="Credit Card Number" qadata="creaditcard?q=cardnumber" required/></td>
</tr>
<tr>
<td><label>Expiry Date</label></td>
<td><input name="expiry" id="expiry" type="text" placeholder = "Expiry Date" size="50" qaname="Expiry Date" qadata="creaditcard?q=expiry" required/></td>
</tr>
<tr>
<td><label>CVV</label></td>
<td><input name="cvv" id="cvv" type="text" placeholder = "Cvv" size="50" qaname="CVV" qadata="creaditcard?q=cvv" required/></td>
</tr>
</table>
<br>
<input type="hidden" name="Airlinename" value="<?php echo htmlspecialchars($array["Airline Name"]); ?>" />
<input type="hidden" name="scity" value="<?php echo htmlspecialchars($array["scity"]); ?>" />
<input type="hidden" name="Origin" value="<?php echo htmlspecialchars($array["Origin Airport Name"]); ?>" />
<input type="hidden" name="dcity" value="<?php echo htmlspecialchars($array["dcity"]); ?>" />
<input type="hidden" name="destination" value="<?php echo htmlspecialchars($array["Destination Airport Name"]); ?>" />
<input type="hidden" name="fare" value="<?php echo htmlspecialchars($array["fare"]); ?>" />
<input type="hidden" name="date" value="<?php echo htmlspecialchars($array["date"]); ?>" />
<input type="Submit" value="Make Reservation" qaname="Make Reservation" />
</fieldset>
</form>
</div>
</div>
</div>
</div>
</body>
</html>