-
Notifications
You must be signed in to change notification settings - Fork 2
/
newAirbus.html
258 lines (227 loc) · 10.4 KB
/
newAirbus.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
<!DOCTYPE HTML>
<html>
<head>
<title>AirBus</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>
</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 Airbus</h2>
<hr>
<div style="width: 100%">
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<legend style="text-align: center;">Airbus Information</legend>
</div>
<div class="panel-body">
<form class="form-horizontal" style="padding: 0 5rem 0 5rem; width: 100%; inner:100%">
<div class="form-group">
<label>AirBus Name</label>
<input type="name" class="form-control" placeholder="AirBus name" required>
</div>
<div class="form-group">
<label>Capacity</label>
<input type="number" class="form-control" placeholder="Seating Capacity" min="0" required>
</div>
<div class="input-group-btn" style="margin: 0;padding: 0;">
<button class="btn btn-block" type="submit"><i class="glyphicon glyphicon-plus"></i> Add</button>
</div>
</form>
</div>
</div>
</div>
<br>
<br>
<h2>Manage Airbus</h2>
<hr>
<div class="panel-group">
<div class="panel panel-default">
<div class="panel-heading">
<legend style="text-align: center;">Airbus Information</legend>
</div>
<div class="panel-body">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>#</th>
<th>AIRBUS NAME</th>
<th>CAPACITY</th>
<th>NO OF FLIGHTS</th>
<th>ADDED DATES</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>Emirates</td>
<td>400</td>
<td>3</td>
<td>03/05/2024</td>
<td>
<a href=""><i class="fa fa-pencil"></i></a>
<a href="#myModal" role="button" data-toggle="modal"><i class="fa fa-trash-o"></i></a>
</td>
</tr>
<tr>
<td>2</td>
<td>Air Asia</td>
<td>300</td>
<td>4</td>
<td>03/05/2024</td>
<td>
<a href=""><i class="fa fa-pencil"></i></a>
<a href="#myModal" role="button" data-toggle="modal"><i class="fa fa-trash-o"></i></a>
</td>
</tr>
<tr>
<td>3</td>
<td>Air India</td>
<td>300</td>
<td>5</td>
<td>03/05/2024</td>
<td>
<a href=""><i class="fa fa-pencil"></i></a>
<a href="#myModal" role="button" data-toggle="modal"><i class="fa fa-trash-o"></i></a>
</td>
</tr>
<tr>
<td>4</td>
<td>Indigo</td>
<td>500</td>
<td>7</td>
<td>03/05/2024</td>
<td>
<a href=""><i class="fa fa-pencil"></i></a>
<a href="#myModal" role="button" data-toggle="modal"><i class="fa fa-trash-o"></i></a>
</td>
</tr>
</tbody>
</table>
<ul class="pagination">
<li ><a href="#">«</a></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#">»</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="modal small fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">Delete Confirmation</h3>
</div>
<div class="modal-body">
<p class="error-text"><i class="fa fa-warning modal-icon"></i> Are you sure you want to delete the Airbus?<br>This cannot be undone.</p>
</div>
<div class="modal-footer">
<button class="btn btn-default" data-dismiss="modal" aria-hidden="true">Cancel</button>
<button class="btn btn-danger" data-dismiss="modal">Delete</button>
</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>