/
index.php
1469 lines (1346 loc) · 68.4 KB
/
index.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
<? $use_title="Home"; ?>
<?
$_SESSION['selected_doc_type_id']=0;
?>
<? include('header.php') ?>
<?
if(!isset($_POST['search_cust'])) $_POST['search_cust']="";
$user_access=0;
$view_user_access=0;
if(isset($_SESSION['access_level'])) $user_access=$_SESSION['access_level'];
if(isset($_SESSION['view_access_level'])) $view_user_access=$_SESSION['view_access_level'];
if(isset($_GET['id'])) $_POST['id']=$_GET['id'];
if(isset($_POST['id'])) $_GET['id']=$_POST['id'];
if(!isset($_GET['id'])) $_GET['id']=0;
if(!isset($_POST['id'])) $_POST['id']=0;
$message="";
$sql = "
select *
from users
where id = '".sql_friendly($_SESSION['user_id'])."'
";
$data_columns = simple_query($sql);
?>
<?
//echo "<br>U".$_SESSION['selected_user_id']."M".$_SESSION['selected_merchant_id']."S".$_SESSION['selected_store_id']." ... U".$_SESSION['user_id']."M".$_SESSION['merchant_id']."S".$_SESSION['store_id']."<br>";
?>
<div class="column move_box_left">
<div class="portlet left_col sort_tbl" id='portlet_SearchBox'>
<div class="Table_sort_main">
<div class="search_box">
<div class="input-group">
<input type="text" class="form-control" name='search_cust' id='search_cust' value="<?=$_POST['search_cust']?>" placeholder="Search...">
<span class="input-group-btn">
<button class="btn btn-default" type="button" name='search_custs' id='search_custs'><i class="fa fa-search"></i></button>
</span>
</div>
<? if($_SESSION['access_level'] >=90) { ?>
<div style='border:0px black solid;float:right'>
<button type="submit" id='create-merch' name='create-merch' class="btn btn-default add_new_btn" style='margin-left:20px;' onClick='debread_crumb_trail(0); edit_merchant(0,1);'>ADD CUSTOMER</button>
<button type="submit" id='create-store' name='create-store' class="btn btn-default add_new_btn" style='margin-left:20px;' onClick='debread_crumb_trail(2); edit_store_location(0,1);'>ADD STORE</button>
</div>
<? } ?>
<!--<a href="#">advanced search <i class="fa fa-angle-double-right"></i></a>-->
</div>
<div class="clearfix"></div>
<div id='merchant_customers'></div>
<div id="pager" class="pager">
<form style='visibility: hidden;'>
<img src="common/images/first.png" class="first" alt="">
<img src="common/images/prev.png" class="prev" alt="">
<input type="text" class="pagedisplay">
<img src="common/images/next.png" class="next" alt="">
<img src="common/images/last.png" class="last" alt="">
<select class="pagesize">
<option selected="selected" value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
</select>
</form>
</div>
</div>
</div>
<div class="portlet left_col cust_info default_closed" id='portlet_CustInfo'>
<div class="portlet-header">CUSTOMER INFORMATION</div>
<div class="portlet-content">
<table class="table table-striped" id='mrr_merchant_display'>
<tbody>
<tr>
<td>TEMPLATE<br><span id='cust_template'></span></td>
<td>COMPLIANCE PROGRAM TITLE<br><span id='cust_title'></span></td>
</tr>
<tr>
<td>CID #<br><span id='cust_cid'></span></td>
<td>COMPLIANCE PROGRAM SUBTITLE<br><span id='cust_subtitle'></span></td>
</tr>
<tr>
<td colspan="2">LEGAL NAME<br><span id='cust_name'></span></td>
</tr>
<tr class="corp_add">
<td>CORPORATE ADDRESS<br><span id='cust_addr1'></span></td>
<td>CORPORATE PHONE<br><span id='cust_phone'></span></td>
</tr>
<tr class="corp_add">
<td>CORPORATE CITY<br><span id='cust_city'></span></td>
<td>CORPORATE FAX<br><span id='cust_fax'></span></td>
</tr>
<tr class="corp_add">
<td>
<table class="table table-striped internal_table">
<tbody>
<tr><td>CORPORATE STATE<br><span id='cust_state'></span></td></tr>
<tr><td>CORPORATE ZIP<br><span id='cust_zip'></span></td></tr>
</tbody>
</table>
</td>
<td class="pos_rel">CORPORATE LOGO<br><img id='cust_logo' src="images/no-profile-image.png" alt="" width='<?=$user_thumb_width ?>'></td>
<!-- <a id='cust_edit_logo' href="#"><small><i class="fa fa-pencil"></i></small> </a>-->
</tr>
<tr>
<td>
<table class="table table-striped internal_table">
<tbody>
<tr><td>COMPLIANCE OFFICER<br><span id='cust_co'>Kyle Oden</span></td></tr>
<tr><td>CO EMAIL ADDRESS<br><span id='cust_email'>kyle@chavezsuper.com</span></td></tr>
<tr><td>CO PASSWORD<br><span id='cust_pass'>************</span></td></tr>
</tbody>
</table>
</td>
<td class="pos_rel co_photo">CO PHOTO<br><img id='cust_co_image' src="images/no-profile-image.png" alt="" width='<?=$user_thumb_width ?>'></td>
<!-- <a id='cust_edit_photo' href="#"> <small><i class="fa fa-pencil"></i></small></a>-->
</tr>
<tr>
<td colspan='2'>
<?
if($_SESSION['access_level'] >=90)
{
echo "<div class='right_floater'>";
//echo "<input type='button' name='create-new-merchant' id='create-new-merchant' value='Add' onClick='debread_crumb_trail(0); edit_merchant(0,1);' class='btn btn-default add_new_btn'>";
echo "<input type='button' name='archived-in-merchant' id='archived-in-merchant' value='View Archived' onClick='view_merchant_archived();' class='btn btn-default add_new_btn'>";
echo "</div>";
}
?>
<div id='merchant_edit_button'></div>
</td>
</tr>
</tbody>
</table>
<?
//get_merchant_select_box($field,$pre=0,$cd=0,$prompt="",$classy="")
$selbox0=get_merchant_select_box('ms_parent_id',0,0,"","");
//$selbox0="<input type='hidden' name='ms_parent_id' id='ms_parent_id' value='0'> 0";
//get_template_select_box($field,$pre=0,$store=0, $merchant=0,$cd=0,$prompt="",$classy="")
$selbox1=get_template_select_box('ms_template_id',0,0,0,0,"","");
//get_state_select_box($field,$pre="",$cd=0,$prompt="",$classy="")
$selbox2=get_state_select_box('ms_state',"",0,"","");
//get_user_select_box($field,$pre=0,$cd=0,$prompt="",$classy="")
$selbox3=get_user_select_box('ms_co_user_id',0,0,"Select Compliance Officer","");
$selbox4=get_user_select_box('ms_grp_user_id',0,0,"Select Group Manager","");
?>
<!--Form for New Customers -->
<div id='dialog_merchant_form' title='Add/Edit Customer' style='display:none;'>
<p class='validateTips'>*** Customer Legal Name field is required. If left blank, your info will be used as contact info.</p>
<div class='field2'>
<label for='date_date'>Template</label>
<span>
<?=$selbox1 ?>
</span>
</div>
<div class='field2'>
<label for='date_date'>Legal Name</label>
<span>
<input type='text' name='ms_merchant' id='ms_merchant' value='Customer Name' onBlur='quick_fill_program_info()'>
<input type='hidden' name='ms_id' id='ms_id' value='0'>
</span>
</div>
<div class='field2'>
<label for='date_date'>Group</label>
<span>
<?=$selbox0 ?>
</span>
</div>
<div class='field2'>
<label for='date_title'>Program Title</label>
<span>
<input type='text' name='ms_program_title' id='ms_program_title' value="" class='tooltipx' title='Customer or Customer Program Title' placeholder='Company Program Title'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Program Subtitle</label>
<span>
<input type='text' name='ms_program_subtitle' id='ms_program_subtitle' value="" class='tooltipx' title='Customer or Customer Program Subtitle' placeholder='Company Program Subtitle'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Address</label>
<span>
<input type='text' name='ms_address1' id='ms_address1' value="" class='tooltipx' title='Customer or Customer Address' placeholder='Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Address 2</label>
<span>
<input type='text' name='ms_address2' id='ms_address2' value="" class='tooltipx' title='Customer or Customer Address line 2 (optional)' placeholder='Address (line 2)'>
</span>
</div>
<div class='field2'>
<label for='date_title'>City</label>
<span>
<input type='text' name='ms_city' id='ms_city' value="" class='tooltipx' title='Customer or Customer City' placeholder='City'>
</span>
</div>
<div class='field2'>
<label for='date_title'>State</label>
<span>
<?=$selbox2 ?>
</span>
</div>
<div class='field2'>
<label for='date_title'>Zip Code</label>
<span>
<input type='text' name='ms_zip' id='ms_zip' value="" class='tooltipx' title='Customer or Customer Zip Code (XXXXX or XXXXX-XXXX format)' placeholder='Zip'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Corporate Phone</label>
<span>
<input type='text' name='ms_contact_phone3' id='ms_contact_phone3' value="" class='tooltipx' title='Corporate Phone Number' placeholder='Phone'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Corporate Fax#</label>
<span>
<input type='text' name='ms_contact_phone4' id='ms_contact_phone4' value="" class='tooltipx' title='Corporate Fax Number' placeholder='Fax'>
</span>
</div>
<div id='logo_image_holder_holder'></div>
<div class='field2'>
<label> </label>
<span>
<input type='button' name='clear_customer_logo' id='clear_customer_logo' value='Clear Customer Logo' class='btn btn-default add_new_btn' onClick='mrr_clear_cust_store_logo(1,0,0);'>
</span>
</div>
<? if($_SESSION['access_level'] >=70) { ?>
<div class='field2'>
<label for='date_title'>Compliance Officer</label>
<span id='ms_co_user_id_box'>
<?=$selbox3 ?>
</span>
</div>
<div class='field2'>
<label> </label>
<span>
<input type='button' name='create-user-co' id='create-user-co' value='Create CO User' class='btn btn-default add_new_btn'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Group Manager {Optional}</label>
<span id='ms_grp_user_id_box'>
<?=$selbox4 ?>
</span>
</div>
<div class='field2'>
<label> </label>
<span>
<input type='button' name='create-user-gm' id='create-user-gm' value='Create GM User' class='btn btn-default add_new_btn'>
</span>
</div>
<? } else { ?>
<input type='hidden' name='ms_co_user_id' id='ms_co_user_id' value="0">
<input type='hidden' name='ms_grp_user_id' id='ms_grp_user_id' value="0">
<? } ?>
<div class='field2'>
<label for='date_title'>FI Name</label>
<span>
<input type='text' name='ms_contact_title' id='ms_contact_title' value="" class='tooltipx' title='Financial Institution Name' placeholder='Financial Institution Name'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Address</label>
<span>
<input type='text' name='ms_contact_first_name' id='ms_contact_first_name' value="" class='tooltipx' title='FI Mailing Address' placeholder='FI Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Manager</label>
<span>
<input type='text' name='ms_contact_last_name' id='ms_contact_last_name' value="" class='tooltipx' title='FI Relationship Manager' placeholder='FI Relationship Manager'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI E-Mail Address</label>
<span>
<input type='text' name='ms_contact_email' id='ms_contact_email' value="" class='tooltipx' title='FI Relationship Manager E-Mail Address' placeholder='FI E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Cell Phone #</label>
<span>
<input type='text' name='ms_contact_phone1' id='ms_contact_phone1' value="" class='tooltipx' title='FI Relationship Manager Cell Phone Number' placeholder='FI Cell Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Phone #</label>
<span>
<input type='text' name='ms_contact_phone2' id='ms_contact_phone2' value="" class='tooltipx' title='FI Relationship Manager Phone Number' placeholder='FI Phone'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Auditor/Examiner</label>
<span>
<input type='text' name='ms_msb_name' id='ms_msb_name' value="" class='tooltipx' title='MSB Auditor Examiner Name' placeholder='MSB Auditor Examiner Name'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Reference #</label>
<span>
<input type='text' name='ms_msb_ref' id='ms_msb_ref' value="" class='tooltipx' title='MSB Auditor Examiner Reference Number' placeholder='MSB Reference Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Cell #</label>
<span>
<input type='text' name='ms_msb_cell' id='ms_msb_cell' value="" class='tooltipx' title='MSB Auditor Examiner Cell Number' placeholder='MSB Cell Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Phone #</label>
<span>
<input type='text' name='ms_msb_phone' id='ms_msb_phone' value="" class='tooltipx' title='MSB Auditor Examiner Phone Number' placeholder='MSB Phone Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB E-Mail Address</label>
<span>
<input type='text' name='ms_msb_email' id='ms_msb_email' value="" class='tooltipx' title='MSB Auditor Examiner E-Mail Address' placeholder='MSB E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Address</label>
<span>
<input type='text' name='ms_msb_addr' id='ms_msb_addr' value="" class='tooltipx' title='MSB Auditor Examiner Mailing Address' placeholder='MSB Mailing Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Address</label>
<span>
<input type='text' name='ms_irs_addr' id='ms_irs_addr' value="" class='tooltipx' title='IRS Mailing Address' placeholder='IRS Mailing Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Case Control Number</label>
<span>
<input type='text' name='ms_irs_case' id='ms_irs_case' value="" class='tooltipx' title='IRS Case Control Number' placeholder='IRS Case Control Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Agent Name</label>
<span>
<input type='text' name='ms_irs_agent' id='ms_irs_agent' value="" class='tooltipx' title='IRS Agent Name' placeholder='IRS Agent'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Employee ID</label>
<span>
<input type='text' name='ms_irs_employ_id' id='ms_irs_employ_id' value="" class='tooltipx' title='IRS Agent Employee ID' placeholder='IRS Employee ID'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS E-Mail Address</label>
<span>
<input type='text' name='ms_irs_email' id='ms_irs_email' value="" class='tooltipx' title='IRS E-Mail Address' placeholder='IRS E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Phone #</label>
<span>
<input type='text' name='ms_irs_phone' id='ms_irs_phone' value="" class='tooltipx' title='IRS Office Phone Number' placeholder='IRS Phone Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Mobile #</label>
<span>
<input type='text' name='ms_irs_cell' id='ms_irs_cell' value="" class='tooltipx' title='IRS Mobile/Cell Phone' placeholder='IRS Mobile Number'>
</span>
</div>
</div>
</div>
</div>
<div class="portlet left_col store_location default_closed" id='portlet_StoreLocation'>
<div class="portlet-header">STORE LOCATION INFORMATION</div>
<div class="portlet-content">
<table class="table table-striped" id='mrr_store_display'>
<tbody>
<tr>
<td class="pos_rel store_photo">STORE IMAGE<br><img id='store_loc_logo' src="images/no-profile-image.png" alt="" width='<?=$user_thumb_width ?>'></td>
<!--<a id='store_loc_logo_edit' href="#"><small><i class="fa fa-pencil"></i></small> </a>-->
<td>
<table class="table table-striped internal_table">
<tbody>
<tr><td>UID #<br><span id='store_loc_number'></span></td></tr>
<tr><td>DBA NAME<br><span id='store_loc_name'></span></td></tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td>ADDRESS<br><span id='store_loc_addr1'></span><span id='store_loc_addr2'></span></td>
<td>PHONE<br><span id='store_loc_phone'></span></td>
</tr>
<tr>
<td>CITY<br><span id='store_loc_city'></span></td>
<td>ZIP<br><span id='store_loc_zip'></span></td>
</tr>
<tr>
<td>STATE<br><span id='store_loc_state'></span></td>
<td>FAX<br><span id='store_loc_fax'></span></td>
</tr>
<tr class="corp_add">
<td>
<table class="table table-striped internal_table">
<tbody>
<tr><td>COMPLIANCE MANAGER<br><span id='store_loc_cm'></span></td></tr>
<tr><td>EMAIL ADDRESS<br><span id='store_loc_email'></span></td></tr>
<tr><td>CM PASSWORD<br><span id='store_loc_pass'></span></td></tr>
</tbody>
</table>
</td>
<td class="pos_rel cm_photo">CM PHOTO<br><img id='store_loc_image' src="images/no-profile-image.png" alt="" width='<?=$user_thumb_width ?>'></td>
<!--<a id='store_loc_image_edit' href="#"><small><i class="fa fa-pencil"></i></small> </a> -->
</tr>
<tr>
<td colspan='2'>
<div id='store_loc_edit_button'></div>
<?
if($_SESSION['access_level'] >=60)
{ // && ($_SESSION['merchant_id'] > 0 || ($_SESSION['merchant_id']==0 && $_SESSION['selected_merchant_id'] > 0) )
echo "<div class='right_floater'><input type='button' name='create-new-store' id='create-new-store' value='Add' onClick='debread_crumb_trail(2); edit_store_location(0,1);' class='btn btn-default add_new_btn'></div>";
}
?>
</td>
</tr>
<!--
<tr class="corp_add">
<td colspan="2">CM ACCESS</td>
</tr>
<tr class="chbox">
<td>
<input id="cb1" type="checkbox">
<label for="cb1">Compliance Officer</label>
</td>
<td>
<input id="cb2" type="checkbox">
<label for="cb2">Monitoring Logs</label>
</td>
</tr>
<tr class="chbox">
<td>
<input id="cb3" type="checkbox">
<label for="cb3">Compliance Manager</label>
</td>
<td>
<input id="cb4" type="checkbox">
<label for="cb4">Licenses, Registrations, Contracts</label>
</td>
</tr>
<tr class="chbox">
<td>
<input id="cb5" type="checkbox">
<label for="cb5">Financial Institution</label>
</td>
<td>
<input id="cb6" type="checkbox">
<label for="cb6">Legal/ Contracts</label>
</td>
</tr>
<tr class="chbox">
<td>
<input id="cb7" type="checkbox">
<label for="cb7">IRS</label>
</td>
<td>
<input id="cb8" type="checkbox">
<label for="cb8">CTR/ SARs</label>
</td>
</tr>
<tr class="chbox">
<td>
<input id="cb9" type="checkbox">
<label for="cb9">AML Compliance Program</label>
</td>
<td>
<input id="cb10" type="checkbox">
<label for="cb10">Other Documents</label>
</td>
</tr>
<tr class="chbox">
<td>
<input id="cb11" type="checkbox">
<label for="cb11">Independent Review</label>
</td>
<td>
<input id="cb12" type="checkbox">
<label for="cb12">Auditor Folder</label>
</td>
</tr>
-->
</tbody>
</table>
<?
//get_template_select_box($field,$pre=0,$store=0, $merchant=0,$cd=0,$prompt="",$classy="")
$selbox1=get_template_select_box('mst_template_id',0,0,0,0,"Use Customer Template","");
//get_state_select_box($field,$pre="",$cd=0,$prompt="",$classy="")
$selbox2=get_state_select_box('mst_state',"",0,"","");
//get_user_select_box($field,$pre=0,$cd=0,$prompt="",$classy="")
$selbox3=get_user_select_box('mst_cm_user_id',0,0,"Select Compliance Manager","");
?>
<!--Form for New Store Locations -->
<div id='dialog_store_form' title='Add/Edit Store Location' style='display:none;'>
<p class='validateTips'>
*** DBA Name and Store Number fields are required.
<br>
</p>
<div class='field2'>
<label for='date_date'>UID#</label>
<span>
<input type='text' name='mst_store_number' id='mst_store_number' value='' class='tooltipx' title='UID or Store Number' placeholder='UID'>
<input type='hidden' name='mst_merchant_id' id='mst_merchant_id' value='0'>
</span>
</div>
<div class='field2'>
<label> </label>
<span>
<input type='button' name='cust_info_copier' id='cust_info_copier' value='Copy Customer Information' onClick='copy_store_location_from_custom();' class='btn btn-default add_new_btn'>
</span>
</div>
<div class='field2'>
<label for='date_date'>DBA Name</label>
<span>
<input type='text' name='mst_store_name' id='mst_store_name' value='' class='tooltipx' title='DBA or Store Name' placeholder='DBA Name'>
<input type='hidden' name='mst_id' id='mst_id' value='0'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Address</label>
<span>
<input type='text' name='mst_address1' id='mst_address1' value="" class='tooltipx' title='Address of Store Location' placeholder='Store Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Address 2</label>
<span>
<input type='text' name='mst_address2' id='mst_address2' value="" class='tooltipx' title='(Optional) More address info for Store Location' placeholder='Store Address (line 2)'>
</span>
</div>
<div class='field2'>
<label for='date_title'>City</label>
<span>
<input type='text' name='mst_city' id='mst_city' value="" class='tooltipx' title='Store Location City' placeholder='Store City'>
</span>
</div>
<div class='field2'>
<label for='date_title'>State</label>
<span>
<?=$selbox2 ?>
</span>
</div>
<div class='field2'>
<label for='date_title'>Zip Code</label>
<span>
<input type='text' name='mst_zip' id='mst_zip' value="" class='tooltipx' title='Enter Store Location zip code (XXXXX or XXXXX-XXXX format)' placeholder='Store Zip'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Store Phone #</label>
<span>
<input type='text' name='mst_contact_phone3' id='mst_contact_phone3' value="" class='tooltipx' title='Store Phone Number' placeholder='Store Phone'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Store Fax #</label>
<span>
<input type='text' name='mst_contact_phone4' id='mst_contact_phone4' value="" class='tooltipx' title='Store Fax Number' placeholder='Store Fax'>
</span>
</div>
<? if($_SESSION['access_level'] >=50) { ?>
<div class='field2'>
<label for='date_title'>Compliance Manager</label>
<span id='mst_cm_user_id_box'>
<?=$selbox3 ?>
</span>
</div>
<div class='field2'>
<label> </label>
<span>
<input type='button' name='create-user-cm' id='create-user-cm' value='Create CM User' class='btn btn-default add_new_btn'>
</span>
</div>
<? } else { ?>
<input type='hidden' name='mst_cm_user_id' id='mst_cm_user_id' value="0">
<? } ?>
<div id='store_image_holder_holder'></div>
<div class='field2'>
<label> </label>
<span>
<input type='button' name='clear_store_logo' id='clear_store_logo' value='Clear Store Image' class='btn btn-default add_new_btn' onClick='mrr_clear_cust_store_logo(0,1,0);'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Name</label>
<span>
<input type='text' name='mst_contact_title' id='mst_contact_title' value="" class='tooltipx' title='Financial Institution Name' placeholder='Financial Institution Name'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Address</label>
<span>
<input type='text' name='mst_contact_first_name' id='mst_contact_first_name' value="" class='tooltipx' title='FI Mailing Address' placeholder='FI Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Manager</label>
<span>
<input type='text' name='mst_contact_last_name' id='mst_contact_last_name' value="" class='tooltipx' title='FI Relationship Manager' placeholder='Relationship Manager'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI E-Mail Address</label>
<span>
<input type='text' name='mst_contact_email' id='mst_contact_email' value="" class='tooltipx' title='E-Mail Address for Relationship Manager' placeholder='FI E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Cell Phone #</label>
<span>
<input type='text' name='mst_contact_phone1' id='mst_contact_phone1' value="" class='tooltipx' title='Cell Phone Number for Relationship Manager' placeholder='FI Cell'>
</span>
</div>
<div class='field2'>
<label for='date_title'>FI Phone #</label>
<span>
<input type='text' name='mst_contact_phone2' id='mst_contact_phone2' value="" class='tooltipx' title='Alternate Phone for Relationship Manager' placeholder='FI Phone'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Auditor/Examiner</label>
<span>
<input type='text' name='mst_msb_name' id='mst_msb_name' value="" class='tooltipx' title='MSB Auditor Examiner Name' placeholder='MSB Auditor Examiner Name'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Reference #</label>
<span>
<input type='text' name='mst_msb_ref' id='mst_msb_ref' value="" class='tooltipx' title='MSB Auditor Examiner Reference Number' placeholder='MSB Reference Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Cell #</label>
<span>
<input type='text' name='mst_msb_cell' id='mst_msb_cell' value="" class='tooltipx' title='MSB Auditor Examiner Cell Number' placeholder='MSB Cell Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Phone #</label>
<span>
<input type='text' name='mst_msb_phone' id='mst_msb_phone' value="" class='tooltipx' title='MSB Auditor Examiner Phone Number' placeholder='MSB Phone Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB E-Mail Address</label>
<span>
<input type='text' name='mst_msb_email' id='mst_msb_email' value="" class='tooltipx' title='MSB Auditor Examiner E-Mail Address' placeholder='MSB E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>MSB Address</label>
<span>
<input type='text' name='mst_msb_addr' id='mst_msb_addr' value="" class='tooltipx' title='MSB Auditor Examiner Mailing Address' placeholder='MSB Mailing Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Address</label>
<span>
<input type='text' name='mst_irs_addr' id='mst_irs_addr' value="" class='tooltipx' title='IRS Mailing Address' placeholder='IRS Mailing Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>Case Control Number</label>
<span>
<input type='text' name='mst_irs_case' id='mst_irs_case' value="" class='tooltipx' title='IRS Case Control Number' placeholder='IRS Case Control Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Agent Name</label>
<span>
<input type='text' name='mst_irs_agent' id='mst_irs_agent' value="" class='tooltipx' title='IRS Agent Name' placeholder='IRS Agent'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Employee ID</label>
<span>
<input type='text' name='mst_irs_employ_id' id='mst_irs_employ_id' value="" class='tooltipx' title='IRS Agent Employee ID' placeholder='IRS Employee ID'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS E-Mail Address</label>
<span>
<input type='text' name='mst_irs_email' id='mst_irs_email' value="" class='tooltipx' title='IRS E-Mail Address' placeholder='IRS E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Phone #</label>
<span>
<input type='text' name='mst_irs_phone' id='mst_irs_phone' value="" class='tooltipx' title='IRS Office Phone Number' placeholder='IRS Phone Number'>
</span>
</div>
<div class='field2'>
<label for='date_title'>IRS Mobile #</label>
<span>
<input type='text' name='mst_irs_cell' id='mst_irs_cell' value="" class='tooltipx' title='IRS Mobile/Cell Phone' placeholder='IRS Mobile Number'>
</span>
</div>
<div class='field2 mrr_hidden'>
<label for='date_date'>Template</label>
<span>
<?=$selbox1 ?>
</span>
</div>
</div>
</div>
</div>
<div class="portlet left_col edit_user" id='portlet_EditUser'>
<div class="search_box">
<div class="input-group">
<input type="text" class="form-control" name='search_universal' id='search_universal' value="" placeholder="Search...">
<span class="input-group-btn">
<button class="btn btn-default" type="button" name='search_button' id='search_button'><i class="fa fa-search"></i></button>
</span>
</div>
<!--<a href="#">advanced search <i class="fa fa-angle-double-right"></i></a>-->
<? if($_SESSION['access_level'] >=40 && $_SESSION['access_level'] !=45) { ?>
<div style='float:right;'>
<button type="submit" id='create-user' name='create-user' class="btn btn-default add_new_btn">ADD NEW USER</button>
</div>
<? } ?>
</div>
<div class="clearfix"></div>
<div class="portlet-header default_closed" style='margin-top:-5px;'>Manage Users</div>
<div class="portlet-content">
<table class="table table-striped" id='mrr_user_display'>
<tbody>
<tr>
<td style='width:25%;'>FIRST NAME<br><span id='cce_user_first'></span></td>
<td style='width:25%;'>LAST NAME<br><span id='cce_user_last'></span></td>
<td style='width:50%;'>TITLE<br><span id='cce_user_title'></span></td>
</tr>
<tr>
<td style='width:25%;'>USERNAME<br><span id='cce_user_name'></span></td>
<td style='width:25%;'>PASSWORD<br><span id='cce_user_pass'></span></td>
<td style='width:50%;'>STORE LOCATION<br><span id='cce_user_locations'></span></td>
</tr>
<tr>
<td style='width:25%;'>CELL#<br><span id='cce_user_cell'></span></td>
<td style='width:25%;'>PHONE#<br><span id='cce_user_phone'></span></td>
<td style='width:50%;'>USER LEVEL<br><span id='cce_user_level'></span></td>
</tr>
<tr>
<td colspan="3">MONITORING LOGS?<br><span id='cce_user_logs'></span></td>
</tr>
</tbody>
</table>
<div id='user_list_display'></div>
</div>
</div>
</div>
<div class="column move_box_right">
<div class="portlet welcome_msg right_col" id='portlet_WelcomeMsg'>
<div class="portlet-content">
<div id='cce_system_message_display'>Loading...</div>
<div id='cce_quick_links_display'></div>
<div id='cce_quick_links_editor'></div>
</div>
</div>
<div class="portlet right_col reports default_closed" id='portlet_Reports'>
<div class="portlet-header">Reports</div>
<div class="portlet-content">
<div id='cce_reports_display'><?= show_selected_reports_by_access( SECTION_REPORT ) ?></div>
</div>
</div>
<div class="portlet right_col imp_dates default_closed" id='portlet_ImportantDates'>
<div class="portlet-header">IMPORTANT DATES</div>
<div class="portlet-content">
<div id='important_dates'></div>
<!--Form for New Important dates -->
<div id='dialog_date_form' title='Add/ Edit Important Date' style='display:none;'>
<p class='validateTips'>*** Important Date, Title, and Description fields are required.</p>
<div class='field2'>
<label for='date_date'>Important Date ***</label>
<span>
<input type='text' name='date_date' id='date_date' value='' class='datepicker'>
<input type='hidden' name='date_id' id='date_id' value='0'>
</span>
</div>
<div class='field2'>
<label for='date_date'>Date Type</label>
<span>
<?
//mrr_build_option_box($option_cat_name, $selected_value = "", $field_name, $show_name = false, $show_blank_text = true, $class="")
echo mrr_build_option_box('important_date_types', 0 , 'date_type',false,true,"");
?>
</span>
</div>
<div class='field2'>
<label for='date_title'>Title ***</label>
<span>
<input type='text' name='date_title' id='date_title' value="" class='longshort' title='name of important date or event' placeholder='Important Date Title'>
</span>
</div>
<div class='field2'>
<label for='date_desc'>Description ***</label>
<span>
<textarea name='date_desc' id='date_desc' class='mceEditor'></textarea>
</span>
</div>
<div class='field2'>
<label for='date_date_remind1'>Reminder Date</label>
<span>
<input type='text' name='date_date_remind1' id='date_date_remind1' value='' class='datepicker'>
</span>
</div>
<div class='field2'>
<label for='date_email_remind1'>Reminder E-mail</label>
<span>
<input type='text' name='date_email_remind1' id='date_email_remind1' value="" class='longshort' title='E-mail address for first reminder' placeholder='Reminder E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_msg_remind1'>Reminder Message</label>
<span>
<textarea name='date_msg_remind1' id='date_msg_remind1' class='mceEditor'></textarea>
</span>
</div>
<div class='field2'>
<label for='date_date_remind2'>Reminder 2 Date</label>
<span>
<input type='text' name='date_date_remind2' id='date_date_remind2' value='' class='datepicker'>
</span>
</div>
<div class='field2'>
<label for='date_email_remind2'>Reminder 2 E-mail</label>
<span>
<input type='text' name='date_email_remind2' id='date_email_remind2' value="" class='longshort' title='E-mail address for second reminder' placeholder='Second Reminder E-Mail Address'>
</span>
</div>
<div class='field2'>
<label for='date_msg_remind2'>Reminder 2 Message</label>
<span>
<textarea name='date_msg_remind2' id='date_msg_remind2' class='mceEditor'></textarea>
<!-- Allow form submission with keyboard without duplicating the dialog button -->
<input type='submit' tabindex='-1' style='position:absolute; top:-1000px'>
</span>
</div>
</div>
</div>
</div>
<div class="portlet right_col acc_info default_closed" id='portlet_AccInfo'>
<div class="portlet-header">ACCOUNT INFORMATION</div>
<div class="portlet-content">
<?=get_user_info_section_by_id($_SESSION['user_id']) ?>
</div>
</div>
</div>
</div>
<!--Form for Archived Section -->
<div id="dialog_merchant_archive_dispay" title="Archive" style='display:none; width:850px;'>
<div id='merchant_archive_dispay'></div>
</div>
<!--Form for User Info -->
<div id="dialog-form-profile" title="User Settings" style='display:none; width:850px;'>
<div class='mrr_user_info_display'><? mrr_user_settings_form($_POST['id'],$edit_mode) ?></div>
</div>
<!--Form for merchant/customer removal confirmation -->
<div id="dialog_delete_merchant" title="Delete Customer" style='display:none;'>
<p class="validateTips">Are you sure you want to remove this Customer?</p>
</div>
<!--Form for store removal confirmation -->
<div id="dialog_delete_store_location" title="Delete Store" style='display:none;'>
<p class="validateTips">Are you sure you want to remove this Store Location?</p>
</div>
<!--Form for New Users -->
<div id="dialog-form" title="Create New User" style='display:none;'>
<p class="validateTips">All form fields are required.</p>
<div class='field'>
<label for="user_name">Username</label>
<span>
<input type="text" name="user_name" id="user_name" value="">
</span>
</div>
<div class='field'>
<label for="email">E-Mail Address</label>
<span>
<input type="text" name="email" id="email" value="">
</span>
</div>
<div class='field'>
<label for="password">Enter Password</label>
<span>
<input type="password" name="password" id="password" value="">
</span>
</div>
<div class='field'>
<label for="password_confirmed">Confirm Password</label>
<span>
<input type="password" name="password_confirmed" id="password_confirmed" value="">
<!-- Allow form submission with keyboard without duplicating the dialog button -->
<input type="submit" tabindex="-1" style="position:absolute; top:-1000px">
</span>
</div>
</div>
<!--Form for updating Passwords -->
<div id="dialog-form-update" title="Update Password" style='display:none;'>
<p class="validateTips">All form fields are required.</p>
<div class='field'>
<label for="user_name2">Account Username</label>
<span>
<?=get_welcome_by_id($_POST['id'],1) ?>
<input type='text' name='user_name2' id='user_name2' readonly value="<?=get_welcome_by_id($_POST['id'],1) ?>" style="display:none">
</span>
</div>
<div class='field'>
<label for="password">Enter Password</label>
<span>
<input type="password" name="password2" id="password2" value="">
</span>
</div>
<div class='field'>
<label for="confirm_password">Confirm Password</label>
<span>
<input type="password" name="confirm_password" id="confirm_password" value="">
<!-- Allow form submission with keyboard without duplicating the dialog button -->
<input type="submit" tabindex="-1" style="position:absolute; top:-1000px">
</span>
</div>
</div>
<script type='text/javascript'>
var loaded_user_id = 0;
var doc_pg=0; //used for search results display...index page should always be 0.
var user_added_mode=0;
$().ready(function() {
<? if($_SESSION['access_level']==45) { ?>
window.location.href = "/auditor_folder.php";
<? } else { ?>