-
Notifications
You must be signed in to change notification settings - Fork 1
/
add_flight_details.php
147 lines (146 loc) · 3.81 KB
/
add_flight_details.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
<?php
session_start();
?>
<html>
<head>
<title>
Add Flight Schedule Details
</title>
<style>
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 200px
}
</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/shutterstock_22.jpg"/>
<h1 id="title">
AADITH AIRLINES
</h1>
<div>
<ul>
<li><a href="admin_homepage.php"><i class="fa fa-home" aria-hidden="true"></i> Home</a></li>
<li><a href="admin_homepage.php"><i class="fa fa-desktop" aria-hidden="true"></i> Dashboard</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="add_flight_details_form_handler.php" method="post">
<h2>ENTER THE FLIGHT SCHEDULE DETAILS</h2>
<?php
if(isset($_GET['msg']) && $_GET['msg']=='success')
{
echo "<strong style='color: green'>The Flight Schedule has been successfully added.</strong>
<br>
<br>";
}
else if(isset($_GET['msg']) && $_GET['msg']=='failed')
{
echo "<strong style='color: red'>*Invalid Flight Schedule Details, please enter again.</strong>
<br>
<br>";
}
?>
<table cellpadding="5">
<tr>
<td class="fix_table">Flight Number</td>
</tr>
<tr>
<td class="fix_table"><input type="text" name="flight_no" required></td>
</tr>
</table>
<br>
<hr>
<table cellpadding="5">
<tr>
<td class="fix_table">Origin</td>
<td class="fix_table">Destination</td>
</tr>
<tr>
<td class="fix_table"><input type="text" name="origin" required></td>
<td class="fix_table"><input type="text" name="destination" required></td>
</tr>
</table>
<br>
<hr>
<table cellpadding="5">
<tr>
<td class="fix_table">Departure Date</td>
<td class="fix_table">Arrival Date</td>
</tr>
<tr>
<td class="fix_table"><input type="date" name="dep_date" required></td>
<td class="fix_table"><input type="date" name="arr_date" required></td>
</tr>
</table>
<br>
<hr>
<table cellpadding="5">
<tr>
<td class="fix_table">Departure Time</td>
<td class="fix_table">Arrival Time</td>
</tr>
<tr>
<td class="fix_table"><input type="time" name="dep_time" required></td>
<td class="fix_table"><input type="time" name="arr_time" required></td>
</tr>
</table>
<br>
<hr>
<table cellpadding="5">
<tr>
<td class="fix_table">Number of Seats in Economy Class</td>
<td class="fix_table">Number of Seats in Business Class</td>
</tr>
<tr>
<td class="fix_table"><input type="number" name="seats_eco" required></td>
<td class="fix_table"><input type="number"" name="seats_bus" required></td>
</tr>
</table>
<br>
<hr>
<table cellpadding="5">
<tr>
<td class="fix_table">Ticket Price(Economy Class)</td>
<td class="fix_table">Ticket Price(Business Class)</td>
</tr>
</table>
<table cellpadding="5">
<tr>
<td class="fix_table">
<input type="number" name="price_eco" required>
</td>
<td class="fix_table">
<input type="number" name="price_bus" required>
</td>
</tr>
</table>
<br>
<hr>
<table cellpadding="5">
<tr>
<td class="fix_table">Jet ID</td>
</tr>
<tr>
<td class="fix_table">
<input type="text" name="jet_id" required>
</td>
</tr>
</table>
<br>
<input type="submit" value="Submit" name="Submit">
</form>
<!--check out addling local host in links and other places
-->
</body>
</html>