This repository has been archived by the owner on Apr 23, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
evidences.php
executable file
·592 lines (511 loc) · 29 KB
/
evidences.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
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<?php
session_start();
if(!isset($_SESSION['officer_id'])&& !isset($_SESSION['case_id']))
{
header('Location: ./officer_dashboard.php');
exit();
}
$case_id=$_SESSION['case_id'];
$officer_id=$_SESSION['officer_id'];
require_once('./checkings/dbcon.php');
?>
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags-->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="au theme template">
<meta name="author" content="Hau Nguyen">
<meta name="keywords" content="au theme template">
<!-- Title Page-->
<title>Evidences</title>
<!-- Fontfaces CSS-->
<link href="css/font-face.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-4.7/css/font-awesome.min.css" rel="stylesheet" media="all">
<link href="vendor/font-awesome-5/css/fontawesome-all.min.css" rel="stylesheet" media="all">
<link href="vendor/mdi-font/css/material-design-iconic-font.min.css" rel="stylesheet" media="all">
<!-- Bootstrap CSS-->
<link href="vendor/bootstrap-4.1/bootstrap.min.css" rel="stylesheet" media="all">
<!-- Vendor CSS-->
<link href="vendor/animsition/animsition.min.css" rel="stylesheet" media="all">
<link href="vendor/bootstrap-progressbar/bootstrap-progressbar-3.3.4.min.css" rel="stylesheet" media="all">
<link href="vendor/wow/animate.css" rel="stylesheet" media="all">
<link href="vendor/css-hamburgers/hamburgers.min.css" rel="stylesheet" media="all">
<link href="vendor/slick/slick.css" rel="stylesheet" media="all">
<link href="vendor/select2/select2.min.css" rel="stylesheet" media="all">
<link href="vendor/perfect-scrollbar/perfect-scrollbar.css" rel="stylesheet" media="all">
<!-- Main CSS-->
<link href="css/theme.css" rel="stylesheet" media="all">
<style>
.nodisplay {
display: none;
}
</style>
</head>
<body class="animsition">
<div class="page-wrapper">
<!-- HEADER MOBILE-->
<header class="header-mobile d-block d-lg-none">
<div class="header-mobile__bar">
<div class="container-fluid">
<div class="header-mobile-inner">
<a class="logo" href="index.php">
<img src="images/icon/logo.png" alt="CoolAdmin" />
</a>
<button class="hamburger hamburger--slider" type="button">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
</span>
</button>
</div>
</div>
</div>
</header>
<!-- END HEADER MOBILE-->
<!-- MENU SIDEBAR-->
<aside class="menu-sidebar d-none d-lg-block">
<div class="logo">
<a href="./officer_dashboard.php">
<img src="images/icon/logo.png" alt="Cool Admin" />
</a>
</div>
<div class="menu-sidebar__content js-scrollbar1">
<nav class="navbar-sidebar">
<ul class="list-unstyled navbar__list">
<li class="has-sub">
<a class="js-arrow" href="suspects.php">
<i class="fas fa-search"></i>Suspects</a>
</li>
<li>
<a href="casehistory.php">
<i class="fas fa-calendar"></i>Case History</a>
</li>
<li>
<a href="criminalrecords.php">
<i class="fas fa-book"></i>Criminal Records</a>
</li>
<li>
<a href="primesuspect.php">
<i class="fas fa-book"></i>Prime suspect</a>
</li>
</ul>
</nav>
</div>
</aside>
<!-- END MENU SIDEBAR-->
<!-- PAGE CONTAINER-->
<div class="page-container">
<!-- HEADER DESKTOP-->
<header class="header-desktop">
<div class="section__content section__content--p30">
<div class="container-fluid">
<div class="header-wrap">
<input class="au-input au-input--xl nodisplay" type="text" name="search"
placeholder="Search for datas & reports..." />
<?php echo '<h4>CASE ID: '.$case_id.'</h4>'?>
</button>
<div class="header-button">
<div class="noti-wrap">
<div class="noti__item js-item-menu nodisplay">
<i class="zmdi zmdi-comment-more"></i>
<span class="quantity">1</span>
<div class="mess-dropdown js-dropdown">
<div class="mess__title">
<p>You have 2 news message</p>
</div>
<div class="mess__item">
<div class="image img-cir img-40">
<img src="images/icon/avatar-06.jpg" alt="Michelle Moreno" />
</div>
<div class="content">
<h6>Michelle Moreno</h6>
<p>Have sent a photo</p>
<span class="time">3 min ago</span>
</div>
</div>
<div class="mess__item">
<div class="image img-cir img-40">
<img src="images/icon/avatar-04.jpg" alt="Diane Myers" />
</div>
<div class="content">
<h6>Diane Myers</h6>
<p>You are now connected on message</p>
<span class="time">Yesterday</span>
</div>
</div>
<div class="mess__footer">
<a href="#">View all messages</a>
</div>
</div>
</div>
<div class="noti__item js-item-menu nodisplay">
<i class="zmdi zmdi-email"></i>
<span class="quantity">1</span>
<div class="email-dropdown js-dropdown">
<div class="email__title">
<p>You have 3 New Emails</p>
</div>
<div class="email__item">
<div class="image img-cir img-40">
<img src="images/icon/avatar-06.jpg" alt="Cynthia Harvey" />
</div>
<div class="content">
<p>Meeting about new dashboard...</p>
<span>Cynthia Harvey, 3 min ago</span>
</div>
</div>
<div class="email__item">
<div class="image img-cir img-40">
<img src="images/icon/avatar-05.jpg" alt="Cynthia Harvey" />
</div>
<div class="content">
<p>Meeting about new dashboard...</p>
<span>Cynthia Harvey, Yesterday</span>
</div>
</div>
<div class="email__item">
<div class="image img-cir img-40">
<img src="images/icon/avatar-04.jpg" alt="Cynthia Harvey" />
</div>
<div class="content">
<p>Meeting about new dashboard...</p>
<span>Cynthia Harvey, April 12,,2018</span>
</div>
</div>
<div class="email__footer">
<a href="#">See all emails</a>
</div>
</div>
</div>
<div class="noti__item js-item-menu nodisplay">
<i class="zmdi zmdi-notifications"></i>
<span class="quantity">3</span>
<div class="notifi-dropdown js-dropdown">
<div class="notifi__title">
<p>You have 3 Notifications</p>
</div>
<div class="notifi__item">
<div class="bg-c1 img-cir img-40">
<i class="zmdi zmdi-email-open"></i>
</div>
<div class="content">
<p>You got a email notification</p>
<span class="date">April 12, 2018 06:50</span>
</div>
</div>
<div class="notifi__item">
<div class="bg-c2 img-cir img-40">
<i class="zmdi zmdi-account-box"></i>
</div>
<div class="content">
<p>Your account has been blocked</p>
<span class="date">April 12, 2018 06:50</span>
</div>
</div>
<div class="notifi__item">
<div class="bg-c3 img-cir img-40">
<i class="zmdi zmdi-file-text"></i>
</div>
<div class="content">
<p>You got a new file</p>
<span class="date">April 12, 2018 06:50</span>
</div>
</div>
<div class="notifi__footer">
<a href="#">All notifications</a>
</div>
</div>
</div>
</div>
<div class="account-wrap">
<div class="account-item clearfix js-item-menu">
<div class="image">
<img src="images/icon/avatar-01.jpg" alt="John Doe" />
</div>
<div class="content">
<a class="js-acc-btn" href="#"><?php echo $_SESSION['officer_name']; ?></a>
</div>
<div class="account-dropdown js-dropdown">
<div class="info clearfix">
<div class="image">
<a href="#">
<img src="images/icon/avatar-01.jpg" alt="John Doe" />
</a>
</div>
<div class="content">
<h5 class="name">
<a href="#"><?php echo $_SESSION['officer_name']?></a>
</h5>
<span class="email"><?php echo $_SESSION['officer_id'] ?></span>
</div>
</div>
<div class="account-dropdown__footer">
<a href="./checkings/logout.php">
<i class="zmdi zmdi-power"></i>Logout</a>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- END HEADER DESKTOP-->
<!-- MAIN CONTENT-->
<div class="main-content">
<div class="section__content section__content--p30">
<div class="container-fluid">
<?php
if(isset($_GET['err']))
{
if($_GET['err']=='1')
{
echo '<div class="alert alert-danger" role="alert">
Something Went Wrong !!
</div>';
}
else if($_GET['err']=='0')
{
echo '<div class="alert alert-success" role="alert">
Successfully Inserted!!
</div>';
}
}
?>
<div class="row">
<div class="col">
<section class="card" style="background: none;border: 0px;">
<div class="card-body text-secondary">
<button type="button" class="btn btn-primary btn-lg btn-block" id="refresh">Refresh</button>
</div>
</section>
</div>
<div class="col">
<section class="card" style="background: none;border: 0px;">
<div class="card-body text-secondary"><button type="button"
class="btn btn-success btn-lg btn-block" data-toggle="modal"
data-target="#addmodal">Add Entry</button>
</section>
</div>
</div>
<div class="row">
<div class="col-md-12">
<!-- DATA TABLE-->
<div class="table-responsive m-b-40">
<table class="table table-borderless table-data3">
<thead>
<tr>
<th>Eidence NO</th>
<th>Description</th>
<th>Type</th>
<th>Strength</th>
<th>Date</th>
<th>Remarks</th>
</tr>
</thead>
<tbody>
<?php
$sql="SELECT * FROM evidences WHERE Case_Id = '$case_id' AND Officer_Id='$officer_id'";
// echo $sql;
//echo $sql;
// if(isset($_GET['toogle']))
// {
// if($_GET['toogle']=='1')
// {
// $sql="SELECT * FROM `evidences` WHERE Case_Id = $case_id AND Officer_Id=$officer_id order by E_No";
// }
// }
$result = mysqli_query($conn, $sql);
if(mysqli_num_rows($result)>0)
{
while($row = mysqli_fetch_assoc($result))
{
// $anchor="<a href=./suspects.php?case=".$row['case']
echo '<tr>';
echo '<td>'.$row['E_No'].'</td>';
echo '<td>'.$row['Description'].'</td>';
echo '<td>'.$row['Type'].'</td>';
echo '<td>'.$row['Strength'].'</td>';
echo '<td>'.$row['Date'].'</td>';
echo '<td>'.$row['Remarks'].'</td>';
echo '</tr>';
}
}
else
{
// echo '<div class="alert alert-warning" role="alert">
// NO assgined Cases yet!!
// </div>';
}
mysqli_close($conn);
?>
<!-- <tr>
<td>2018-09-29 05:57</td>
<td>Mobile</td>
<td>iPhone X 64Gb Grey</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-28 01:22</td>
<td>Mobile</td>
<td>Samsung S8 Black</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-27 02:12</td>
<td>Game</td>
<td>Game Console Controller</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-26 23:06</td>
<td>Mobile</td>
<td>iPhone X 256Gb Black</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-25 19:03</td>
<td>Accessories</td>
<td>USB 3.0 Cable</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-29 05:57</td>
<td>Accesories</td>
<td>Smartwatch 4.0 LTE Wifi</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-24 19:10</td>
<td>Camera</td>
<td>Camera C430W 4k</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr>
<tr>
<td>2018-09-22 00:43</td>
<td>Computer</td>
<td>Macbook Pro Retina 2017</td>
<td>Smartwatch 4.0 LTE Wifi</td>
</tr> -->
</tbody>
</table>
</div>
<!-- END DATA TABLE-->
</div>
</div>
</div>
</div>
</div>
</div>
<!-- END PAGE CONTAINER-->
</div>
<!-- modal large -->
<div class="modal fade" id="addmodal" tabindex="-1" role="dialog" aria-labelledby="largeModalLabel"
aria-hidden="true">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="largeModalLabel"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="container-fluid">
<div class="row">
<div class="col-lg-12">
<div class="card">
<div class="card-header">Add Evidence</div>
<div class="card-body">
<div class="card-title">
<h3 class="text-center title-2"></h3>
</div>
<hr>
<form action="./checkings/officer/add_evidences.php" method="post" novalidate="novalidate" enctype="multipart/form-data">
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">Case ID</label>
<?php echo '<input id="cc-pament" name="case_id" type="text" class="form-control" aria-required="true" aria-invalid="false" value='.$case_id.'>' ?>
</div>
<!-- <div class="form-group">
<label for="cc-payment" class="control-label mb-1">Evidence NO</label>
<input id="cc-pament" name="e_no" type="text" class="form-control" aria-required="true" aria-invalid="false" required>
</div> -->
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">Description</label>
<input id="cc-pament" name="description" type="text" class="form-control" aria-required="true" aria-invalid="false" required>
</div>
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">Type </label>
<select name="type" id="">
<option value="logical">Loggical</option>
<option value="physical">Physical</option>
</select> </div>
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">strength</label>
<input id="cc-pament" name="strength" type="text" class="form-control" aria-required="true" aria-invalid="false" required>
</div>
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">Date</label>
<input id="cc-pament" name="date" type="text" class="form-control" placeholder="yyyy-mm-dd"
aria-required="true" aria-invalid="false" required>
</div>
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">image</label>
<input id="cc-pament" name="image" type="file" class="form-control"
aria-required="true" aria-invalid="false" required>
</div>
<div class="form-group">
<label for="cc-payment" class="control-label mb-1">Remarks</label>
<input id="cc-pament" name="remark" type="text" class="form-control"
aria-required="true" aria-invalid="false" required>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary" name="submit">Submit</button>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- end modal large -->
<!-- Jquery JS-->
<script src="vendor/jquery-3.2.1.min.js"></script>
<!-- Bootstrap JS-->
<script src="vendor/bootstrap-4.1/popper.min.js"></script>
<script src="vendor/bootstrap-4.1/bootstrap.min.js"></script>
<!-- Vendor JS -->
<script src="vendor/slick/slick.min.js">
</script>
<script src="vendor/wow/wow.min.js"></script>
<script src="vendor/animsition/animsition.min.js"></script>
<script src="vendor/bootstrap-progressbar/bootstrap-progressbar.min.js">
</script>
<script src="vendor/counter-up/jquery.waypoints.min.js"></script>
<script src="vendor/counter-up/jquery.counterup.min.js">
</script>
<script src="vendor/circle-progress/circle-progress.min.js"></script>
<script src="vendor/perfect-scrollbar/perfect-scrollbar.js"></script>
<script src="vendor/chartjs/Chart.bundle.min.js"></script>
<script src="vendor/select2/select2.min.js">
</script>
<!-- Main JS-->
<script src="js/main.js"></script>
<?php
echo "<script>
document.getElementById('refresh').addEventListener('click',function(e){
document.location='evidences.php';
})
</script>"
?>
</body>
</html>
<!-- end document-->