-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbook_tickets.php
122 lines (122 loc) · 3.59 KB
/
book_tickets.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
<?php
session_start();
?>
<html>
<head>
<title>
View Available Trains
</title>
<style>
td{
padding-left: 100px;
}
input {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 7px 30px;
}
input[type=submit] {
background-color: #030337;
color: white;
border-radius: 4px;
padding: 7px 45px;
margin: 0px 127px
}
input[type=date] {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 5.5px 44.5px;
}
select {
border: 1.5px solid #030337;
border-radius: 4px;
padding: 6.5px 75.5px;
}
</style>
<link rel="stylesheet" type="text/css" href="css/style.css"/>
<link rel="stylesheet" href="font-awesome-4.7.0\css\font-awesome.min.css">
</head>
<body>
<img class="logo" src="images/railogo.png"/>
<h1 id="title" style="color: navy;">
IRCTC
</h1>
<div>
<ul>
<li><a href="customer_homepage.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><a href="customer_homepage.php"><i class="fa fa-desktop" aria-hidden="true"></i> Dashboard</a></li>
<li><a href="home_page.php"><i class="fa fa-plane" aria-hidden="true"></i> About Us</a></li>
<li><a href="home_page.php"><i class="fa fa-phone" aria-hidden="true"></i> Contact Us</a></li>
<li><a href="logout_handler.php"><i class="fa fa-sign-out" aria-hidden="true"></i> Logout</a></li>
</ul>
</div>
<form action="view_flights_form_handler.php" method="post">
<h2>SEARCH FOR AVAILABLE TRAINS</h2>
<table cellpadding="5">
<tr>
<td class="fix_table">Enter the Origin</td>
<td class="fix_table">Enter the Destination</td>
</tr>
<tr>
<td class="fix_table">
<input list="origins" name="origin" placeholder="From" required>
<datalist id="origins">
<option value="bangalore">
</datalist>
<!-- <input type="text" name="origin" placeholder="From" required> --></td>
<td class="fix_table">
<input list="destinations" name="destination" placeholder="To" required>
<datalist id="destinations">
<option value="mumbai">
<option value="mysore">
<option value="mangalore">
<option value="chennai">
<option value="hyderabad">
</datalist>
<!-- <input type="text" name="destination" placeholder="To" required> --></td>
</tr>
</table>
<br>
<table cellpadding="5">
<tr>
<td class="fix_table">Enter the Departure Date</td>
<td class="fix_table">Enter the No. of Passengers</td>
</tr>
<tr>
<td class="fix_table"><input type="date" name="dep_date" min=
<?php
$todays_date=date('Y-m-d');
echo $todays_date;
?>
max=
<?php
$max_date=date_create(date('Y-m-d'));
date_add($max_date,date_interval_create_from_date_string("90 days"));
echo date_format($max_date,"Y-m-d");
?> required></td>
<td class="fix_table"><input type="number" name="no_of_pass" placeholder="Eg. 5" required></td>
</tr>
</table>
<br>
<table cellpadding="5">
<tr>
<td class="fix_table">Enter the Class</td>
</tr>
<tr>
<td class="fix_table">
<select name="class">
<option value="economy">Economy</option>
<option value="business">Business</option>
</select>
</td>
</tr>
</table>
<br>
<input type="submit" value="Search for Train" name="Search" style="margin-top: 20px;margin-left:300px;">
</form>
<!--Following data fields were empty!
...
ADD VIEW FLIGHT DETAILS AND VIEW JETS/ASSETS DETAILS for ADMIN
-->
</body>
</html>