-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
247 lines (237 loc) · 10.8 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset='utf-8'>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, shrink-to-fit=no">
<title>ParkIT</title>
<meta name="description" content="ParkIT - Register and Get your Parking Slot.">
<!-- Bootstrap core CSS -->
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.min.css">
<link rel="stylesheet" href="css/app.css">
<link href="https://fonts.googleapis.com/css?family=Nunito+Sans:700,900&display=swap" rel="stylesheet">
</head>
<body>
<div class="container">
<div class="page-header-extended">
<h3 class="page-title">ParkIT - Smart Parking Management System</h3>
</div>
<div class="info-table-header-block">
<input type="text" placeholder="Search vehicles by Registration no, Owner name, Email, Date of allocation, Slot etc." id="member_search" onkeyup="getTableData()">
</div>
<div class="starter-template">
<div class="info-table-header-block">
<button type="button slot" class="btn btn-primary slot-button" data-toggle="modal" data-target="#addnewModal">
Add new vehicle
</button>
</div>
<!-- Modal -->
<div class="modal fade" id="addnewModal" tabindex="-1" role="dialog" aria-labelledby="addnewModalTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="addnewModalTitle">Book a new Slot</h4>
</div>
<!-- User Create Modal Start -->
<div class="modal-body">
<form id="saveMemberInfo">
<div class="form-group">
<label for="reg_no">Vehicle Number:
<span class="required-field">*</span>
</label>
<input type="text" class="form-control" placeholder="Eg: GJ06-BQ-1556" id="reg_no" required />
</div>
<div class="form-group">
<label for="owner_name">Vehicle Owner name:
<span class="required-field">*</span>
</label>
<input type="text" class="form-control" placeholder="Enter owner name" id="owner_name" required />
</div>
<div class="form-group">
<label for="email">Email:
<span class="required-field">*</span>
</label>
<input type="email" class="form-control" placeholder="Enter email" id="email" required />
</div>
<div class="form-group">
<label for="d_o_a">Date of Booking:
<span class="required-field">*</span>
</label>
<input type="text" class="form-control" placeholder="Enter Date of Booking" id="d_o_a" required onkeypress="return false;" />
</div>
<div class="form-group">
<label for="slot">Slot(See lot Matrix):
<span class="required-field">*</span>
</label>
<input type="number" class="form-control" placeholder="Enter Slot number(1-40)" id="slot" required min="1" max="40" maxlength="2">
</div>
<div class="modal-footer-extended">
<button type="submit" class="btn btn-primary">Create</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div>
</form>
</div>
<!-- User Create Modal End -->
</div>
</div>
</div>
<table id="member_table" class="table">
<thead>
<tr>
<th>#</th>
<th>
<a href="#" onclick="sortBy('reg_no')">Vehicle Number</a>
</th>
<th>
<a href="#" onclick="sortBy('owner_name')">Vehicle Owner Name</a>
</th>
<th>
<a href="#" onclick="sortBy('email')">Email</a>
</th>
<th>
<a href="#" onclick="sortBy('d_o_a')">Date of Booking</a>
</th>
<th>
<a href="#" onclick="sortBy('slot')">Slot number</a>
<!-- <a href="" >See Slot Matrix</a> -->
</th>
<th>Actions</th>
</tr>
</thead>
</table>
<div class="show-table-info hide">
<div class="alert alert-info center">
<bold>No current Bookings!</bold>
</div>
</div>
<footer>
<div class="parking lot" id="lot" tabindex="-1" role="dialog">
<div class"parking-modal" id="document">
<!-- <img src="/images/LotMatrix.png" width="1045px" height="610px" alt="Parking Lot Matrix"> -->
<img src="/images/LotMatrix1.png" width="100%" height="80%" alt="Parking Lot Matrix">
</div>
</div>
<!-- <a href="lotmatrix.html">See Parking Lot Matrix </a> -->
</footer>
</div>
</div>
<!-- User Information Modal Start -->
<div id="show_user_info">
<div class="modal fade" id="showModal" tabindex="-1" role="dialog" aria-labelledby="showModalTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="showModal">Vehicle Information</h4>
</div>
<div class="modal-body">
<div class="form-group">
<label for="show_reg_no">Vehicle Number: </label>
<input type="text" class="form-control" id="show_reg_no" value="" disabled>
</div>
<div class="form-group">
<label for="show_owner_name">Vehicle Owner name: </label>
<input type="text" class="form-control" id="show_owner_name" value="" disabled>
</div>
<div class="form-group">
<label for="show_email">Email: </label>
<input type="email" class="form-control" id="show_email" value="" disabled>
</div>
<div class="form-group">
<label for="show_d_o_a">Date of Booking: </label>
<input type="text" class="form-control" id="show_d_o_a" value="" disabled>
</div>
<div class="form-group">
<label for="show_slot">Lot Number(See Slot Matrix):</label>
<input type="number" class="form-control" id="show_slot" value="" disabled>
</div>
<div class="modal-footer-extended">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- User Information Modal End -->
<!-- User Edit Modal Start -->
<div id="show_user_info">
<div class="modal fade" id="editModal" tabindex="-1" role="dialog" aria-labelledby="editModalTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h4 class="modal-title" id="editModal">Edit Vehicle Information</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<label for="edit_reg_no">Eg: GJ06-BQ-1556
<span class="required-field">*</span>
</label>
<input type="text" class="form-control" id="edit_reg_no" value="" required />
</div>
<div class="form-group">
<label for="edit_owner_name">Vehicle Owner name:
<span class="required-field">*</span>
</label>
<input type="text" class="form-control" id="edit_owner_name" value="" required />
</div>
<div class="form-group">
<label for="edit_email">Email:
<span class="required-field">*</span>
</label>
<input type="email" class="form-control" id="edit_email" value="" required />
</div>
<div class="form-group">
<label for="edit_d_o_a">Date of Booking:
<span class="required-field">*</span>
</label>
<input type="text" class="form-control" id="edit_d_o_a" value="" required onkeypress="return false;" />
</div>
<div class="form-group">
<label for="edit_slot">Slot <a href="footer">(see Lot Matrix)</a>:
<span class="required-field">*</span>
</label>
<input type="number" class="form-control" id="edit_slot" value="" required />
</div>
<div class="form-group">
<input type="hidden" class="form-control" id="member_id">
</div>
<div class="modal-footer-extended">
<button type="button" class="btn btn-success" onclick="updateMemberData();">Update</button>
<button type="button" class="btn btn-danger" data-dismiss="modal">Cancel</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- User Edit Modal End -->
<!-- Delete Confirmation Dialog Start -->
<div id="show_user_info">
<div class="modal fade" id="deleteDialog" tabindex="-1" role="dialog" aria-labelledby="deleteDialogTitle" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title" id="deleteDialog">Warning!</h3>
</div>
<div class="modal-body">
<h3>Are you sure, want to delete this vehicle? </h3>
<input type="hidden" id="deleted-member-id" value="">
<div class="modal-footer-extended">
<button class="btn btn-danger" onclick="deleteMemberData()">Delete</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Delete Confirmation Dialog End -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<script src="js/app.js"></script>
</body>
</html>