-
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathwelcome_admin.php
More file actions
50 lines (46 loc) · 1.52 KB
/
Copy pathwelcome_admin.php
File metadata and controls
50 lines (46 loc) · 1.52 KB
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
<?php
/**
* Welcome Admin
*
* Handle Welcoming the Administrator
*
* PHP version 7.2.5
*
* @category Main_App
* @package UnlockED
* @author UnlockedLabs <developers@unlockedlabs.org>
* @license https://www.gnu.org/licenses/gpl.html GPLv3
* @link http://unlockedlabs.org
*/
namespace unlockedlabs\unlocked;
?>
<script>
window.addEventListener("load", function() {
var admin_title = '';
switch (<?php echo $_SESSION['admin_num'] ?>) {
case 1:
break;
case 2:
$('#admin-title').html('Facilitator').addClass('bg-indigo');
$('#admin-help').html('<i class="icon-help text-blue-400"></i>');
admin_title = 'a Facilitator';
break;
case 3:
$('#admin-title').html('Instructor').addClass('bg-orange');
$('#admin-help').html('<i class="icon-help text-blue-400"></i>');
admin_title = 'an Instructor';
break;
case 4:
$('#admin-title').html('School Administrator').addClass('bg-violet');
$('#admin-help').html('<i class="icon-help text-blue-400"></i>');
admin_title = 'a School Administrator';
break;
case 5:
$('#admin-title').html('Site Administrator').addClass('bg-pink');
$('#admin-help').html('<i class="icon-help text-blue-400"></i>');
admin_title = 'a Site Administrator';
break;
}
});
</script>
<?php //require 'traffic_sources.php'; ?>