This repository has been archived by the owner on Mar 10, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 71
/
civilian.php
1102 lines (1065 loc) · 42 KB
/
civilian.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
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?php
/**
Open source CAD system for RolePlaying Communities.
Copyright (C) 2017 Shane Gill
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program comes with ABSOLUTELY NO WARRANTY; Use at your own risk.
**/
if(session_id() == '' || !isset($_SESSION)) {
// session isn't started
session_start();
}
include_once(__DIR__."/oc-config.php");
include_once(__DIR__."/oc-functions.php");
include(__DIR__."/actions/civActions.php");
include(__DIR__."/actions/publicFunctions.php");
include(__DIR__."/actions/generalActions.php");
if (!empty($_SESSION['logged_in']))
{
$name = $_SESSION['name'];
$uid = $_SESSION['id'];
}
$civName = $civDob = $civAddr = "";
$good911 = "";
if(isset($_SESSION['good911']))
{
$good911 = $_SESSION['good911'];
unset($_SESSION['good911']);
}
$identityMessage = "";
if(isset($_SESSION['identityMessage']))
{
$identityMessage = $_SESSION['identityMessage'];
unset($_SESSION['identityMessage']);
}
$plateMessage = "";
if(isset($_SESSION['plateMessage']))
{
$plateMessage = $_SESSION['plateMessage'];
unset($_SESSION['plateMessage']);
}
$nameMessage = "";
if(isset($_SESSION['nameMessage']))
{
$nameMessage = $_SESSION['nameMessage'];
unset($_SESSION['nameMessage']);
}
$weaponMessage = "";
if(isset($_SESSION['weaponMessage']))
{
$weaponMessage = $_SESSION['weaponMessage'];
unset($_SESSION['weaponMessage']);
}
if(isset($_SESSION['civillian']))
{
if ($_SESSION['civillian'] == 'YES')
{
setDispatcher("1");
}
}
else
{
echo "You do not have permission to be here. Request access to dispatch through your administration.<br />Redirecting to the dashboard...";
sleep(5);
header("Location:".BASE_URL);
die();
}
?>
<!DOCTYPE html>
<html lang="en">
<?php include "./oc-includes/header.inc.php"; ?>
<body class="nav-md">
<div class="container body">
<div class="main_container">
<div class="col-md-3 left_col">
<div class="left_col scroll-view">
<div class="navbar nav_title" style="border: 0;">
<a href="javascript:void(0)" class="site_title"><i class="fas fa-user"></i> <span>
Civilian</span></a>
</div>
<div class="clearfix"></div>
<!-- menu profile quick info -->
<div class="profile clearfix">
<div class="profile_pic">
<img src="<?php echo get_avatar() ?>" alt="..." class="img-circle profile_img">
</div>
<div class="profile_info">
<span>Welcome,</span>
<h2><?php echo $name;?></h2>
</div>
<div class="clearfix"></div>
</div>
<!-- /menu profile quick info -->
<br />
<!-- sidebar menu -->
<div id="sidebar-menu" class="main_menu_side hidden-print main_menu">
<div class="menu_section">
<h3>General</h3>
<ul class="nav side-menu">
<li class="active">
<a><i class="fas fa-home"></i> Home</a>
<ul class="nav child_menu" style="display: block;">
<li class="current-page"><a href="javascript:void(0)">Civilian Dashboard</a>
</li>
</ul>
</li>
<?php
if (CIV_WARRANT === true) { ?> <li>
<a><i class="fas fa-warning"></i> Warrants <span
class="fas fa-chevron-down"></span></a>
<ul class="nav child_menu">
<li><a type="button" data-toggle="modal" data-target="#createWarrant">
Create Warrants</a></li>
<li><a type="button" data-toggle="modal" data-target="#viewWarrant"> View
Warrants</a></li>
</ul>
</li>
<?php } else { ?>
<?php } ?>
<li><a type="button" data-toggle="modal" data-target="#newCall"> <i
class="fas fa-phone"></i> Create a Call</a></li>
<?php
if ( CIV_LIMIT_MAX_IDENTITIES == 0 ) {
echo '<li><a type="button" data-toggle="modal" data-target="#createIdentityModal"><i class="fas fa-user-alt"></i> Add New Identity</a></li>';
} else if ( CIV_LIMIT_MAX_IDENTITIES > getNumberOfProfiles() ) {
echo '<li><a type="button" data-toggle="modal" data-target="#createIdentityModal"><i class="fas fa-user-alt"></i> Add New Identity</a></li>';
} else {/* Do Nothing. */}
if ( CIV_LIMIT_MAX_VEHICLES == 0 ) {
echo '<li><a type="button" data-toggle="modal" data-target="#createPlateModal"> <i class="fas fa-car"></i> Add New Plate</a></li>';
} else if ( CIV_LIMIT_MAX_VEHICLES > getNumberOfVehicles() ) {
echo '<li><a type="button" data-toggle="modal" data-target="#createPlateModal"> <i class="fas fa-car"></i> Add New Plate</a></li>';
} else {/* Do Nothing. */}
if ( CIV_LIMIT_MAX_WEAPONS == 0 ) {
echo '<li><a type="button" data-toggle="modal" data-target="#createWeaponModal">Add New Weapon</a></li>';
} else if ( CIV_LIMIT_MAX_WEAPONS > getNumberOfWeapons() ) {
echo '<li><a type="button" data-toggle="modal" data-target="#createWeaponModal">Add New Weapon</a></li>';
} else {/* Do Nothing. */}
?>
</ul>
</div>
<!-- ./ menu_section -->
</div>
<!-- /sidebar menu -->
<!-- /menu footer buttons -->
<div class="sidebar-footer hidden-small">
<a data-toggle="tooltip" data-placement="top" title="Go to Dashboard"
href="<?php echo BASE_URL; ?>/dashboard.php">
<span class="fas fa-clipboard-list" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="FullScreen"
onClick="toggleFullScreen()">
<span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="Need Help?"
href="https://guides.opencad.io/">
<span class="fas fa-info-circle" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="Logout"
href="<?php echo BASE_URL; ?>/actions/logout.php?responder=<?php echo $_SESSION['identifier'];?>">
<span class="fas fa-sign-out-alt" aria-hidden="true"></span>
</a>
</div>
<!-- /menu footer buttons -->
</div>
</div>
<!-- top navigation -->
<div class="top_nav">
<div class="nav_menu">
<nav>
<div class="nav toggle">
<a id="menu_toggle"><i class="fas fa-bars"></i></a>
</div>
<ul class="nav navbar-nav navbar-right">
<li class="">
<a href="javascript:;" class="user-profile dropdown-toggle" data-toggle="dropdown"
aria-expanded="false">
<img src="<?php echo get_avatar() ?>" alt=""><?php echo $_SESSION['name']; ?>
<span class=" fa fa-angle-down"></span>
</a>
<ul class="dropdown-menu dropdown-usermenu pull-right">
<li><a href="<?php echo BASE_URL; ?>/profile.php"><i
class="fas fa-user pull-right"></i> My Profile</a></li>
<li><a
href="<?php echo BASE_URL; ?>/actions/logout.php?responder=<?php echo $_SESSION['identifier'];?>"><i
class="fas fa-sign-out-alt pull-right"></i> Log Out</a></li>
<span class="glyphicon glyphicon-log">
</ul>
</li>
</ul>
</nav>
</div>
</div>
<!-- /top navigation -->
<!-- page content -->
<div class="right_col" role="main">
<div class="">
<div class="page-title">
<div class="title_left">
<h3>Civilian Console</h3>
<p>(Not <?php echo $name;?>?, <a
href="<?php echo BASE_URL; ?>/actions/logout.php?responder=<?php echo $_SESSION['identifier'];?>">Log
Out</a>)
<?php echo $good911;?>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel" id="name_panel">
<div class="x_title">
<h2>My Identities</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fasfa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fasfa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<!-- ./ x_title -->
<div class="x_content">
<?php echo $nameMessage;?>
<?php echo $identityMessage;?>
<?php ncicGetNames();?>
</div>
<!-- ./ x_content -->
<!-- ./ x_panel -->
</div>
</div>
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel" id="plate_panel">
<div class="x_title">
<h2>My Vehicles</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fasfa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fasfa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<!-- ./ x_title -->
<div class="x_content">
<?php echo $plateMessage;?>
<?php ncicGetPlates();?>
</div>
<!-- ./ x_content -->
</div>
<!-- ./ x_panel -->
</div>
<!-- ./ col-md-12 col-sm-12 col-xs-12 -->
</div>
<div class="clearfix"></div>
<div class="row">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel" id="plate_panel">
<div class="x_title">
<h2>My Weapons</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fasfa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fasfa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<!-- ./ x_title -->
<div class="x_content">
<?php echo $weaponMessage;?>
<?php ncicGetWeapons();?>
</div>
<!-- ./ x_content -->
</div>
<!-- ./ x_panel -->
</div>
<!-- ./ col-md-12 col-sm-12 col-xs-12 -->
</div>
<!-- ./ row -->
<!-- ./ row -->
<!-- ./ col-md-6 col-sm-6 col-xs-6 -->
</div>
<!-- ./ row -->
</div>
<!-- "" -->
</div>
<!-- /page content -->
<!-- footer content -->
<footer>
<div class="pull-right">
<?php echo COMMUNITY_NAME;?> CAD System | <?php pageLoadTime(); ?>
</div>
<div class="clearfix"></div>
</footer>
<!-- /footer content -->
</div>
</div>
<!-- modals -->
<!-- Create 911 Call Modal -->
<div class="modal fade" id="newCall" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="closeNewCall"><span
aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Create Call</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form id="new_911" method="post" action="<?php echo BASE_URL; ?>/actions/civActions.php">
<div class="form-group row">
<label class="col-md-2 control-label">Caller Name</label>
<div class="col-md-10">
<input type="text" name="911_caller" class="form-control" id="911_caller"
required />
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group row -->
<div class="form-group row">
<label class="col-md-2 control-label">Location</label>
<div class="col-md-10">
<input type="text" name="911_location" class="form-control" id="911_location"
required />
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group row -->
<div class="form-group row">
<label class="col-md-2 control-label"><span>Description <a data-toggle="modal"
href="#911CallHelpModal"><i
class="fasfa-question-circle"></i></a></span></label>
<div class="col-md-10">
<textarea id="911_description" name="911_description" class="form-control"
style="resize:none;" rows="4"></textarea>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group row -->
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input type="submit" class="btn btn-primary" name="new_911" value="Submit 911 Call" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<!-- Create Warrant Modal -->
<div class="modal fade" id="createWarrant" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="closeNewCall"><span
aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Warrant Creator</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form role="form" action="<?php echo BASE_URL; ?>/actions/civActions.php" method="post">
<div class="form-group row">
<label class="col-lg-2 control-label">Civilian Name</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="civilian_names" id="civilian_names"
data-live-search="true" required>
<option> </option>
<?php getCivilianNamesOwn();?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Warrant Name</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="warrant_name_sel" id="warrant_name_sel" data-live-search="true" title="Select a Warrant">
<?php getDataSetTable($dataSet = "warrant_types", $column1 = "id", $column2 = "warrant_description", $leadTrim = 17, $followTrim = 11, $isVeh="", $isRegistration=""); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Issuing Agency</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="issuing_agency" id="issuing_agency" data-live-search="true" required>
<?php getDataSetTable($dataSet = "departments", $column1 = "department_long_name", $column2 = "department_short_name", $leadTrim = 17, $followTrim = 11, $isVeh, $isRegistration); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input name="create_warrant" type="submit" class="btn btn-primary" value="Create" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<!-- View Warrant Modal -->
<div class="modal fade" id="viewWarrant" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" id="closeNewCall"><span
aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Warrant Viewer</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<div class="col-md-12 col-sm-12 col-xs-12">
<div class="x_panel" id="citation_panel">
<div class="x_title">
<h2>NCIC Warrants</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fasfa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fasfa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<!-- ./ x_title -->
<div class="x_content">
<?php ncic_warrants();?>
</div>
<!-- ./ x_content -->
</div>
<!-- ./ x_panel -->
</div>
<!-- ./ form-group -->
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<div class="modal fade" id="createIdentityModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel">Create Identity</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form role="form" action="<?php echo BASE_URL; ?>/actions/civActions.php" method="post">
<div class="form-group row">
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Name</label>
<div class="col-lg-10">
<input name="civNameReq" class="form-control" id="civNameReq"value="<?php echo $civName;?>" required />
<span class="fasfa-user form-control-feedback right" aria-hidden="true"></span>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Date of Birth</label>
<div class="col-lg-10">
<input type="text" name="civDobReq" class="form-control" id="datepicker" maxlength="10" value="<?php echo $civDob;?>" required />
<span class="fasfa-calendar form-control-feedback right" aria-hidden="true"></span>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Address</label>
<div class="col-lg-10">
<input type="text" name="civAddressReq" class="form-control" id="civAddressReq" value="<?php echo $civAddr;?>" required />
<span class="fasfa-location-arrow form-control-feedback right" aria-hidden="true"></span>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Sex</label>
<div class="col-lg-10">
<select name="civSexReq" class="form-control selectpicker" id="civSexReq"
title="Select a sex" data-live-search="true" required>
<?php getDataSetColumn($table = "ncic_names", $data = "gender", $leadTrim = 11, $followTrim = 16); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Race</label>
<div class="col-lg-10">
<select name="civRaceReq" class="form-control selectpicker civRaceReq_picker" id="civRaceReq" title="Select a race or ethnicity" data-live-search="true" required>
<?php getDataSetColumn($table = "ncic_names", $data = "race", $leadTrim = 9, $followTrim = 19); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Drivers License Status</label>
<div class="col-lg-10">
<select name="civDLStatus" class="form-control selectpicker civDLStatus_picker" id="civBuildReq" title="Select Status" required>
<?php getDataSetColumn($table = "ncic_names", $data = "dl_status", $leadTrim = 25, $followTrim = 35); ?>
</select>
</div>
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Hair Color</label>
<div class="col-lg-10">
<select name="civHairReq" class="form-control selectpicker civHairReq_picker" id="civHairReq"
title="Select a hair color" required>
<?php getDataSetColumn($table = "ncic_names", $data = "hair_color", $leadTrim = 15, $followTrim = 20); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Build</label>
<div class="col-lg-10">
<select name="civBuildReq" class="form-control selectpicker civBuildReq_picker" id="civBuildReq" title="Select a build" required>
<?php getDataSetColumn($table = "ncic_names", $data = "build", $leadTrim = 20, $followTrim = 25); ?>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input name="create_name" type="submit" class="btn btn-primary" value="Create" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
</div>
<!--Edit modal -->
<div class="modal fade" id="editIdentityModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Edit Identity</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form role="form" action="<?php echo BASE_URL; ?>/actions/civActions.php"
class="editname_modalform" method="post">
<div class="form-group row">
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Name</label>
<div class="col-lg-10">
<input name="civNameReq" class="form-control civNameReq" id="civNameReq" value="<?php echo $civName;?>" required />
<span class="fasfa-user form-control-feedback right" aria-hidden="true"></span>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Date of Birth</label>
<div class="col-lg-10">
<input type="text" name="civDobReq" class="form-control civDobReq" id="datepicker2" maxlength="10" value="<?php echo $civDob;?>" readonly />
<span class="fasfa-calendar form-control-feedback right" aria-hidden="true"></span>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Address</label>
<div class="col-lg-10">
<input type="text" name="civAddressReq" class="form-control civAddressReq" id="civAddressReq" value="<?php echo $civAddr;?>" required />
<span class="fasfa-location-arrow form-control-feedback right" aria-hidden="true"></span>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Sex</label>
<div class="col-lg-10">
<select name="civSexReq" class="form-control selectpicker selectpicker3" id="civSexReq" title="Select a sex" data-live-search="true" required>
<?php getDataSetColumn($table = "ncic_names", $data = "gender", $leadTrim = 11, $followTrim = 16); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Race</label>
<div class="col-lg-10">
<select name="civRaceReq" class="form-control selectpicker civRaceReq_picker" id="civRaceReq" title="Select a race or ethnicity" data-live-search="true" required>
<?php getDataSetColumn($table = "ncic_names", $data = "race", $leadTrim = 9, $followTrim = 19); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Hair Color</label>
<div class="col-lg-10">
<select name="civHairReq" class="form-control selectpicker civHairReq_picker" id="civHairReq" title="Select a hair color" required>
<?php getDataSetColumn($table = "ncic_names", $data = "hair_color", $leadTrim = 15, $followTrim = 20); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Build</label>
<div class="col-lg-10">
<select name="civBuildReq" class="form-control selectpicker civBuildReq_picker"id="civBuildReq" title="Select a build" required>
<?php getDataSetColumn($table = "ncic_names", $data = "build", $leadTrim = 20, $followTrim = 25); ?>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Drivers License Status</label>
<div class="col-lg-10">
<select name="civDLStatus" class="form-control selectpicker civDLStatus_picker" id="civBuildReq" title="Select Status" required>
<?php getDataSetColumn($table = "ncic_names", $data = "dl_status", $leadTrim = 25, $followTrim = 35); ?>
</select>
</div>
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input type="hidden" name="Edit_id" value="" class="Editdataid" />
<input name="edit_name" type="submit" class="btn btn-primary" value="Edit" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
</div>
<!-- ./ modal fade bs-example-modal-lg -->
<div class="modal fade" id="createPlateModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Add Plate to Database</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form role="form" action="<?php echo BASE_URL; ?>/actions/civActions.php" method="post">
<div class="form-group row">
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Registered Owner</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="civilian_names" id="civilian_names" data-live-search="true" required>
<option> </option>
<?php getCivilianNamesOwn();?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">License Plate</label>
<div class="col-lg-10">
<input type="text" class="form-control" name="veh_plate" required />
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Make-Model</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="veh_make_model" id="veh_make_model" data-live-search="true" required>
<?php getDataSetTable($dataSet = "vehicles", $column1 = "Make", $column2 = "Model", $leadTrim = 17, $followTrim = 11, $isRegistration = false, $isVehicle = true); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Primary Color</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="veh_pcolor" data-live-search="true"
required>
<option val=""> </option>
<?php getDataSetTable($data = "colors", $column1 = "color_group", $column2 = "color_name", $leadTrim = 17, $followTrim = 22, $veh, $isRegistration); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Secondary Color</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="veh_scolor" data-live-search="true"
required>
<option val=""> </option>
<?php getDataSetTable($data = "colors", $column1 = "color_group", $column2 = "color_name", $leadTrim = 17, $followTrim = 22, $veh, $isRegistration); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle's Registered State</label>
<div class="col-lg-10">
<select class="form-control veh_reg_state_option" name="veh_reg_state" required>
<option></option>
<?php getDataSetColumn($table = "ncic_plates", $data = "veh_reg_state", $leadTrim = 18, $followTrim = 22); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Notes</label>
<div class="col-lg-10">
<input type="text" class="form-control" name="notes" />
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input name="create_plate" type="submit" class="btn btn-primary" value="Create" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<!-- ./ modal fade bs-example-modal-lg -->
<!-- Edit Plate Modal -->
<div class="modal fade" id="editPlateModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Edit Plate in Database</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form role="form" action="<?php echo BASE_URL; ?>/actions/civActions.php" method="post">
<div class="form-group row">
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Registered Owner</label>
<div class="col-lg-10">
<select class="form-control selectpicker civilian_names_picker"
name="civilian_names" id="civilian_names" data-live-search="true" required>
<?php getCivilianNamesOwn();?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">License Plate</label>
<div class="col-lg-10">
<input type="text" class="form-control veh_plate" name="veh_plate" required />
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Make-Model</label>
<div class="col-lg-10">
<select class="form-control selectpicker veh_make_model" name="veh_make_model" id="veh_make_model" data-live-search="true" required>
<?php getDataSetTable($dataSet = "vehicles", $column1 = "Make", $column2 = "Model", $leadTrim = 17, $followTrim = 11, $isRegistration = false, $isVehicle = true); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Primary Color</label>
<div class="col-lg-10">
<select class="form-control selectpicker veh_pcolor" name="veh_pcolor" data-live-search="true" required>
<?php getDataSetTable($data = "colors", $column1 = "color_group", $column2 = "color_name", $leadTrim = 17, $followTrim = 22, $veh = false, $isRegistration = false); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Secondary Color</label>
<div class="col-lg-10">
<select class="form-control selectpicker veh_scolor" name="veh_scolor" data-live-search="true" required>
<?php getDataSetTable($data = "colors", $column1 = "color_group", $column2 = "color_name", $leadTrim = 17, $followTrim = 22, $veh, $isRegistration); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Notes</label>
<div class="col-lg-10">
<input type="text" class="form-control notes" name="notes" />
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle's Registered State</label>
<div class="col-lg-10">
<select class="form-control veh_reg_state_option" name="veh_reg_state" required>
<?php getDataSetColumn($table = "ncic_plates", $data = "veh_reg_state", $leadTrim = 18, $followTrim = 22); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input type="hidden" class="editplateid" name="Edit_plateId" />
<input name="edit_plate" type="submit" class="btn btn-primary" value="Edit" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<!-- ./ modal fade bs-example-modal-lg -->
<!-- modals -->
<div class="modal fade" id="createWeaponModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">Add Weapon to Database</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<form role="form" action="<?php echo BASE_URL; ?>/actions/civActions.php" method="post">
<div class="form-group row">
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Registered Owner</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="civilian_names" id="civilian_names"
data-live-search="true" required>
<option> </option>
<?php getCivilianNamesOwn();?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Weapon Type-Name</label>
<div class="col-lg-10">
<select class="form-control selectpicker" name="weapon_all" id="weapon_all" data-live-search="true" required>
<option> </option>
<?php getDataSetTable($data = "weapons", $column1 = "weapon_type", $column2 = "weapon_name", $leadTrim = 17, $followTrim = 22, $veh, $isRegistration); ?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Notes</label>
<div class="col-lg-10">
<input type="text" class="form-control" name="weapon_notes" />
</div>
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<input name="create_weapon" type="submit" class="btn btn-primary" value="Create" />
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</form>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<!-- ./ modal fade bs-example-modal-lg -->
<!-- 911 Call Help Modal -->
<div class="modal fade" id="911CallHelpModal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span>
</button>
<h4 class="modal-title" id="myModalLabel">How to Submit a 911 Call</h4>
</div>
<!-- ./ modal-header -->
<div class="modal-body">
<span>
<p><b>Where, What, Who, When, How, Why if available are the primary things to provide to a
911 dispatcher.</b></p>
<p>Some things to consider reporting:</p>
<p>
<ul>
<li>Your name</li>
<li>Address responders need to go to</li>
<li>Any weapons?</li>
<li>Age of suspect(s) or victim(s)</li>
<li>Height and Weight of suspect(s)</li>
<li>Clothing description of suspect(s)</li>
<li>Drug use (current or past, includes perscription medications) of any victim(s)
</li>
<li>Any prior violent behavior</li>
<li>Any prior information about psychosis, delusions, hallucinations or other mental
health considerations</li>
</ul>
</p>
</span>
</div>
<!-- ./ modal-body -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
<!-- ./ modal-footer -->
</div>
<!-- ./ modal-content -->
</div>
<!-- ./ modal-dialog modal-lg -->
</div>
<!-- ./ modal fade bs-example-modal-lg -->
<?php include "./oc-includes/jquery-colsolidated.inc.php"; ?>
<script>
$('#civilianDetailsModal').on('show.bs.modal', function(e) {
var $modal = $(this),
civId = e.relatedTarget.id;
$.ajax({
cache: false,
type: 'GET',
url: './actions/civActions.php',