-
Notifications
You must be signed in to change notification settings - Fork 17
/
reserve.php
146 lines (132 loc) · 5.82 KB
/
reserve.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>BlazeMeter Demo App</title>
<meta name="description" content="BlazeMeter Demo app">
<meta name="sage" content="flights app">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
<script src="assets/bootstrap.min.js"></script>
<script src="assets/bootstrap-table.js"></script>
<link href="assets/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="assets/bootstrap-table.css" rel="stylesheet" media="screen">
<style type="text/css">
body { background: #f5f5f5); }
.hero-unit { background-color: #fff; }
.center { display: block; margin: 0 auto; }
</style>
</head>
<body>
<?php include 'gtm_inc.php'; ?>
<div class="navbar navbar-fixed-top navbar-inverse">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="index.php">Travel The World</a>
</div>
</div>
</div>
<div class="container hero-unit">
<?php
$fromPort = $_POST['fromPort'];
$toPort = $_POST['toPort'];
?>
<h3>Flights from <?php echo $fromPort; ?> to <?php echo $toPort; ?>: </h3>
<table class="table">
<thead>
<tr>
<th>Choose</th>
<th>Flight #</th>
<th>Airline</th>
<th>Departs: <?php echo $fromPort; ?></php></th>
<th>Arrives: <?php echo $toPort; ?></th>
<th>Price</th>
</tr>
</thead>
<tbody>
<tr>
<form name="VA43" method="post" action="purchase.php">
<td><input type="submit" class="btn btn-small" value="Choose This Flight"></td>
<td>43</td>
<td>Virgin America</td>
<td>1:43 AM</td>
<td>9:45 PM</td>
<td>$472.56</td>
<input type="hidden" value="43" name="flight">
<input type="hidden" value="472.56" name="price">
<input type="hidden" value="Virgin America" name="airline">
<input type="hidden" name="fromPort" value="<?php echo $fromPort; ?>" />
<input type="hidden" name="toPort" value="<?php echo $toPort; ?>" />
</form>
</tr>
<tr>
<form name="UA234" method="post" action="purchase.php">
<td><input type="submit" class="btn btn-small" value="Choose This Flight"></td>
<td>234</td>
<td>United Airlines</td>
<td>7:43 AM</td>
<td>10:45 PM</td>
<td>$432.98</td>
<input type="hidden" value="234" name="flight">
<input type="hidden" value="432.98" name="price">
<input type="hidden" value="United Airlines" name="airline">
<input type="hidden" name="fromPort" value="<?php echo $fromPort; ?>" />
<input type="hidden" name="toPort" value="<?php echo $toPort; ?>" />
</form>
</tr>
<tr>
<form name="AL969" method="post" action="purchase.php">
<td><input type="submit" class="btn btn-small" value="Choose This Flight"></td>
<td>9696</td>
<td>Aer Lingus</td>
<td>5:27 AM</td>
<td>8:22 PM</td>
<td>$200.98</td>
<input type="hidden" value="9696" name="flight">
<input type="hidden" value="200.98" name="price">
<input type="hidden" value="Aer Lingus" name="airline">
<input type="hidden" name="fromPort" value="<?php echo $fromPort; ?>" />
<input type="hidden" name="toPort" value="<?php echo $toPort; ?>" />
</form>
</tr>
<tr>
<form name="VA12" method="post" action="purchase.php">
<td><input type="submit" class="btn btn-small" value="Choose This Flight"></td>
<td>12</td>
<td>Virgin America</td>
<td>11:23 AM</td>
<td>1:45 PM</td>
<td>$765.32</td>
<input type="hidden" value="12" name="flight">
<input type="hidden" value="765.32" name="price">
<input type="hidden" value="Virgin America" name="airline">
<input type="hidden" name="fromPort" value="<?php echo $fromPort; ?>" />
<input type="hidden" name="toPort" value="<?php echo $toPort; ?>" />
</form>
</tr>
<tr>
<form name="L4346" method="post" action="purchase.php">
<td><input type="submit" class="btn btn-small" value="Choose This Flight"></td>
<td>4346</td>
<td>Lufthansa</td>
<td>1:45 AM</td>
<td>8:34 PM</td>
<td>$233.98</td>
<input type="hidden" value="4346" name="flight">
<input type="hidden" value="233.98" name="price">
<input type="hidden" value="Lufthansa" name="airline">
<input type="hidden" name="fromPort" value="<?php echo $fromPort; ?>" />
<input type="hidden" name="toPort" value="<?php echo $toPort; ?>" />
</form>
</tr>
</tbody>
</table>
<input type="hidden" name="fromPort" value="<?php echo $fromPort; ?>" />
<input type="hidden" name="toPort" value="<?php echo $toPort; ?>" />
</div>
</body>
</html>