-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathnewAirbus.html
228 lines (199 loc) · 8.34 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
<!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="myjs.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="mycss.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" href="index.html">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><a href="index.html"><span class="glyphicon glyphicon-log-out"></span> Logout</a></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>
<li><a href="user.html" class="list-group-item">Users</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>
</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 No#</label>
<input type="number" class="form-control" placeholder="AirBus no." 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 No#</th>
<th>Capacity</th>
</tr>
</thead>
<tbody>
<tr>
<td>1</td>
<td>4091</td>
<td>500</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>4091</td>
<td>200</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>4091</td>
<td>300</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"},navbar_movment);
$("#m2").click({param1:"#sub2",param2:"#sub1",param3:"#sub3",param4:"#sub4"},navbar_movment);
$("#m3").click({param1:"#sub3",param2:"#sub1",param3:"#sub2",param4:"#sub4"},navbar_movment);
$("#m4").click({param1:"#sub4",param2:"#sub1",param3:"#sub2",param4:"#sub3"},navbar_movment);
</script>