-
Notifications
You must be signed in to change notification settings - Fork 0
/
police_form_54.php
524 lines (476 loc) · 30.5 KB
/
police_form_54.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
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<!DOCTYPE html>
<?php
session_start();
$a = isset($_SESSION["type"]);
$u_type=($_SESSION["type"]);
$type=0;
if($u_type == 'police'){$type=1;}
if($u_type == 'rto'){$type=2;}
if($u_type == 'insurance'){$type=3;}
?>
<script>
var u_type = <?php echo($type)?>;
if (u_type != 1) {
window.location = "index.php";
}
</script>
<?php
$org = ($_SESSION['org']);
include('db_connect.php');
$qry=mysqli_query($conn,"select fir_no from police_fir WHERE police_station_name = '$org'");
$p_s_lat= $_SESSION['p_s_lat'];
$p_s_lng= $_SESSION['p_s_lng'];
?>
<script>
</script>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Integration</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="robots" content="all,follow">
<link rel="stylesheet" href="vendor/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="css/fontastic.css">
<link rel="stylesheet" href="vendor/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Poppins:300,400,700">
<link rel="stylesheet" href="css/style.default.css" id="theme-stylesheet">
<link rel="stylesheet" href="css/custom.css">
<link rel="shortcut icon" href="img/logo.png">
<!-- Tweaks for older IEs-->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script><![endif]-->
</head>
<body>
<div id="preloader">
<div id="status"> </div>
</div>
<div class="page home-page">
<!-- Main Navbar-->
<header class="header">
<nav class="navbar">
<!-- Search Box-->
<div class="search-box">
<button class="dismiss"><i class="icon-close"></i></button>
<form id="searchForm" action="#" role="search">
<input type="search" placeholder="What are you looking for..." class="form-control">
</form>
</div>
<div class="container-fluid">
<div class="navbar-holder d-flex align-items-center justify-content-between">
<!-- Navbar Header-->
<div class="navbar-header">
<!-- Navbar Brand -->
<a href="index.php" class="navbar-brand">
<div class="brand-text brand-big"><span>Integration</span></div>
<div class="brand-text brand-small">Integration</div>
</a>
<!-- Toggle Button--><a id="toggle-btn" href="#" class="menu-btn active"><span></span><span></span><span></span></a>
</div>
<!-- Navbar Menu -->
<ul class="nav-menu list-unstyled d-flex flex-md-row align-items-md-center">
<!-- Search-->
<li class="nav-item d-flex align-items-center"><a id="search" href="#"><i class="icon-search"></i></a></li>
<!-- Notifications-->
<li class="nav-item dropdown"> <a id="notifications" rel="nofollow" data-target="#" href="#" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="nav-link"><i class="fa fa-bell-o"></i><span class="badge bg-red">12</span></a>
<ul aria-labelledby="notifications" class="dropdown-menu">
<li>
<a rel="nofollow" href="#" class="dropdown-item">
<div class="notification">
<div class="notification-content"><i class="fa fa-envelope bg-green"></i>You have 6 new messages </div>
<div class="notification-time"><small>4 minutes ago</small></div>
</div>
</a>
</li>
<li>
<a rel="nofollow" href="#" class="dropdown-item">
<div class="notification">
<div class="notification-content"><i class="fa fa-twitter bg-blue"></i>You have 2 followers</div>
<div class="notification-time"><small>4 minutes ago</small></div>
</div>
</a>
</li>
<li>
<a rel="nofollow" href="#" class="dropdown-item">
<div class="notification">
<div class="notification-content"><i class="fa fa-upload bg-orange"></i>Server Rebooted</div>
<div class="notification-time"><small>4 minutes ago</small></div>
</div>
</a>
</li>
<li>
<a rel="nofollow" href="#" class="dropdown-item">
<div class="notification">
<div class="notification-content"><i class="fa fa-twitter bg-blue"></i>You have 2 followers</div>
<div class="notification-time"><small>10 minutes ago</small></div>
</div>
</a>
</li>
<li>
<a rel="nofollow" href="#" class="dropdown-item all-notifications text-center"> <strong>view all notifications </strong></a>
</li>
</ul>
</li>
<!-- Logout -->
<li class="nav-item"><a href="logout.php" class="nav-link logout">Logout<i class="fa fa-sign-out"></i></a></li>
</ul>
</div>
</div>
</nav>
</header>
<div id="loader">
<div id="text"> </div>
</div>
<div class="page-content d-flex align-items-stretch">
<!-- Side Navbar -->
<nav class="side-navbar">
<!-- Sidebar Header-->
<div class="sidebar-header d-flex align-items-center">
<div class="avatar"><img src="img/avatar-1.jpg" alt="..." class="img-fluid rounded-circle"></div>
<div class="title">
<h1 class="h4"><?php echo ($_SESSION['name']); ?></h1>
<p>
<?php echo ($_SESSION['org']); ?> Police Station
</p>
</div>
</div>
<!-- Sidebar Navidation Menus--><span class="heading">Main</span>
<ul class="list-unstyled">
<li> <a href="police_index.php"><i class="icon-home"></i>Home</a></li>
<li>
<a href="police_fir.php"> <i class="icon-padnote"></i>FIR</a>
</li>
<li class="active">
<a href="police_form_54.php"> <i class="icon-interface-windows"></i>Form 54</a>
</li>
<li>
<a href="charts.html"> <i class="fa fa-bar-chart"></i>View all accident case </a>
</li>
</ul>
</nav>
<div class="content-inner">
<!-- Page Header-->
<header class="page-header">
<div class="container-fluid">
<h2 class="no-margin-bottom">Form 54</h2>
</div>
</header>
<!-- Dashboard Counts Section-->
<br>
<div id="find_fir">
<div class="col-lg-12">
<div class="card">
<div class="card-header d-flex align-items-center">
<h3 class="h4">Find FIR For form 54</h3>
</div>
<div class="card-body">
<form class="form-horizontal" id="find">
<div class="form-group row">
<label class="col-sm-3 form-control-label">FIR No</label>
<select name="p-s-name" class="form-control col-sm-9" id="p_s_name">
<option>Select</option>
<?php
while($row = mysqli_fetch_array($qry))
{
$fir_no = $row['fir_no'];
echo "<option value=".$fir_no.">".$fir_no."</option>";
}
?>
<option value="" class="text-capitalize"></option>
</select>
</div>
</form>
</div>
</div>
</div>
<br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br><br>
</div>
<div id="form_54">
<div class="col-lg-12">
<div class="card">
<div class="card-header d-flex align-items-center">
<h3 class="h4">New Form 54</h3>
</div>
<div class="card-body">
<form class="form-horizontal" id="firform">
<div class="form-group row">
<label class="col-sm-3 form-control-label">Name Of Police Station</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="p_s_name" value="<?php echo($_SESSION['org']) ?> Police Station" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">FIR Number</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="fir_no" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">CR No. / Traffic Accident Report</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="cr_no">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Date</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="date" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Time</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="time" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Place</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="place" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Name Of Injured</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="injured_n" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Address Of Injured</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="injured_a" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Name Of Hospital To Which He/She Was Removed</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="injured_a">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Vehicle Number</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="veh_no">
</div>
</div>
<div class="line"></div>
<div class="col-sm-10 offset-3">
<div class="form-group row">
<label class="col-sm-3 form-control-label">Vehicle Type</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="veh_type" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Vehicle Owner Name</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="veh_owner" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Vehicle Owner Address</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="veh_address" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Vehicle Engine Number</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="veh_eng" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Vehicle Chassis Number</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="veh_cha" readonly>
</div>
</div>
<div class="line"></div>
</div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Driving Licence Number</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="d_l_no">
</div>
</div>
<div class="line"></div>
<div class="col-sm-10 offset-3">
<div class="form-group row">
<label class="col-sm-3 form-control-label">Name Of Driver</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="d_l_no" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Address Of Driver</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="d_l_no" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Licence Expity Date</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="d_l_no" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Address Of The Issuing Authorith</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="d_l_no" readonly>
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Badge Number In Case Of Public Service Vehicle</label>
<div class="col-sm-8">
<input type="text" class="form-control" id="d_l_no">
</div>
</div>
<div class="line"></div>
</div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Name Of Insurance Company</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="ins_comp_name">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Address Of Insurance Company</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="ins_comp_address">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Policy Number</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="policy_no">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Insurance Validity Date</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="inc_exp_date">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Policy Number</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="policy_no">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Route Permit Particulars</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="route_permit">
</div>
</div>
<div class="line"></div>
<div class="form-group row">
<label class="col-sm-3 form-control-label">Action Taken, If any, Result Of There</label>
<div class="col-sm-9">
<input type="text" class="form-control" id="action_taken">
</div>
</div>
<div class="line"></div>
</form>
<br>
<center>
<button id="reset_button" class="btn btn-secondary">Cancel</button>
<button id="submit_button" class="btn btn-primary">Save</button>
</center>
</div>
</div>
</div>
</div>
<footer class="main-footer">
<div class="container-fluid">
<div class="row">
<div class="col-sm-6">
<p>Integration © 2017-2019</p>
</div>
<div class="col-sm-6 text-right">
<p>Design by Integration</p>
<!-- Please do not remove the backlink to us unless you support further theme's development at https://bootstrapious.com/donate. It is part of the license conditions. Thank you for understanding :)-->
</div>
</div>
</div>
</footer>
</div>
</div>
</div>
<!-- Javascript files-->
<script src="js/jquery-3.2.1.min.js"></script>
<script src="vendor/popper.js/umd/popper.min.js"></script>
<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
<script src="vendor/jquery.cookie/jquery.cookie.js"></script>
<script src="vendor/jquery-validation/jquery.validate.min.js"></script>
<script src="js/Chart.min.js"></script>
<script src="js/front.js"></script>
<script>
$(document).ready(function() {
$("#loader").hide();
$("#form_54").hide();
$("#p_s_name").on('change',function(){
$.ajax({
type : "POST",
url : "select_fir_number.php",
data : "fir_number=" + this.value,
dataType: 'json',
beforeSend: function(){
$("#loader").show(500);
},
success:function(data){
$("#form_54").show(500);
$("#find_fir").hide(500);
$("#fir_no").val(data[0]);
$("#date").val(data[1]);
$("#place").val(data[2]);
$("#time").val(data[3]);
$("#injured_a").val(data[4]);
$("#injured_n").val(data[5]);
$("#loader").hide(500);
}
});
});
$("#veh_no").on('change',function(){
$.ajax({
type: "POST",
url: "police_select_veh.php",
data: "veh_no=" + this.value,
dataType: "json",
success:function(data){
$("#veh_type").val(data[0]);
$("#veh_owner").val(data[1]);
$("#veh_address").val(data[2]);
$("#veh_eng").val(data[3]);
$("#veh_cha").val(data[4]);
}
});
});
});
</script>
</body>
</html>