-
Notifications
You must be signed in to change notification settings - Fork 2
/
newflight.html
317 lines (260 loc) · 12.3 KB
/
newflight.html
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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
<!DOCTYPE HTML>
<html>
<head>
<title>New Flight</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="script.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Poppins">
<link rel="stylesheet" href="style.css">
</head>
<style type="text/css">
.affix{
top:5rem;
}
body{
position: relative;
};
</style>
<body data-spy="scroll" data-target="#myscroll">
<nav class="navbar navbar-inverse" data-spy="affix" style="border-radius:0px !important; margin:0;border: 0 ; width: 100%;top:0;z-index: 9999 !important">
<div class="navbar-header">
<a class="navbar-brand" >Airline-X</a>
</div>
<div class="nav navbar-nav navbar-right">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-user"></span>
<span class="caret"></span></a>
<ul class="dropdown-menu" style="padding: 1rem 2rem 1rem 2rem; text-align: center;" >
<li><a href="#"><b>Admin Name</b></a></li>
<hr>
<li><a href="#">View Profile</a></li>
<li><a href="#">Settings</a></li>
<hr>
<li><a href="#">Logout</a></li>
</ul>
</li>
<ul class="nav navbar-nav navbar-right" style="padding: 0 3rem 0 0">
<li><span class="glyphicon glyphicon-log-out"></span> Logout</li>
</ul>
</div>
</nav>
<div class="container" data-spy="affix" style="margin: 0;bottom: 0;float: left;top:5rem;width: 20%;height:100%; background-color: #222222">
<ul class="nav nav-pills nav-stacked" style="border-radius: 0">
<li>
<a href="#" id="m1">Dashboard</a>
<ul id="sub1" style="padding: 0 0 0 0">
<div class="list-group">
<li><a href="home.html" class="list-group-item">Home</a></li>
</div>
</ul>
</li>
<li>
<a href="#" id="m2">Flight Schedule</a>
<ul id="sub2" style="padding: 0 0 0 0; display: none;">
<div class="list-group" >
<a href="newflight.html" class="list-group-item">Add new Flight</a>
<a href="manageflights.html" class="list-group-item">Manage flights</a>
</div>
</ul>
</li>
<li>
<a href="#" id="m3">Airbus</a>
<ul id="sub3" style="padding: 0 0 0 0; display: none;">
<div class="list-group" >
<a href="newAirbus.html" class="list-group-item">Add new airbus</a>
<a href="newAirbus.html" class="list-group-item">Manage Airbus</a>
</div>
</ul>
</li>
<li>
<a href="#" id="m4">Accounts</a>
<ul id="sub4" style="padding: 0 0 0 0; display: none;">
<div class="list-group">
<a href="accounts.html" class="list-group-item">Create new account</a>
<a href="accounts.html" class="list-group-item">Password Reset</a>
</div>
</ul>
</li>
<li>
<a href="#" id="m5">Feedback</a>
<ul id="sub5" style="padding: 0 0 0 0; display: none;">
<div class="list-group">
<li><a href="feedback.html" class="list-group-item">Ratings</a></li>
<li><a href="feedback.html" class="list-group-item">Reviews</a></li>
</div>
</ul>
</li>
</ul>
</div>
<div id="#myscroll" class="container" style="margin-left: 0;margin-top: 5rem; float: right; width:80%; padding: 0 5rem 0 5rem">
<h2>New Flight</h2>
<hr>
<div style="width: 100%">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<legend style="text-align: center;">Flight Information</legend>
</div>
<div class="panel-body">
<div class="input-group">
<label for="class">Select Airline</label>
<select class="form-control">
<option>Emirates</option>
<option>Air Asia</option>
<option>Air IndiA</option>
<option>Indigo</option>
</select>
<a href="#"></a>
</div>
<br>
<form class="form-inline">
<div class="input-group">
<label for=""> Enter Flight No:</label>
<input type="number" class="form-control" placeholder=" Enter Flight No." name="" required>
</div>
<br><br>
<div>
<div class="input-group">
<label for="from">Departure</label>
<input type="text" class="form-control" placeholder="Origin" name="" id="from" required>
</div>
<div class="input-group">
<label for="to">Arrival</label>
<input type="text" class="form-control" placeholder="Destination" name="" id="to" required>
</div>
</div>
<br>
<div>
<div class="input-group">
<label for="Departure">Departure Date</label>
<input type="date" class="form-control" name="date1" min="2024-06-01" id="Departure" required>
</div>
<div class="input-group">
<label>Departure Time</label>
<input type="time" class="form-control" name="" id="" >
</div>
</div>
<br>
<div>
<div class="input-group">
<label for="Adults">Journey Hours</label>
<input type="number" class="form-control" id="" value="1" name="" min="1" required>
</div>
<div class="input-group">
<label>Intervals</label>
<input type="number" class="form-control" id="" value="0" name="" min="0">
</div>
</div>
<!--class tabs-->
<br>
<div class="container" style="margin: 0 0 0 0;padding: 0 0 0 0;float: center;width: 100%" >
<div class="row">
<div class="col-sm-4">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" href="#collapse1">
<h4 class="panel-title">First</h4>
</div>
<div id="collapse1" class="panel-collapse collapse">
<div class="panel-body">
<div>
<div class="input-group">
<label>Seats</label>
<input type="number" class="form-control" id="" value="0" min="0" required>
</div>
<div class="input-group">
<label>Price <small>(for each seat)</small></label>
<input type="number" class="form-control" value="0" min="0" required>
</div>
<div class="input-group">
<label>Features</label>
<input type="text" class="form-control" placeholder="add new features">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" href="#collapse2">
<h4 class="panel-title">Business</h4>
</div>
<div id="collapse2" class="panel-collapse collapse">
<div class="panel-body">
<div>
<div class="input-group">
<label>Seats</label>
<input type="number" class="form-control" id="" value="0" min="0" required>
</div>
<div class="input-group">
<label>Price <small>(for each seat)</small></label>
<input type="number" class="form-control" value="0" min="0" required>
</div>
<div class="input-group">
<label>Features</label>
<input type="text" class="form-control" placeholder="add new features">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-sm-4">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading" data-toggle="collapse" href="#collapse3">
<h4 class="panel-title">Economy</h4>
</div>
<div id="collapse3" class="panel-collapse collapse">
<div class="panel-body">
<div>
<div class="input-group">
<label>Seats</label>
<input type="number" class="form-control" id="" value="0" min="0" required>
</div>
<div class="input-group">
<label>Price <small>(for each seat)</small></label>
<input type="number" class="form-control" value="0" min="0" required>
</div>
<div class="input-group">
<label>Features</label>
<input type="text" class="form-control" placeholder="add new features">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--button-->
<br>
<div style="text-align: right;">
<button type="submit" class="btn btn-primary"><a href="manageflights.html" style="color: white"><i class="fa fa-plus"></i> Add</a></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript">
$("#m1").click({param1:"#sub1",param2:"#sub2",param3:"#sub3",param4:"#sub4",param5:"#sub5"},navbar_movment);
$("#m2").click({param1:"#sub2",param2:"#sub1",param3:"#sub3",param4:"#sub4",param5:"#sub5"},navbar_movment);
$("#m3").click({param1:"#sub3",param2:"#sub1",param3:"#sub2",param4:"#sub4",param5:"#sub5"},navbar_movment);
$("#m4").click({param1:"#sub4",param2:"#sub1",param3:"#sub2",param4:"#sub3",param5:"#sub5"},navbar_movment);
$("#m5").click({param1:"#sub5",param2:"#sub1",param3:"#sub2",param:"#sub3",param4:"#sub4"},navbar_movment);
</script>