-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess.php
More file actions
126 lines (116 loc) · 3.41 KB
/
process.php
File metadata and controls
126 lines (116 loc) · 3.41 KB
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
<!DOCTYPE html>
<html>
<head>
<title>Ticketing System</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/cancel.js"></script>
</head>
<body>
<form action="" class="register">
<h1>Reservation Details</h1>
<?php if (isset($_POST) == true && empty($_POST) == false) :
$chkbox = $_POST['chk'];
$bus = $_POST['bus'];
$day = $_POST['day'];
$month = $_POST['month'];
$mob = $_POST['mob'];
$type = $_POST['type'];
$from = $_POST['from'];
$to = $_POST['to'];
$root = $_POST['root'];
$BX_NAME = $_POST['BX_NAME'];
$BX_age = $_POST['BX_age'];
$BX_gender = $_POST['BX_gender'];
$BX_birth = $_POST['BX_birth'];
?>
<fieldset class="row1">
<legend>Travel Information</legend>
<p>
<label>BUS Name :
</label>
<input disabled name="bus" type="text" readonly="readonly" value="<?php echo $bus ?>" />
<label> Date :
</label>
<input disabled type="text" readonly="readonly" class="small" value="<?php echo $day ?>" />
<input disabled type="text" readonly="readonly" class="small" value="<?php echo $month ?>" />
<input disabled type="text" readonly="readonly" class="small" value="2020" />
<label>Bus Type :
</label>
<input disabled type="text" readonly="readonly" value="<?php echo $type ?>" />
</p>
<p>
<label>From :
</label>
<input disabled name="from" type="text" readonly="readonly" value="<?php echo $from ?>" />
<label>To :
</label>
<input disabled name="to" type="text" readonly="readonly" value="<?php echo $to ?>" />
<label>Via (Root) :
</label>
<input disabled type="text" readonly="readonly" value="<?php echo $root ?>" />
</p>
<p>
<label>Mobile :
</label>
<input disabled name="mob" type="text" readonly="readonly" value="<?php echo $mob ?>" />
</p>
<div class="clear"></div>
</fieldset>
<fieldset class="row2">
<legend>Passenger Details
</legend>
<table id="dataTable" class="form" border="1">
<tbody>
<tr>
<th></th>
<th>Name</th>
<th>Age</th>
<th>Gender</th>
<th>Bearth Pre</th>
</tr>
<?php foreach ($BX_NAME as $row => $b) { ?>
<tr>
<td>
<?php echo $row + 1; ?>
</td>
<td>
<?php echo $BX_NAME[$row]; ?>
</td>
<td>
<?php echo $BX_age[$row]; ?>
</td>
<td>
<?php echo $BX_gender[$row]; ?>
</td>
<td>
<?php echo $BX_birth[$row]; ?>
</td>
</tr>
<?php } ?>
</tbody>
</table>
<div class="clear"></div>
</fieldset>
<fieldset class="row5">
<legend>Terms and Conditions</legend>
<p>
<input class="submit" onclick="cancel()" type="button" value="Cancel Ticket »" />
<a class="submit" href="index.html" type="button"> Home <a />
</p>
<div class="clear"></div>
</fieldset>
<?php else : ?>
<fieldset class="row1">
<legend>Sorry</legend>
<p>OOps! something went wrong please try again.</p>
</fieldset>
<?php endif; ?>
<div class="clear"></div>
</form>
<div class="footer">
<p>© 2020 Passenger Tim, all rights reserved</p>
</div>
</body>
</html>