-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathadmin.php
executable file
·96 lines (72 loc) · 3.16 KB
/
admin.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
<?php
require_once('class/config.inc.php');
$page = new basic_page();
/*******Checking Authentication****************/
$page->auth->Checklogin();
$user = new User();
$notify = new Notification();
/**********************************************/
/*******Setting Page access Rules & checking Authorization****************/
$access_rule = array("Admin"=>"Admin");
$page -> setAccessRules($access_rule);
$page -> setAccessRulesType('all'); // any or all
$page -> CheckAuthorization();
/************************************************************************/
$page -> setPageKeywords('');
$page -> setPageDescription('');
$page -> setPageTitle("ADMIN");
$page -> setActiveButton('5');
$page -> setInnerNav('');
//$page -> setImportCss1('main_style.css');
//$page -> setImportCss2('form.css'); // each page should have it's own .css sheet. Link mulitple sheets here and below
$page -> SetDynamicCSS_1('main_style.php');
$page -> SetDynamicCSS_2('form.php');
$page -> setImportCss3('css/JTip.css');
$page -> setImportCss4('');
$page -> setImportCss5('');
$page -> setExtJavaScripts2('<script language="javascript" SRC="js/jtip.js"></script>'); // might not need
$page -> setExtJavaScripts1('<script language="javascript" SRC="js/jquery.js"></script>'); // might not need
$page -> setExtJavaScripts3(''); // might not need
$page -> setExtJavaScripts4(''); // might not need
//*********************Page Style *******************************//
// used to set page styles. This should be used sparingly. External css should be used instead.
$page_style = '';
$page -> setPageStyle($page_style);
$page -> displayPageTop();
// **********************Start html for content column ****************************//
$notify->Notify();
$index=$_REQUEST[index];
$user->user_id=$_REQUEST[user_id];
?>
<div id="content_column_header">
<h2>Administrative Panel</h2>
</div>
<div class="form_main">
<?php
$img = new APP_SETTINGS();
?>
<?php
if($_POST[submit]=='Submit')
{
$img->update_logo('server');
}
else
{
$img->update_logo('local');
}
?>
</div>
<?php
// **********************Closes the Content Column and begins Info Column ****************************//
$page-> printContentColumnEnd();
// **********************Start code for Info Column ****************************//
?>
<div class="form_main">
<div><a href="UserManagement.php"><button style="width: 150px; height: 40px; text-align: center;vertical-align: middle; font-size: 14px; font-weight: bold; " >Manage Users</button></a></div>
<div><a href="GroupManagement.php"><button style="width: 150px; height: 40px; text-align: center;vertical-align: middle; font-size: 14px; font-weight: bold; " >Manage Groups</button></a></div>
<div><a href="report_builder.php"><button style="width: 150px; height: 40px; text-align: center;vertical-align: middle; font-size: 14px; font-weight: bold; " >Report Builder</button></a></div>
<div><a href="theme_management.php"><button style="width: 150px; height: 40px; text-align: center;vertical-align: middle; font-size: 14px; font-weight: bold; " >Theme Management</button></a></div>
</div>
<?php
$page -> displayPageBottom();
?>