-
Notifications
You must be signed in to change notification settings - Fork 34
/
settings.php
4108 lines (3777 loc) · 200 KB
/
settings.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
// This is Setting page of school management plugin
require_once SMS_PLUGIN_DIR. '/includes/class-attendence-manage.php';
require_once SMS_PLUGIN_DIR. '/smgt-function.php';
//require_once SMS_PLUGIN_DIR. '/fronted_function.php';
require_once SMS_PLUGIN_DIR. '/includes/class-marks-manage.php';
require_once SMS_PLUGIN_DIR. '/school-management-class.php';
require_once SMS_PLUGIN_DIR. '/includes/class-routine.php';
require_once SMS_PLUGIN_DIR. '/includes/class-dashboard.php';
require_once SMS_PLUGIN_DIR. '/includes/class-payment.php';
require_once SMS_PLUGIN_DIR. '/includes/class-fees.php';
require_once SMS_PLUGIN_DIR. '/includes/class-homework.php';
require_once SMS_PLUGIN_DIR. '/includes/class-feespayment.php';
require_once SMS_PLUGIN_DIR. '/lib/paypal/paypal_class.php';
require_once SMS_PLUGIN_DIR. '/includes/class-library.php';
require_once SMS_PLUGIN_DIR. '/includes/class-teacher.php';
require_once SMS_PLUGIN_DIR. '/includes/class-exam.php';
require_once SMS_PLUGIN_DIR. '/includes/class-admissioin.php';
require_once SMS_PLUGIN_DIR. '/includes/class-hostel.php';
require_once SMS_PLUGIN_DIR. '/includes/class-subject.php';
require_once SMS_PLUGIN_DIR. '/includes/custome_field.php';
require_once SMS_PLUGIN_DIR. '/includes/class_virtual_classroom.php';
function smgt_role_exists( $role ) {
if( ! empty( $role ) ) {
return $GLOBALS['wp_roles']->is_role( $role );
}
return false;
}
function smgt_add_role_caps() {
// gets the author role
if( smgt_role_exists( 'teacher' ) ) {
// The 'editor' role exists!
$role = get_role( 'teacher' );
$role->add_cap('read');
$role->add_cap('level_0');
}
if( smgt_role_exists( 'student' ) ) {
// The 'editor' role exists!
$role = get_role( 'student' );
$role->add_cap('read');
$role->add_cap('level_0');
}
if( smgt_role_exists( 'parent' ) ) {
// The 'editor' role exists!
$role = get_role( 'parent' );
$role->add_cap('read');
$role->add_cap('level_0');
}
if( !smgt_role_exists( 'supportstaff' ) ) {
// The 'editor' role exists!
add_role('supportstaff', __( 'Support Staff' ,'school-mgt'),array( 'read' => true, 'level_0' => true ));
}
if( !smgt_role_exists( 'student_temp' ) ) {
// The 'editor' role exists!
add_role('student_temp', __( 'student_temp' ,'school-mgt'),array( 'read' => true, 'level_0' => true ));
}
}
add_action( 'admin_init', 'smgt_add_role_caps');
add_action( 'admin_bar_menu', 'smgt_school_dashboard_link', 999 );
function smgt_school_dashboard_link( $wp_admin_bar ) {
$args = array(
'id' => 'school-dashboard',
'title' => __('School Dashboard','school-mgt'),
'href' => home_url().'?dashboard=user',
'meta' => array( 'class' => 'smgt-school-dashboard' )
);
$wp_admin_bar->add_node( $args );
}
add_action( 'admin_head', 'smgt_admin_css' );
function smgt_admin_css(){ ?>
<style>
a.toplevel_page_smgt_school
{
font-size:14px !important;
}
a.toplevel_page_smgt_school:hover, a.toplevel_page_smgt_school:focus,.toplevel_page_smgt_school.opensub a.wp-has-submenu
{
background: url("<?php echo SMS_PLUGIN_URL;?>/assets/images/school-management-system-2.png") no-repeat scroll 8px 9px rgba(0, 0, 0, 0) !important;
}
.toplevel_page_smgt_school:hover .wp-menu-image.dashicons-before img
{
display: none;
}
.toplevel_page_smgt_school:hover .wp-menu-image.dashicons-before
{
min-width: 23px !important;
}
</style>
<?php
}
add_action('init', 'amgt_session_manager');
function amgt_session_manager()
{
if (!session_id())
{
session_start();
if(!isset($_SESSION['cmgt_verify']))
{
$_SESSION['cmgt_verify'] = '';
}
}
session_write_close();
}
function cmgt_logout(){
if(isset($_SESSION['cmgt_verify']))
{ unset($_SESSION['cmgt_verify']);}
}
add_action('wp_logout','cmgt_logout');
add_action('init','cmgt_setup');
function cmgt_setup()
{
$is_cmgt_pluginpage = cmgt_is_cmgtpage();
$is_verify = false;
if(!isset($_SESSION['cmgt_verify']))
$_SESSION['cmgt_verify'] = '';
$server_name = $_SERVER['SERVER_NAME'];
$is_localserver = cmgt_chekserver($server_name);
if($is_localserver)
{
return true;
}
if($is_cmgt_pluginpage)
{
if($_SESSION['cmgt_verify'] == ''){
if( get_option('licence_key') && get_option('cmgt_setup_email'))
{
$domain_name = $_SERVER['SERVER_NAME'];
$licence_key = get_option('licence_key');
$email = get_option('cmgt_setup_email');
$result = cmgt_check_productkey($domain_name,$licence_key,$email);
$is_server_running = cmgt_check_ourserver();
if($is_server_running)
$_SESSION['cmgt_verify'] =$result;
else
$_SESSION['cmgt_verify'] = '0';
$is_verify = cmgt_check_verify_or_not($result);
}
}
}
$is_verify = cmgt_check_verify_or_not($_SESSION['cmgt_verify']);
if($is_cmgt_pluginpage)
if(!$is_verify)
{
$_SESSION['cmgt_verify'] = '';
if($_REQUEST['page'] != 'smgt_setup')
wp_redirect(admin_url().'admin.php?page=smgt_setup');
}
}
if ( is_admin() )
{
require_once SMS_PLUGIN_DIR. '/admin/admin.php';
function school_install()
{
//add_role('admin', __( 'Admin','school-mgt' ));
add_role('teacher', __( 'Teacher' ,'school-mgt'),array( 'read' => true, 'level_0' => true ));
add_role('student', __( 'Student' ,'school-mgt'),array( 'read' => true, 'level_0' => true ));
add_role('parent', __( 'Parent' ,'school-mgt'),array( 'read' => true, 'level_0' => true ));
add_role('supportstaff', __( 'Support Staff' ,'school-mgt'),array( 'read' => true, 'level_0' => true ));
install_tables();
smgt_register_post();
}
register_activation_hook(SMS_PLUGIN_BASENAME, 'school_install' );
function smgt_option(){
$role_access_right_student = array();
$role_access_right_student['student'] = [
"teacher"=>["menu_icone"=>plugins_url('school-management/assets/images/icons/teacher.png'),
"app_icone"=>plugins_url('school-management/assets/images/icons/app_icon/teacher.png'),
"menu_title"=>'Teacher',
"page_link"=>'teacher',
"own_data" =>isset($_REQUEST['teacher_own_data'])?$_REQUEST['teacher_own_data']:1,
"add" =>isset($_REQUEST['teacher_add'])?$_REQUEST['teacher_add']:0,
"edit"=>isset($_REQUEST['teacher_edit'])?$_REQUEST['teacher_edit']:0,
"view"=>isset($_REQUEST['teacher_view'])?$_REQUEST['teacher_view']:1,
"delete"=>isset($_REQUEST['teacher_delete'])?$_REQUEST['teacher_delete']:0
],
"student"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/student-icon.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/student.png'),
"menu_title"=>'Student',
"page_link"=>'student',
"own_data" => isset($_REQUEST['student_own_data'])?$_REQUEST['student_own_data']:1,
"add" => isset($_REQUEST['student_add'])?$_REQUEST['student_add']:0,
"edit"=>isset($_REQUEST['student_edit'])?$_REQUEST['student_edit']:0,
"view"=>isset($_REQUEST['student_view'])?$_REQUEST['student_view']:1,
"delete"=>isset($_REQUEST['student_delete'])?$_REQUEST['student_delete']:0
],
"parent"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/parents.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/parents.png'),
"menu_title"=>'Parent',
"page_link"=>'parent',
"own_data" => isset($_REQUEST['parent_own_data'])?$_REQUEST['parent_own_data']:1,
"add" => isset($_REQUEST['parent_add'])?$_REQUEST['parent_add']:0,
"edit"=>isset($_REQUEST['parent_edit'])?$_REQUEST['parent_edit']:0,
"view"=>isset($_REQUEST['parent_view'])?$_REQUEST['parent_view']:1,
"delete"=>isset($_REQUEST['parent_delete'])?$_REQUEST['parent_delete']:0
],
"subject"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/subject.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/subject.png'),
"menu_title"=>'Subject',
"page_link"=>'subject',
"own_data" => isset($_REQUEST['subject_own_data'])?$_REQUEST['subject_own_data']:1,
"add" => isset($_REQUEST['subject_add'])?$_REQUEST['subject_add']:0,
"edit"=>isset($_REQUEST['subject_edit'])?$_REQUEST['subject_edit']:0,
"view"=>isset($_REQUEST['subject_view'])?$_REQUEST['subject_view']:1,
"delete"=>isset($_REQUEST['subject_delete'])?$_REQUEST['subject_delete']:0
],
"schedule"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/class-route.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/class-route.png'),
"menu_title"=>'Class Routine',
"page_link"=>'schedule',
"own_data" => isset($_REQUEST['schedule_own_data'])?$_REQUEST['schedule_own_data']:1,
"add" => isset($_REQUEST['schedule_add'])?$_REQUEST['schedule_add']:0,
"edit"=>isset($_REQUEST['schedule_edit'])?$_REQUEST['schedule_edit']:0,
"view"=>isset($_REQUEST['schedule_view'])?$_REQUEST['schedule_view']:1,
"delete"=>isset($_REQUEST['schedule_delete'])?$_REQUEST['schedule_delete']:0
],
"virtual_classroom"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/virtual_classroom.png'),
"menu_title"=>'virtual_classroom',
"page_link"=>'virtual_classroom',
"own_data" => isset($_REQUEST['virtual_classroom_own_data'])?$_REQUEST['virtual_classroom_own_data']:1,
"add" => isset($_REQUEST['virtual_classroom_add'])?$_REQUEST['virtual_classroom_add']:0,
"edit"=>isset($_REQUEST['virtual_classroom_edit'])?$_REQUEST['virtual_classroom_edit']:0,
"view"=>isset($_REQUEST['virtual_classroom_view'])?$_REQUEST['virtual_classroom_view']:1,
"delete"=>isset($_REQUEST['virtual_classroom_delete'])?$_REQUEST['virtual_classroom_delete']:0
],
"attendance"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/attandance.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/attandance.png'),
"menu_title"=>'Attendance',
"page_link"=>'attendance',
"own_data" => isset($_REQUEST['attendance_own_data'])?$_REQUEST['attendance_own_data']:0,
"add" => isset($_REQUEST['attendance_add'])?$_REQUEST['attendance_add']:0,
"edit"=>isset($_REQUEST['attendance_edit'])?$_REQUEST['attendance_edit']:0,
"view"=>isset($_REQUEST['attendance_view'])?$_REQUEST['attendance_view']:0,
"delete"=>isset($_REQUEST['attendance_delete'])?$_REQUEST['attendance_delete']:0
],
"exam"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/exam.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/exam.png'),
"menu_title"=>'Exam',
"page_link"=>'exam',
"own_data" => isset($_REQUEST['exam_own_data'])?$_REQUEST['exam_own_data']:1,
"add" => isset($_REQUEST['exam_add'])?$_REQUEST['exam_add']:0,
"edit"=>isset($_REQUEST['exam_edit'])?$_REQUEST['exam_edit']:0,
"view"=>isset($_REQUEST['exam_view'])?$_REQUEST['exam_view']:1,
"delete"=>isset($_REQUEST['exam_delete'])?$_REQUEST['exam_delete']:0
],
"hostel"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/hostel.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/hostel.png'),
"menu_title"=>'Hostel',
"page_link"=>'hostel',
"own_data" => isset($_REQUEST['hostel_own_data'])?$_REQUEST['hostel_own_data']:0,
"add" => isset($_REQUEST['hostel_add'])?$_REQUEST['hostel_add']:0,
"edit"=>isset($_REQUEST['hostel_edit'])?$_REQUEST['hostel_edit']:0,
"view"=>isset($_REQUEST['hostel_view'])?$_REQUEST['hostel_view']:1,
"delete"=>isset($_REQUEST['hostel_delete'])?$_REQUEST['hostel_delete']:0
],
"homework"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/homework.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/homework.png'),
"menu_title"=>'Home Work',
"page_link"=>'homework',
"own_data" => isset($_REQUEST['homework_own_data'])?$_REQUEST['homework_own_data']:1,
"add" => isset($_REQUEST['homework_add'])?$_REQUEST['homework_add']:0,
"edit"=>isset($_REQUEST['homework_edit'])?$_REQUEST['homework_edit']:0,
"view"=>isset($_REQUEST['homework_view'])?$_REQUEST['homework_view']:1,
"delete"=>isset($_REQUEST['homework_delete'])?$_REQUEST['homework_delete']:0
],
"manage_marks"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/mark-manage.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/mark-manage.png'),
"menu_title"=>'Mark Manage',
"page_link"=>'manage_marks',
"own_data" => isset($_REQUEST['manage_marks_own_data'])?$_REQUEST['manage_marks_own_data']:0,
"add" => isset($_REQUEST['manage_marks_add'])?$_REQUEST['manage_marks_add']:0,
"edit"=>isset($_REQUEST['manage_marks_edit'])?$_REQUEST['manage_marks_edit']:0,
"view"=>isset($_REQUEST['manage_marks_view'])?$_REQUEST['manage_marks_view']:0,
"delete"=>isset($_REQUEST['manage_marks_delete'])?$_REQUEST['manage_marks_delete']:0
],
"feepayment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/fee.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/fee_payment.png'),
"menu_title"=>'Fee Payment',
"page_link"=>'feepayment',
"own_data" => isset($_REQUEST['feepayment_own_data'])?$_REQUEST['feepayment_own_data']:1,
"add" => isset($_REQUEST['feepayment_add'])?$_REQUEST['feepayment_add']:0,
"edit"=>isset($_REQUEST['feepayment_edit'])?$_REQUEST['feepayment_edit']:0,
"view"=>isset($_REQUEST['feepayment_view'])?$_REQUEST['feepayment_view']:1,
"delete"=>isset($_REQUEST['feepayment_delete'])?$_REQUEST['feepayment_delete']:0
],
"payment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/payment.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/payment.png'),
"menu_title"=>'Payment',
"page_link"=>'payment',
"own_data" => isset($_REQUEST['payment_own_data'])?$_REQUEST['payment_own_data']:1,
"add" => isset($_REQUEST['payment_add'])?$_REQUEST['payment_add']:0,
"edit"=>isset($_REQUEST['payment_edit'])?$_REQUEST['payment_edit']:0,
"view"=>isset($_REQUEST['payment_view'])?$_REQUEST['payment_view']:1,
"delete"=>isset($_REQUEST['payment_delete'])?$_REQUEST['payment_delete']:0
],
"transport"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/transport.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/transport.png'),
"menu_title"=>'Transport',
"page_link"=>'transport',
"own_data" => isset($_REQUEST['transport_own_data'])?$_REQUEST['transport_own_data']:0,
"add" => isset($_REQUEST['transport_add'])?$_REQUEST['transport_add']:0,
"edit"=>isset($_REQUEST['transport_edit'])?$_REQUEST['transport_edit']:0,
"view"=>isset($_REQUEST['transport_view'])?$_REQUEST['transport_view']:1,
"delete"=>isset($_REQUEST['transport_delete'])?$_REQUEST['transport_delete']:0
],
"notice"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/notice.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/notice.png'),
"menu_title"=>'Notice Board',
"page_link"=>'notice',
"own_data" => isset($_REQUEST['notice_own_data'])?$_REQUEST['notice_own_data']:1,
"add" => isset($_REQUEST['notice_add'])?$_REQUEST['notice_add']:0,
"edit"=>isset($_REQUEST['notice_edit'])?$_REQUEST['notice_edit']:0,
"view"=>isset($_REQUEST['notice_view'])?$_REQUEST['notice_view']:1,
"delete"=>isset($_REQUEST['notice_delete'])?$_REQUEST['notice_delete']:0
],
"message"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/message.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/message.png'),
"menu_title"=>'Message',
"page_link"=>'message',
"own_data" => isset($_REQUEST['message_own_data'])?$_REQUEST['message_own_data']:1,
"add" => isset($_REQUEST['message_add'])?$_REQUEST['message_add']:1,
"edit"=>isset($_REQUEST['message_edit'])?$_REQUEST['message_edit']:0,
"view"=>isset($_REQUEST['message_view'])?$_REQUEST['message_view']:1,
"delete"=>isset($_REQUEST['message_delete'])?$_REQUEST['message_delete']:1
],
"holiday"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/holiday.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/holiday.png'),
"menu_title"=>'Holiday',
"page_link"=>'holiday',
"own_data" => isset($_REQUEST['holiday_own_data'])?$_REQUEST['holiday_own_data']:0,
"add" => isset($_REQUEST['holiday_add'])?$_REQUEST['holiday_add']:0,
"edit"=>isset($_REQUEST['holiday_edit'])?$_REQUEST['holiday_edit']:0,
"view"=>isset($_REQUEST['holiday_view'])?$_REQUEST['holiday_view']:1,
"delete"=>isset($_REQUEST['holiday_delete'])?$_REQUEST['holiday_delete']:0
],
"library"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/library.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/library.png'),
"menu_title"=>'Library',
"page_link"=>'library',
"own_data" => isset($_REQUEST['library_own_data'])?$_REQUEST['library_own_data']:1,
"add" => isset($_REQUEST['library_add'])?$_REQUEST['library_add']:0,
"edit"=>isset($_REQUEST['library_edit'])?$_REQUEST['library_edit']:0,
"view"=>isset($_REQUEST['library_view'])?$_REQUEST['library_view']:1,
"delete"=>isset($_REQUEST['library_delete'])?$_REQUEST['library_delete']:0
],
"account"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/account.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/account.png'),
"menu_title"=>'Account',
"page_link"=>'account',
"own_data" => isset($_REQUEST['account_own_data'])?$_REQUEST['account_own_data']:1,
"add" => isset($_REQUEST['account_add'])?$_REQUEST['account_add']:0,
"edit"=>isset($_REQUEST['account_edit'])?$_REQUEST['account_edit']:0,
"view"=>isset($_REQUEST['account_view'])?$_REQUEST['account_view']:1,
"delete"=>isset($_REQUEST['account_delete'])?$_REQUEST['account_delete']:0
],
"report"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/report.png'),
'app_icone'=>plugins_url( 'school-management/assets/images/icons/app_icon/report.png'),
"menu_title"=>'Report',
"page_link"=>'report',
"own_data" => isset($_REQUEST['report_own_data'])?$_REQUEST['report_own_data']:0,
"add" => isset($_REQUEST['report_add'])?$_REQUEST['report_add']:0,
"edit"=>isset($_REQUEST['report_edit'])?$_REQUEST['report_edit']:0,
"view"=>isset($_REQUEST['report_view'])?$_REQUEST['report_view']:0,
"delete"=>isset($_REQUEST['report_delete'])?$_REQUEST['report_delete']:0
]
];
$role_access_right_teacher = array();
$role_access_right_teacher['teacher'] = [
"teacher"=>["menu_icone"=>plugins_url('school-management/assets/images/icons/teacher.png'),
"menu_title"=>'Teacher',
"page_link"=>'teacher',
"own_data" =>isset($_REQUEST['teacher_own_data'])?$_REQUEST['teacher_own_data']:1,
"add" =>isset($_REQUEST['teacher_add'])?$_REQUEST['teacher_add']:0,
"edit"=>isset($_REQUEST['teacher_edit'])?$_REQUEST['teacher_edit']:0,
"view"=>isset($_REQUEST['teacher_view'])?$_REQUEST['teacher_view']:1,
"delete"=>isset($_REQUEST['teacher_delete'])?$_REQUEST['teacher_delete']:0
],
"student"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/student-icon.png'),
"menu_title"=>'Student',
"page_link"=>'student',
"own_data" => isset($_REQUEST['student_own_data'])?$_REQUEST['student_own_data']:1,
"add" => isset($_REQUEST['student_add'])?$_REQUEST['student_add']:0,
"edit"=>isset($_REQUEST['student_edit'])?$_REQUEST['student_edit']:0,
"view"=>isset($_REQUEST['student_view'])?$_REQUEST['student_view']:1,
"delete"=>isset($_REQUEST['student_delete'])?$_REQUEST['student_delete']:0
],
"parent"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/parents.png'),
"menu_title"=>'Parent',
"page_link"=>'parent',
"own_data" => isset($_REQUEST['parent_own_data'])?$_REQUEST['parent_own_data']:0,
"add" => isset($_REQUEST['parent_add'])?$_REQUEST['parent_add']:0,
"edit"=>isset($_REQUEST['parent_edit'])?$_REQUEST['parent_edit']:0,
"view"=>isset($_REQUEST['parent_view'])?$_REQUEST['parent_view']:1,
"delete"=>isset($_REQUEST['parent_delete'])?$_REQUEST['parent_delete']:0
],
"subject"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/subject.png'),
"menu_title"=>'Subject',
"page_link"=>'subject',
"own_data" => isset($_REQUEST['subject_own_data'])?$_REQUEST['subject_own_data']:1,
"add" => isset($_REQUEST['subject_add'])?$_REQUEST['subject_add']:1,
"edit"=>isset($_REQUEST['subject_edit'])?$_REQUEST['subject_edit']:1,
"view"=>isset($_REQUEST['subject_view'])?$_REQUEST['subject_view']:1,
"delete"=>isset($_REQUEST['subject_delete'])?$_REQUEST['subject_delete']:1
],
"class"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/class.png'),
"menu_title"=>'Class',
"page_link"=>'class',
"own_data" => isset($_REQUEST['class_own_data'])?$_REQUEST['class_own_data']:1,
"add" => isset($_REQUEST['class_add'])?$_REQUEST['class_add']:0,
"edit"=>isset($_REQUEST['class_edit'])?$_REQUEST['class_edit']:0,
"view"=>isset($_REQUEST['class_view'])?$_REQUEST['class_view']:1,
"delete"=>isset($_REQUEST['class_delete'])?$_REQUEST['class_delete']:0
],
"virtual_classroom"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/virtual_classroom.png'),
"menu_title"=>'virtual_classroom',
"page_link"=>'virtual_classroom',
"own_data" => isset($_REQUEST['virtual_classroom_own_data'])?$_REQUEST['virtual_classroom_own_data']:0,
"add" => isset($_REQUEST['virtual_classroom_add'])?$_REQUEST['virtual_classroom_add']:1,
"edit"=>isset($_REQUEST['virtual_classroom_edit'])?$_REQUEST['virtual_classroom_edit']:1,
"view"=>isset($_REQUEST['virtual_classroom_view'])?$_REQUEST['virtual_classroom_view']:1,
"delete"=>isset($_REQUEST['virtual_classroom_delete'])?$_REQUEST['virtual_classroom_delete']:1
],
"schedule"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/class-route.png'),
"menu_title"=>'Class Routine',
"page_link"=>'schedule',
"own_data" => isset($_REQUEST['schedule_own_data'])?$_REQUEST['schedule_own_data']:1,
"add" => isset($_REQUEST['schedule_add'])?$_REQUEST['schedule_add']:0,
"edit"=>isset($_REQUEST['schedule_edit'])?$_REQUEST['schedule_edit']:0,
"view"=>isset($_REQUEST['schedule_view'])?$_REQUEST['schedule_view']:1,
"delete"=>isset($_REQUEST['schedule_delete'])?$_REQUEST['schedule_delete']:0
],
"attendance"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/attandance.png'),
"menu_title"=>'Attendance',
"page_link"=>'attendance',
"own_data" => isset($_REQUEST['attendance_own_data'])?$_REQUEST['attendance_own_data']:1,
"add" => isset($_REQUEST['attendance_add'])?$_REQUEST['attendance_add']:0,
"edit"=>isset($_REQUEST['attendance_edit'])?$_REQUEST['attendance_edit']:0,
"view"=>isset($_REQUEST['attendance_view'])?$_REQUEST['attendance_view']:1,
"delete"=>isset($_REQUEST['attendance_delete'])?$_REQUEST['attendance_delete']:0
],
"exam"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/exam.png'),
"menu_title"=>'Exam',
"page_link"=>'exam',
"own_data" => isset($_REQUEST['exam_own_data'])?$_REQUEST['exam_own_data']:1,
"add" => isset($_REQUEST['exam_add'])?$_REQUEST['exam_add']:1,
"edit"=>isset($_REQUEST['exam_edit'])?$_REQUEST['exam_edit']:1,
"view"=>isset($_REQUEST['exam_view'])?$_REQUEST['exam_view']:1,
"delete"=>isset($_REQUEST['exam_delete'])?$_REQUEST['exam_delete']:1
],
"hostel"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/hostel.png'),
"menu_title"=>'Hostel',
"page_link"=>'hostel',
"own_data" => isset($_REQUEST['hostel_own_data'])?$_REQUEST['hostel_own_data']:0,
"add" => isset($_REQUEST['hostel_add'])?$_REQUEST['hostel_add']:0,
"edit"=>isset($_REQUEST['hostel_edit'])?$_REQUEST['hostel_edit']:0,
"view"=>isset($_REQUEST['hostel_view'])?$_REQUEST['hostel_view']:1,
"delete"=>isset($_REQUEST['hostel_delete'])?$_REQUEST['hostel_delete']:0
],
"homework"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/homework.png'),
"menu_title"=>'Home Work',
"page_link"=>'homework',
"own_data" => isset($_REQUEST['homework_own_data'])?$_REQUEST['homework_own_data']:1,
"add" => isset($_REQUEST['homework_add'])?$_REQUEST['homework_add']:1,
"edit"=>isset($_REQUEST['homework_edit'])?$_REQUEST['homework_edit']:1,
"view"=>isset($_REQUEST['homework_view'])?$_REQUEST['homework_view']:1,
"delete"=>isset($_REQUEST['homework_delete'])?$_REQUEST['homework_delete']:1
],
"manage_marks"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/mark-manage.png'),
"menu_title"=>'Mark Manage',
"page_link"=>'manage_marks',
"own_data" => isset($_REQUEST['manage_marks_own_data'])?$_REQUEST['manage_marks_own_data']:1,
"add" => isset($_REQUEST['manage_marks_add'])?$_REQUEST['manage_marks_add']:1,
"edit"=>isset($_REQUEST['manage_marks_edit'])?$_REQUEST['manage_marks_edit']:1,
"view"=>isset($_REQUEST['manage_marks_view'])?$_REQUEST['manage_marks_view']:1,
"delete"=>isset($_REQUEST['manage_marks_delete'])?$_REQUEST['manage_marks_delete']:0
],
"feepayment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/fee.png'),
"menu_title"=>'Fee Payment',
"page_link"=>'feepayment',
"own_data" => isset($_REQUEST['feepayment_own_data'])?$_REQUEST['feepayment_own_data']:1,
"add" => isset($_REQUEST['feepayment_add'])?$_REQUEST['feepayment_add']:1,
"edit"=>isset($_REQUEST['feepayment_edit'])?$_REQUEST['feepayment_edit']:1,
"view"=>isset($_REQUEST['feepayment_view'])?$_REQUEST['feepayment_view']:1,
"delete"=>isset($_REQUEST['feepayment_delete'])?$_REQUEST['feepayment_delete']:0
],
"payment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/payment.png'),
"menu_title"=>'Payment',
"page_link"=>'payment',
"own_data" => isset($_REQUEST['payment_own_data'])?$_REQUEST['payment_own_data']:0,
"add" => isset($_REQUEST['payment_add'])?$_REQUEST['payment_add']:0,
"edit"=>isset($_REQUEST['payment_edit'])?$_REQUEST['payment_edit']:0,
"view"=>isset($_REQUEST['payment_view'])?$_REQUEST['payment_view']:0,
"delete"=>isset($_REQUEST['payment_delete'])?$_REQUEST['payment_delete']:0
],
"transport"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/transport.png'),
"menu_title"=>'Transport',
"page_link"=>'transport',
"own_data" => isset($_REQUEST['transport_own_data'])?$_REQUEST['transport_own_data']:0,
"add" => isset($_REQUEST['transport_add'])?$_REQUEST['transport_add']:0,
"edit"=>isset($_REQUEST['transport_edit'])?$_REQUEST['transport_edit']:0,
"view"=>isset($_REQUEST['transport_view'])?$_REQUEST['transport_view']:1,
"delete"=>isset($_REQUEST['transport_delete'])?$_REQUEST['transport_delete']:0
],
"notice"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/notice.png'),
"menu_title"=>'Notice Board',
"page_link"=>'notice',
"own_data" => isset($_REQUEST['notice_own_data'])?$_REQUEST['notice_own_data']:1,
"add" => isset($_REQUEST['notice_add'])?$_REQUEST['notice_add']:0,
"edit"=>isset($_REQUEST['notice_edit'])?$_REQUEST['notice_edit']:0,
"view"=>isset($_REQUEST['notice_view'])?$_REQUEST['notice_view']:1,
"delete"=>isset($_REQUEST['notice_delete'])?$_REQUEST['notice_delete']:0
],
"message"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/message.png'),
"menu_title"=>'Message',
"page_link"=>'message',
"own_data" => isset($_REQUEST['message_own_data'])?$_REQUEST['message_own_data']:1,
"add" => isset($_REQUEST['message_add'])?$_REQUEST['message_add']:1,
"edit"=>isset($_REQUEST['message_edit'])?$_REQUEST['message_edit']:0,
"view"=>isset($_REQUEST['message_view'])?$_REQUEST['message_view']:1,
"delete"=>isset($_REQUEST['message_delete'])?$_REQUEST['message_delete']:1
],
"holiday"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/holiday.png'),
"menu_title"=>'Holiday',
"page_link"=>'holiday',
"own_data" => isset($_REQUEST['holiday_own_data'])?$_REQUEST['holiday_own_data']:0,
"add" => isset($_REQUEST['holiday_add'])?$_REQUEST['holiday_add']:1,
"edit"=>isset($_REQUEST['holiday_edit'])?$_REQUEST['holiday_edit']:1,
"view"=>isset($_REQUEST['holiday_view'])?$_REQUEST['holiday_view']:1,
"delete"=>isset($_REQUEST['holiday_delete'])?$_REQUEST['holiday_delete']:1
],
"library"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/library.png'),
"menu_title"=>'Library',
"page_link"=>'library',
"own_data" => isset($_REQUEST['library_own_data'])?$_REQUEST['library_own_data']:1,
"add" => isset($_REQUEST['library_add'])?$_REQUEST['library_add']:0,
"edit"=>isset($_REQUEST['library_edit'])?$_REQUEST['library_edit']:0,
"view"=>isset($_REQUEST['library_view'])?$_REQUEST['library_view']:1,
"delete"=>isset($_REQUEST['library_delete'])?$_REQUEST['library_delete']:0
],
"account"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/account.png'),
"menu_title"=>'Account',
"page_link"=>'account',
"own_data" => isset($_REQUEST['account_own_data'])?$_REQUEST['account_own_data']:1,
"add" => isset($_REQUEST['account_add'])?$_REQUEST['account_add']:0,
"edit"=>isset($_REQUEST['account_edit'])?$_REQUEST['account_edit']:0,
"view"=>isset($_REQUEST['account_view'])?$_REQUEST['account_view']:1,
"delete"=>isset($_REQUEST['account_delete'])?$_REQUEST['account_delete']:0
],
"report"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/report.png'),
"menu_title"=>'Report',
"page_link"=>'report',
"own_data" => isset($_REQUEST['report_own_data'])?$_REQUEST['report_own_data']:1,
"add" => isset($_REQUEST['report_add'])?$_REQUEST['report_add']:0,
"edit"=>isset($_REQUEST['report_edit'])?$_REQUEST['report_edit']:0,
"view"=>isset($_REQUEST['report_view'])?$_REQUEST['report_view']:1,
"delete"=>isset($_REQUEST['report_delete'])?$_REQUEST['report_delete']:0
],
];
$role_access_right_parent = array();
$role_access_right_parent['parent'] = [
"teacher"=>["menu_icone"=>plugins_url('school-management/assets/images/icons/teacher.png'),
"menu_title"=>'Teacher',
"page_link"=>'teacher',
"own_data" =>isset($_REQUEST['teacher_own_data'])?$_REQUEST['teacher_own_data']:1,
"add" =>isset($_REQUEST['teacher_add'])?$_REQUEST['teacher_add']:0,
"edit"=>isset($_REQUEST['teacher_edit'])?$_REQUEST['teacher_edit']:0,
"view"=>isset($_REQUEST['teacher_view'])?$_REQUEST['teacher_view']:1,
"delete"=>isset($_REQUEST['teacher_delete'])?$_REQUEST['teacher_delete']:0
],
"student"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/student-icon.png'),
"menu_title"=>'Student',
"page_link"=>'student',
"own_data" => isset($_REQUEST['student_own_data'])?$_REQUEST['student_own_data']:1,
"add" => isset($_REQUEST['student_add'])?$_REQUEST['student_add']:0,
"edit"=>isset($_REQUEST['student_edit'])?$_REQUEST['student_edit']:0,
"view"=>isset($_REQUEST['student_view'])?$_REQUEST['student_view']:1,
"delete"=>isset($_REQUEST['student_delete'])?$_REQUEST['student_delete']:0
],
"parent"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/parents.png'),
"menu_title"=>'Parent',
"page_link"=>'parent',
"own_data" => isset($_REQUEST['parent_own_data'])?$_REQUEST['parent_own_data']:1,
"add" => isset($_REQUEST['parent_add'])?$_REQUEST['parent_add']:0,
"edit"=>isset($_REQUEST['parent_edit'])?$_REQUEST['parent_edit']:0,
"view"=>isset($_REQUEST['parent_view'])?$_REQUEST['parent_view']:1,
"delete"=>isset($_REQUEST['parent_delete'])?$_REQUEST['parent_delete']:0
],
"subject"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/subject.png'),
"menu_title"=>'Subject',
"page_link"=>'subject',
"own_data" => isset($_REQUEST['subject_own_data'])?$_REQUEST['subject_own_data']:1,
"add" => isset($_REQUEST['subject_add'])?$_REQUEST['subject_add']:0,
"edit"=>isset($_REQUEST['subject_edit'])?$_REQUEST['subject_edit']:0,
"view"=>isset($_REQUEST['subject_view'])?$_REQUEST['subject_view']:1,
"delete"=>isset($_REQUEST['subject_delete'])?$_REQUEST['subject_delete']:0
],
"schedule"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/class-route.png'),
"menu_title"=>'Class Routine',
"page_link"=>'schedule',
"own_data" => isset($_REQUEST['schedule_own_data'])?$_REQUEST['schedule_own_data']:1,
"add" => isset($_REQUEST['schedule_add'])?$_REQUEST['schedule_add']:0,
"edit"=>isset($_REQUEST['schedule_edit'])?$_REQUEST['schedule_edit']:0,
"view"=>isset($_REQUEST['schedule_view'])?$_REQUEST['schedule_view']:1,
"delete"=>isset($_REQUEST['schedule_delete'])?$_REQUEST['schedule_delete']:0
],
"virtual_classroom"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/virtual_classroom.png'),
"menu_title"=>'virtual_classroom',
"page_link"=>'virtual_classroom',
"own_data" => isset($_REQUEST['virtual_classroom_own_data'])?$_REQUEST['virtual_classroom_own_data']:1,
"add" => isset($_REQUEST['virtual_classroom_add'])?$_REQUEST['virtual_classroom_add']:0,
"edit"=>isset($_REQUEST['virtual_classroom_edit'])?$_REQUEST['virtual_classroom_edit']:0,
"view"=>isset($_REQUEST['virtual_classroom_view'])?$_REQUEST['virtual_classroom_view']:1,
"delete"=>isset($_REQUEST['virtual_classroom_delete'])?$_REQUEST['virtual_classroom_delete']:0
],
"attendance"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/attandance.png'),
"menu_title"=>'Attendance',
"page_link"=>'attendance',
"own_data" => isset($_REQUEST['attendance_own_data'])?$_REQUEST['attendance_own_data']:0,
"add" => isset($_REQUEST['attendance_add'])?$_REQUEST['attendance_add']:0,
"edit"=>isset($_REQUEST['attendance_edit'])?$_REQUEST['attendance_edit']:0,
"view"=>isset($_REQUEST['attendance_view'])?$_REQUEST['attendance_view']:0,
"delete"=>isset($_REQUEST['attendance_delete'])?$_REQUEST['attendance_delete']:0
],
"exam"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/exam.png'),
"menu_title"=>'Exam',
"page_link"=>'exam',
"own_data" => isset($_REQUEST['exam_own_data'])?$_REQUEST['exam_own_data']:1,
"add" => isset($_REQUEST['exam_add'])?$_REQUEST['exam_add']:0,
"edit"=>isset($_REQUEST['exam_edit'])?$_REQUEST['exam_edit']:0,
"view"=>isset($_REQUEST['exam_view'])?$_REQUEST['exam_view']:1,
"delete"=>isset($_REQUEST['exam_delete'])?$_REQUEST['exam_delete']:0
],
"hostel"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/hostel.png'),
"menu_title"=>'Hostel',
"page_link"=>'hostel',
"own_data" => isset($_REQUEST['hostel_own_data'])?$_REQUEST['hostel_own_data']:0,
"add" => isset($_REQUEST['hostel_add'])?$_REQUEST['hostel_add']:0,
"edit"=>isset($_REQUEST['hostel_edit'])?$_REQUEST['hostel_edit']:0,
"view"=>isset($_REQUEST['hostel_view'])?$_REQUEST['hostel_view']:1,
"delete"=>isset($_REQUEST['hostel_delete'])?$_REQUEST['hostel_delete']:0
],
"homework"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/homework.png'),
"menu_title"=>'Home Work',
"page_link"=>'homework',
"own_data" => isset($_REQUEST['homework_own_data'])?$_REQUEST['homework_own_data']:1,
"add" => isset($_REQUEST['homework_add'])?$_REQUEST['homework_add']:0,
"edit"=>isset($_REQUEST['homework_edit'])?$_REQUEST['homework_edit']:0,
"view"=>isset($_REQUEST['homework_view'])?$_REQUEST['homework_view']:1,
"delete"=>isset($_REQUEST['homework_delete'])?$_REQUEST['homework_delete']:0
],
"manage_marks"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/mark-manage.png'),
"menu_title"=>'Mark Manage',
"page_link"=>'manage_marks',
"own_data" => isset($_REQUEST['manage_marks_own_data'])?$_REQUEST['manage_marks_own_data']:0,
"add" => isset($_REQUEST['manage_marks_add'])?$_REQUEST['manage_marks_add']:0,
"edit"=>isset($_REQUEST['manage_marks_edit'])?$_REQUEST['manage_marks_edit']:0,
"view"=>isset($_REQUEST['manage_marks_view'])?$_REQUEST['manage_marks_view']:0,
"delete"=>isset($_REQUEST['manage_marks_delete'])?$_REQUEST['manage_marks_delete']:0
],
"feepayment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/fee.png'),
"menu_title"=>'Fee Payment',
"page_link"=>'feepayment',
"own_data" => isset($_REQUEST['feepayment_own_data'])?$_REQUEST['feepayment_own_data']:1,
"add" => isset($_REQUEST['feepayment_add'])?$_REQUEST['feepayment_add']:0,
"edit"=>isset($_REQUEST['feepayment_edit'])?$_REQUEST['feepayment_edit']:0,
"view"=>isset($_REQUEST['feepayment_view'])?$_REQUEST['feepayment_view']:1,
"delete"=>isset($_REQUEST['feepayment_delete'])?$_REQUEST['feepayment_delete']:0
],
"payment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/payment.png'),
"menu_title"=>'Payment',
"page_link"=>'payment',
"own_data" => isset($_REQUEST['payment_own_data'])?$_REQUEST['payment_own_data']:1,
"add" => isset($_REQUEST['payment_add'])?$_REQUEST['payment_add']:0,
"edit"=>isset($_REQUEST['payment_edit'])?$_REQUEST['payment_edit']:0,
"view"=>isset($_REQUEST['payment_view'])?$_REQUEST['payment_view']:1,
"delete"=>isset($_REQUEST['payment_delete'])?$_REQUEST['payment_delete']:0
],
"transport"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/transport.png'),
"menu_title"=>'Transport',
"page_link"=>'transport',
"own_data" => isset($_REQUEST['transport_own_data'])?$_REQUEST['transport_own_data']:0,
"add" => isset($_REQUEST['transport_add'])?$_REQUEST['transport_add']:0,
"edit"=>isset($_REQUEST['transport_edit'])?$_REQUEST['transport_edit']:0,
"view"=>isset($_REQUEST['transport_view'])?$_REQUEST['transport_view']:1,
"delete"=>isset($_REQUEST['transport_delete'])?$_REQUEST['transport_delete']:0
],
"notice"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/notice.png'),
"menu_title"=>'Notice Board',
"page_link"=>'notice',
"own_data" => isset($_REQUEST['notice_own_data'])?$_REQUEST['notice_own_data']:1,
"add" => isset($_REQUEST['notice_add'])?$_REQUEST['notice_add']:0,
"edit"=>isset($_REQUEST['notice_edit'])?$_REQUEST['notice_edit']:0,
"view"=>isset($_REQUEST['notice_view'])?$_REQUEST['notice_view']:1,
"delete"=>isset($_REQUEST['notice_delete'])?$_REQUEST['notice_delete']:0
],
"message"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/message.png'),
"menu_title"=>'Message',
"page_link"=>'message',
"own_data" => isset($_REQUEST['message_own_data'])?$_REQUEST['message_own_data']:1,
"add" => isset($_REQUEST['message_add'])?$_REQUEST['message_add']:1,
"edit"=>isset($_REQUEST['message_edit'])?$_REQUEST['message_edit']:0,
"view"=>isset($_REQUEST['message_view'])?$_REQUEST['message_view']:1,
"delete"=>isset($_REQUEST['message_delete'])?$_REQUEST['message_delete']:1
],
"holiday"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/holiday.png'),
"menu_title"=>'Holiday',
"page_link"=>'holiday',
"own_data" => isset($_REQUEST['holiday_own_data'])?$_REQUEST['holiday_own_data']:0,
"add" => isset($_REQUEST['holiday_add'])?$_REQUEST['holiday_add']:0,
"edit"=>isset($_REQUEST['holiday_edit'])?$_REQUEST['holiday_edit']:0,
"view"=>isset($_REQUEST['holiday_view'])?$_REQUEST['holiday_view']:1,
"delete"=>isset($_REQUEST['holiday_delete'])?$_REQUEST['holiday_delete']:0
],
"library"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/library.png'),
"menu_title"=>'Library',
"page_link"=>'library',
"own_data" => isset($_REQUEST['library_own_data'])?$_REQUEST['library_own_data']:1,
"add" => isset($_REQUEST['library_add'])?$_REQUEST['library_add']:0,
"edit"=>isset($_REQUEST['library_edit'])?$_REQUEST['library_edit']:0,
"view"=>isset($_REQUEST['library_view'])?$_REQUEST['library_view']:1,
"delete"=>isset($_REQUEST['library_delete'])?$_REQUEST['library_delete']:0
],
"account"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/account.png'),
"menu_title"=>'Account',
"page_link"=>'account',
"own_data" => isset($_REQUEST['account_own_data'])?$_REQUEST['account_own_data']:1,
"add" => isset($_REQUEST['account_add'])?$_REQUEST['account_add']:0,
"edit"=>isset($_REQUEST['account_edit'])?$_REQUEST['account_edit']:0,
"view"=>isset($_REQUEST['account_view'])?$_REQUEST['account_view']:1,
"delete"=>isset($_REQUEST['account_delete'])?$_REQUEST['account_delete']:0
],
"report"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/report.png'),
"menu_title"=>'Report',
"page_link"=>'report',
"own_data" => isset($_REQUEST['report_own_data'])?$_REQUEST['report_own_data']:0,
"add" => isset($_REQUEST['report_add'])?$_REQUEST['report_add']:0,
"edit"=>isset($_REQUEST['report_edit'])?$_REQUEST['report_edit']:0,
"view"=>isset($_REQUEST['report_view'])?$_REQUEST['report_view']:0,
"delete"=>isset($_REQUEST['report_delete'])?$_REQUEST['report_delete']:0
]
];
$role_access_right_support_staff = array();
$role_access_right_support_staff['supportstaff'] = [
"teacher"=>["menu_icone"=>plugins_url('school-management/assets/images/icons/teacher.png'),
"menu_title"=>'Teacher',
"page_link"=>'teacher',
"own_data" =>isset($_REQUEST['teacher_own_data'])?$_REQUEST['teacher_own_data']:0,
"add" =>isset($_REQUEST['teacher_add'])?$_REQUEST['teacher_add']:1,
"edit"=>isset($_REQUEST['teacher_edit'])?$_REQUEST['teacher_edit']:1,
"view"=>isset($_REQUEST['teacher_view'])?$_REQUEST['teacher_view']:1,
"delete"=>isset($_REQUEST['teacher_delete'])?$_REQUEST['teacher_delete']:1
],
"student"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/student-icon.png'),
"menu_title"=>'Student',
"page_link"=>'student',
"own_data" => isset($_REQUEST['student_own_data'])?$_REQUEST['student_own_data']:0,
"add" => isset($_REQUEST['student_add'])?$_REQUEST['student_add']:1,
"edit"=>isset($_REQUEST['student_edit'])?$_REQUEST['student_edit']:1,
"view"=>isset($_REQUEST['student_view'])?$_REQUEST['student_view']:1,
"delete"=>isset($_REQUEST['student_delete'])?$_REQUEST['student_delete']:1
],
"parent"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/parents.png'),
"menu_title"=>'Parent',
"page_link"=>'parent',
"own_data" => isset($_REQUEST['parent_own_data'])?$_REQUEST['parent_own_data']:0,
"add" => isset($_REQUEST['parent_add'])?$_REQUEST['parent_add']:1,
"edit"=>isset($_REQUEST['parent_edit'])?$_REQUEST['parent_edit']:1,
"view"=>isset($_REQUEST['parent_view'])?$_REQUEST['parent_view']:1,
"delete"=>isset($_REQUEST['parent_delete'])?$_REQUEST['parent_delete']:1
],
"subject"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/subject.png'),
"menu_title"=>'Subject',
"page_link"=>'subject',
"own_data" => isset($_REQUEST['subject_own_data'])?$_REQUEST['subject_own_data']:0,
"add" => isset($_REQUEST['subject_add'])?$_REQUEST['subject_add']:1,
"edit"=>isset($_REQUEST['subject_edit'])?$_REQUEST['subject_edit']:1,
"view"=>isset($_REQUEST['subject_view'])?$_REQUEST['subject_view']:1,
"delete"=>isset($_REQUEST['subject_delete'])?$_REQUEST['subject_delete']:1
],
"schedule"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/class-route.png'),
"menu_title"=>'Class Routine',
"page_link"=>'schedule',
"own_data" => isset($_REQUEST['schedule_own_data'])?$_REQUEST['schedule_own_data']:0,
"add" => isset($_REQUEST['schedule_add'])?$_REQUEST['schedule_add']:0,
"edit"=>isset($_REQUEST['schedule_edit'])?$_REQUEST['schedule_edit']:0,
"view"=>isset($_REQUEST['schedule_view'])?$_REQUEST['schedule_view']:0,
"delete"=>isset($_REQUEST['schedule_delete'])?$_REQUEST['schedule_delete']:0
],
"virtual_classroom"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/virtual_classroom.png'),
"menu_title"=>'virtual_classroom',
"page_link"=>'virtual_classroom',
"own_data" => isset($_REQUEST['virtual_classroom_own_data'])?$_REQUEST['virtual_classroom_own_data']:0,
"add" => isset($_REQUEST['virtual_classroom_add'])?$_REQUEST['virtual_classroom_add']:1,
"edit"=>isset($_REQUEST['virtual_classroom_edit'])?$_REQUEST['virtual_classroom_edit']:1,
"view"=>isset($_REQUEST['virtual_classroom_view'])?$_REQUEST['virtual_classroom_view']:1,
"delete"=>isset($_REQUEST['virtual_classroom_delete'])?$_REQUEST['virtual_classroom_delete']:1
],
"attendance"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/attandance.png'),
"menu_title"=>'Attendance',
"page_link"=>'attendance',
"own_data" => isset($_REQUEST['attendance_own_data'])?$_REQUEST['attendance_own_data']:0,
"add" => isset($_REQUEST['attendance_add'])?$_REQUEST['attendance_add']:0,
"edit"=>isset($_REQUEST['attendance_edit'])?$_REQUEST['attendance_edit']:0,
"view"=>isset($_REQUEST['attendance_view'])?$_REQUEST['attendance_view']:1,
"delete"=>isset($_REQUEST['attendance_delete'])?$_REQUEST['attendance_delete']:0
],
"exam"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/exam.png'),
"menu_title"=>'Exam',
"page_link"=>'exam',
"own_data" => isset($_REQUEST['exam_own_data'])?$_REQUEST['exam_own_data']:0,
"add" => isset($_REQUEST['exam_add'])?$_REQUEST['exam_add']:1,
"edit"=>isset($_REQUEST['exam_edit'])?$_REQUEST['exam_edit']:1,
"view"=>isset($_REQUEST['exam_view'])?$_REQUEST['exam_view']:1,
"delete"=>isset($_REQUEST['exam_delete'])?$_REQUEST['exam_delete']:1
],
"hostel"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/hostel.png'),
"menu_title"=>'Hostel',
"page_link"=>'hostel',
"own_data" => isset($_REQUEST['hostel_own_data'])?$_REQUEST['hostel_own_data']:0,
"add" => isset($_REQUEST['hostel_add'])?$_REQUEST['hostel_add']:1,
"edit"=>isset($_REQUEST['hostel_edit'])?$_REQUEST['hostel_edit']:1,
"view"=>isset($_REQUEST['hostel_view'])?$_REQUEST['hostel_view']:1,
"delete"=>isset($_REQUEST['hostel_delete'])?$_REQUEST['hostel_delete']:1
],
"homework"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/homework.png'),
"menu_title"=>'Home Work',
"page_link"=>'homework',
"own_data" => isset($_REQUEST['homework_own_data'])?$_REQUEST['homework_own_data']:0,
"add" => isset($_REQUEST['homework_add'])?$_REQUEST['homework_add']:1,
"edit"=>isset($_REQUEST['homework_edit'])?$_REQUEST['homework_edit']:1,
"view"=>isset($_REQUEST['homework_view'])?$_REQUEST['homework_view']:1,
"delete"=>isset($_REQUEST['homework_delete'])?$_REQUEST['homework_delete']:1
],
"manage_marks"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/mark-manage.png'),
"menu_title"=>'Mark Manage',
"page_link"=>'manage_marks',
"own_data" => isset($_REQUEST['manage_marks_own_data'])?$_REQUEST['manage_marks_own_data']:0,
"add" => isset($_REQUEST['manage_marks_add'])?$_REQUEST['manage_marks_add']:1,
"edit"=>isset($_REQUEST['manage_marks_edit'])?$_REQUEST['manage_marks_edit']:1,
"view"=>isset($_REQUEST['manage_marks_view'])?$_REQUEST['manage_marks_view']:1,
"delete"=>isset($_REQUEST['manage_marks_delete'])?$_REQUEST['manage_marks_delete']:0
],
"feepayment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/fee.png'),
"menu_title"=>'Fee Payment',
"page_link"=>'feepayment',
"own_data" => isset($_REQUEST['feepayment_own_data'])?$_REQUEST['feepayment_own_data']:0,
"add" => isset($_REQUEST['feepayment_add'])?$_REQUEST['feepayment_add']:1,
"edit"=>isset($_REQUEST['feepayment_edit'])?$_REQUEST['feepayment_edit']:1,
"view"=>isset($_REQUEST['feepayment_view'])?$_REQUEST['feepayment_view']:1,
"delete"=>isset($_REQUEST['feepayment_delete'])?$_REQUEST['feepayment_delete']:1
],
"payment"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/payment.png'),
"menu_title"=>'Payment',
"page_link"=>'payment',
"own_data" => isset($_REQUEST['payment_own_data'])?$_REQUEST['payment_own_data']:0,
"add" => isset($_REQUEST['payment_add'])?$_REQUEST['payment_add']:1,
"edit"=>isset($_REQUEST['payment_edit'])?$_REQUEST['payment_edit']:1,
"view"=>isset($_REQUEST['payment_view'])?$_REQUEST['payment_view']:1,
"delete"=>isset($_REQUEST['payment_delete'])?$_REQUEST['payment_delete']:1
],
"transport"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/transport.png'),
"menu_title"=>'Transport',
"page_link"=>'transport',
"own_data" => isset($_REQUEST['transport_own_data'])?$_REQUEST['transport_own_data']:0,
"add" => isset($_REQUEST['transport_add'])?$_REQUEST['transport_add']:1,
"edit"=>isset($_REQUEST['transport_edit'])?$_REQUEST['transport_edit']:1,
"view"=>isset($_REQUEST['transport_view'])?$_REQUEST['transport_view']:1,
"delete"=>isset($_REQUEST['transport_delete'])?$_REQUEST['transport_delete']:1
],
"notice"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/notice.png'),
"menu_title"=>'Notice Board',
"page_link"=>'notice',
"own_data" => isset($_REQUEST['notice_own_data'])?$_REQUEST['notice_own_data']:0,
"add" => isset($_REQUEST['notice_add'])?$_REQUEST['notice_add']:1,
"edit"=>isset($_REQUEST['notice_edit'])?$_REQUEST['notice_edit']:1,
"view"=>isset($_REQUEST['notice_view'])?$_REQUEST['notice_view']:1,
"delete"=>isset($_REQUEST['notice_delete'])?$_REQUEST['notice_delete']:0
],
"message"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/message.png'),
"menu_title"=>'Message',
"page_link"=>'message',
"own_data" => isset($_REQUEST['message_own_data'])?$_REQUEST['message_own_data']:1,
"add" => isset($_REQUEST['message_add'])?$_REQUEST['message_add']:1,
"edit"=>isset($_REQUEST['message_edit'])?$_REQUEST['message_edit']:0,
"view"=>isset($_REQUEST['message_view'])?$_REQUEST['message_view']:1,
"delete"=>isset($_REQUEST['message_delete'])?$_REQUEST['message_delete']:1
],
"holiday"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/holiday.png'),
"menu_title"=>'Holiday',
"page_link"=>'holiday',
"own_data" => isset($_REQUEST['holiday_own_data'])?$_REQUEST['holiday_own_data']:0,
"add" => isset($_REQUEST['holiday_add'])?$_REQUEST['holiday_add']:1,
"edit"=>isset($_REQUEST['holiday_edit'])?$_REQUEST['holiday_edit']:1,
"view"=>isset($_REQUEST['holiday_view'])?$_REQUEST['holiday_view']:1,
"delete"=>isset($_REQUEST['holiday_delete'])?$_REQUEST['holiday_delete']:1
],
"library"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/library.png'),
"menu_title"=>'Library',
"page_link"=>'library',
"own_data" => isset($_REQUEST['library_own_data'])?$_REQUEST['library_own_data']:0,
"add" => isset($_REQUEST['library_add'])?$_REQUEST['library_add']:1,
"edit"=>isset($_REQUEST['library_edit'])?$_REQUEST['library_edit']:1,
"view"=>isset($_REQUEST['library_view'])?$_REQUEST['library_view']:1,
"delete"=>isset($_REQUEST['library_delete'])?$_REQUEST['library_delete']:1
],
"account"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/account.png'),
"menu_title"=>'Account',
"page_link"=>'account',
"own_data" => isset($_REQUEST['account_own_data'])?$_REQUEST['account_own_data']:1,
"add" => isset($_REQUEST['account_add'])?$_REQUEST['account_add']:0,
"edit"=>isset($_REQUEST['account_edit'])?$_REQUEST['account_edit']:0,
"view"=>isset($_REQUEST['account_view'])?$_REQUEST['account_view']:1,
"delete"=>isset($_REQUEST['account_delete'])?$_REQUEST['account_delete']:0
],
"report"=>['menu_icone'=>plugins_url( 'school-management/assets/images/icons/report.png'),
"menu_title"=>'Report',
"page_link"=>'report',
"own_data" => isset($_REQUEST['report_own_data'])?$_REQUEST['report_own_data']:0,
"add" => isset($_REQUEST['report_add'])?$_REQUEST['report_add']:0,
"edit"=>isset($_REQUEST['report_edit'])?$_REQUEST['report_edit']:0,
"view"=>isset($_REQUEST['report_view'])?$_REQUEST['report_view']:1,
"delete"=>isset($_REQUEST['report_delete'])?$_REQUEST['report_delete']:0
]
];
$options=array(
"smgt_school_name"=> __( 'School Title Here' ,'school-mgt'),
"smgt_staring_year"=>"",