forked from opencad-community/OpenCAD-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
civilian.php
1342 lines (1306 loc) · 61.9 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.
**/
session_start();
require("./oc-config.php");
include("./actions/civActions.php");
include("./actions/api.php");
// TODO: Verify user has permission to be on this page
if (empty($_SESSION['logged_in']))
{
header('Location: ./index.php');
die("Not logged in");
}
else
{
$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']);
}
?>
<!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="fa fa-tachometer"></i> <span><?php echo COMMUNITY_NAME;?> 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="fa fa-home"></i> Home <span class="fa fa-chevron-down"></span></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="fa fa-warning"></i> Warrants <span class="fa 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 }
?>
</ul>
</div>
<!-- ./ menu_section -->
</div>
<!-- /sidebar menu -->
<!-- /menu footer buttons -->
<div class="sidebar-footer hidden-small">
<!--
—— Left in for user settings. To be introduced later. Probably after RC1. ——
<a data-toggle="tooltip" data-placement="top">
<span class="glyphicon glyphicon-cog" aria-hidden="true"></span>
</a>-->
<a data-toggle="tooltip" data-placement="top">
<span class="glyphicon glyphicon-fullscreen" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="Go to Dashboard" href="<?php echo BASE_URL; ?>/dashboard.php">
<span class="glyphicon glyphicon-th" aria-hidden="true"></span>
</a>
<a data-toggle="tooltip" data-placement="top" title="Logout" href="<?php echo BASE_URL; ?>/actions/logout.php">
<span class="glyphicon glyphicon-off" 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="fa 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">My Profile</a></li>
<li><a href="<?php echo BASE_URL; ?>/actions/logout.php?responder=<?php echo $_SESSION['identifier'];?>"><i class="fa fa-sign-out 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>CAD Civilian</h3>
</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="fa fa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fa fa-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 -->
<div class="x_footer">
<button class="btn btn-primary" name="submitIdentity_btn" type="submit" data-toggle="modal" data-target="#IdentityModal">New Identity</button>
</div>
<!-- ./ 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="fa fa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fa fa-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 class="x_footer">
<button class="btn btn-primary" name="create_plate_btn" type="submit" data-toggle="modal" data-target="#createPlateModal">Create Plate</button>
</div>
<!-- ./ x_footer -->
</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="fa fa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fa fa-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 class="x_footer">
<button class="btn btn-primary" name="create_weapon_btn" type="submit" data-toggle="modal" data-target="#createWeaponModal">Create Weapon</button>
</div>
<!-- ./ x_footer -->
</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 class="col-md-6 col-sm-6 col-xs-6">
<div class="x_panel" id="911_panel">
<div class="x_title">
<h2>New 911 Call</h2>
<ul class="nav navbar-right panel_toolbox">
<li><a class="collapse-link"><i class="fa fa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fa fa-close"></i></a>
</li>
</ul>
<div class="clearfix"></div>
</div>
<!-- ./ x_title -->
<div class="x_content">
<?php echo $good911;?>
<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="fa fa-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>
<!-- ./ x_content -->
<div class="x_footer">
<button type="reset" class="btn btn-default" value="Reset">Reset</button>
<input type="submit" class="btn btn-primary" name="new_911" value="Submit 911 Call"/>
</div>
<!-- ./ x_footer -->
</form>
</div>
<!-- ./ x_panel -->
</div>
<!-- ./ 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
</div>
<div class="clearfix"></div>
</footer>
<!-- /footer content -->
</div>
</div>
<!-- modals -->
<!-- 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">
<optgroup label="Violent Warrants (60 day expiry)">
<option value="1st Degree Murder">1st Degree Murder</option>
<option value="2nd Degree Murder">2nd Degree Murder</option>
<option value="3rd Degree Murder">3rd Degree Murder</option>
<option value="Attempted Murder">Attempted Murder</option>
<option value="Kidnapping">Kidnapping</option>
<option value="Attempted Kidnapping">Attempted Kidnapping</option>
<option value="Hostage Taking">Hostage Taking</option>
<option value="Bank/Fed Robbery">Bank/Fed Robbery</option>
<option value="Terroristic Activity">Terroristic Activity</option>
<option value="Terroristic Threats">Terroristic Threats</option>
<option value="JailBreak">JailBreak</option>
<option value="Robbery">Robbery</option>
<option value="Grand Theft Auto">Grand Theft Auto</option>
<option value="Burglary">Burglary</option>
<option value="Threatening an Official">Threatening an Official</option>
<option value="Sexual Assault">Sexual Assault</option>
<option value="Hate Crime">Hate Crime</option>
<option value="Assault">Assault</option>
<option value="Conspiracy">Conspiracy</option>
<option value="Drug Trafficking">Drug Trafficking</option>
<option value="Evasion/Fleeing/Eluding">Evasion/Fleeing/Eluding</option>
<option value="Felony Evading">Felony Evading</option>
<option value="Resisting Arrest">Resisting Arrest</option>
<option value="Firearm in City Limits">Firearm in City Limits</option>
<option value="Firearm by Felon">Firearm by Felon</option>
<option value="Unlicensed Firearm">Unlicensed Firearm</option>
<option value="Firearm Discharge in City Limits">Firearm Discharge in City Limits</option>
<option value="Illegal Weapon">Illegal Weapon</option>
<option value="Illegal Magazine">Illegal Magazine</option>
<option value="Concealed Carry Rifle">Concealed Carry Rifle</option>
<option value="Failure to Inform">Failure to Inform</option>
</optgroup>
<optgroup label="Non-Violent Warrants (30 day expiry)">
<option value="FTA: Lewd Conduct">FTA: Lewd Conduct</option>
<option value="FTA: DUI/DWI">FTA: DUI/DWI</option>
<option value="FTA: Fraud">FTA: Fraud</option>
<option value="FTA: Hit and Run">FTA: Hit and Run</option>
<option value="FTA: Speeding">FTA: Speeding</option>
<option value="FTA: Reckless Driving">FTA: Reckless Driving</option>
<option value="FTA: Obstruction of Justice">FTA: Obstruction of Justice</option>
<option value="FTA: Verbal Abuse">FTA: Verbal Abuse</option>
<option value="FTA: Bribery">FTA: Bribery</option>
<option value="FTA: Disorderly Conduct">FTA: Disorderly Conduct</option>
<option value="FTA: Drug Posession">FTA: Drug Posession</option>
<option value="FTA: Trespassing">FTA: Trespassing</option>
<option value="FTA: Excessive Noise">FTA: Excessive Noise</option>
<option value="FTA: Failure to Identify">FTA: Failure to Identify</option>
<option value="FTA: Stalking">FTA: Stalking</option>
<option value="FTA: Public Intoxication">FTA: Public Intoxication</option>
</optgroup>
</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>
<option> </option>
<?php getAgencies();?>
</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="fa fa-chevron-up"></i></a>
</li>
<li><a class="close-link"><i class="fa fa-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="IdentityModal" 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="fa fa-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="fa fa-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="fa fa-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 getGenders();?>
</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" id="civRaceReq" title="Select a race or ethnicity" required>
<option val="indian">American Indian or Alaskan Native</option>
<option val="asian">Asian</option>
<option val="black">Black or African American</option>
<option val="hispanic">Hispanic</option>
<option val="hawaiian">Native Hawaiian or Other Pacific Islander</option>
<option val="white">White</option>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">License Status</label>
<div class="col-lg-10">
<select name="civDL" class="form-control selectpicker" id="civDL" title="Select a license status" required>
<option value="Valid"> Valid </option>
<option value="Suspended"> Suspended </option>
<option value="Expired"> Expired </option>
</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" id="civHairReq" title="Select a hair color" required>
<option val="bld">Bald</option>
<option val="blk">Black</option>
<option val="bln">Blond or Strawberry</option>
<option val="blu">Blue</option>
<option val="bro">Brown</option>
<option val="gry">Gray or Partially Gray</option>
<option val="grn">Green</option>
<option val="ong">Orange</option>
<option val="pnk">Pink</option>
<option val="ple">Purple</option>
<option val="red">Red or Auburn</option>
<option val="sdy">Sandy</option>
<option val="whi">White</option>
</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" id="civBuildReq" title="Select a build" required>
<option val="Average">Average</option>
<option val="Fit">Fit</option>
<option val="Muscular">Muscular</option>
<option val="Overweight">Overweight</option>
<option val="Skinny">Skinny</option>
<option val="Thin">Thin</option>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Weapon Status</label>
<div class="col-lg-10">
<select name="civWepStat" class="form-control selectpicker" id="civWepStat" title="Select a status" required>
<option val="Obtained">Obtained</option>
<option val="Unobtained">Unobtained</option>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Deceased</label>
<div class="col-lg-10">
<select name="civDec" class="form-control selectpicker" id="civDec" title="Are you deceased?" required>
<option val="Yes">Yes</option>
<option val="No">No</option>
</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="IdentityEditModal" 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" id="civNameReq" value="<?php echo $civName;?>" required/>
<span class="fa fa-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="datepicker2" maxlength="10" value="<?php echo $civDob;?>" required/>
<span class="fa fa-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="fa fa-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 getGenders();?>
</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" required>
<option val="indian">American Indian or Alaskan Native</option>
<option val="asian">Asian</option>
<option val="black">Black or African American</option>
<option val="hispanic">Hispanic</option>
<option val="hawaiian">Native Hawaiian or Other Pacific Islander</option>
<option val="white">White</option>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">License Status</label>
<div class="col-lg-10">
<select name="civDL" class="form-control selectpicker civDL_picker" id="civDL" title="Select a license status" required>
<option value="Valid"> Valid </option>
<option value="Suspended"> Suspended </option>
<option value="Expired"> Expired </option>
</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>
<option val="bld">Bald</option>
<option val="blk">Black</option>
<option val="bln">Blond or Strawberry</option>
<option val="blu">Blue</option>
<option val="bro">Brown</option>
<option val="gry">Gray or Partially Gray</option>
<option val="grn">Green</option>
<option val="ong">Orange</option>
<option val="pnk">Pink</option>
<option val="ple">Purple</option>
<option val="red">Red or Auburn</option>
<option val="sdy">Sandy</option>
<option val="whi">White</option>
</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>
<option val="Average">Average</option>
<option val="Fit">Fit</option>
<option val="Muscular">Muscular</option>
<option val="Overweight">Overweight</option>
<option val="Skinny">Skinny</option>
<option val="Thin">Thin</option>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Weapon Status</label>
<div class="col-lg-10">
<select name="civWepStat" class="form-control civWepStat_picker" id="civWepStat" title="Select a status" required>
<option val="Obtained">Obtained</option>
<option val="Unobtained">Unobtained</option>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</div>
<div class="form-group row">
<label class="col-lg-2 control-label">Deceased</label>
<div class="col-lg-10">
<select name="civDec" class="form-control civDec_picker" id="civDec" title="Are you deceased?" required>
<option val="Yes">Yes</option>
<option val="No">No</option>
</select>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
</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>
<option> </option>
<?php getVehicle();?>
</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 getColors();?>
</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 getColors();?>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Insurance Status</label>
<div class="col-lg-10">
<select class="form-control" name="veh_insurance" required>
<option value=""> </option>
<option value="Valid"> Valid </option>
<option value="Expired"> Expired </option>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<div class="form-group row">
<label class="col-lg-2 control-label">Vehicle Flags</label>
<div class="col-lg-10">
<select class="form-control" name="flags" required>
<option value=""> </option>
<option value="None"> None </option>
<option value="Stolen"> Stolen </option>
<option value="Wanted"> Wanted </option>
<option value="Suspended Registration"> Suspended Registration </option>
</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 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" name="veh_reg_state" required>
<option value""> </option>
<option value"Alabama"> Alabama </option>
<option value"Alaska"> Alaska </option>
<option value"Arizona"> Arizona </option>
<option value"Arkansas"> Arkansas </option>
<option value"California"> California </option>
<option value"Colorado"> Colorado </option>
<option value"Connecticut"> Connecticut </option>
<option value"Delaware"> Delaware </option>
<option value"Florida"> Florida </option>
<option value"Georgia"> Georgia </option>
<option value"Hawaii"> Hawaii </option>
<option value"Idaho"> Idaho </option>
<option value"Illinois"> Illinois </option>
<option value"Indiana"> Indiana </option>
<option value"Iowa"> Iowa </option>
<option value"Kansas"> Kansas </option>
<option value"Kentucky"> Kentucky </option>
<option value"Louisiana"> Louisiana </option>
<option value"Maine"> Maine </option>
<option value"Maryland"> Maryland </option>
<option value"Massachusetts"> Massachusetts </option>
<option value"Michigan"> Michigan </option>
<option value"Minnesota"> Minnesota </option>
<option value"Mississippi"> Mississippi </option>
<option value"Missouri"> Missouri </option>
<option value"Montana"> Montana </option>
<option value"Nebraska"> Nebraska </option>
<option value"Nevada"> Nevada </option>
<option value"New Hampshire"> New Hampshire </option>
<option value"New Jersey"> New Jersey </option>
<option value"New Mexico"> New Mexico </option>
<option value"New York"> New York </option>
<option value"North Carolina"> North Carolina </option>
<option value"North Dakota"> North Dakota </option>
<option value"Ohio"> Ohio </option>
<option value"Oklahoma"> Oklahoma </option>
<option value"Oregon"> Oregon </option>
<option value"Pennsylvania"> Pennsylvania </option>
<option value"Rhode Island"> Rhode Island </option>
<option value"San Andreas"> San Andreas </option>
<option value"South Carolina"> South Carolina </option>
<option value"South Dakota"> South Dakota </option>
<option value"Tennessee"> Tennessee </option>
<option value"Texas"> Texas </option>
<option value"Utah"> Utah </option>
<option value"Vermont"> Vermont </option>
<option value"Virginia"> Virginia </option>
<option value"Washington"> Washington </option>
<option value"West Virginia"> West Virginia </option>
<option value"Wisconsin"> Wisconsin </option>
<option value"Wyoming"> Wyoming </option>
</select>
</div>
<!-- ./ col-sm-9 -->
</div>
<!-- ./ form-group -->
<!-- ./ 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 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 civilian_names_picker" 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>