-
Notifications
You must be signed in to change notification settings - Fork 987
/
adminmenu.php
113 lines (99 loc) · 6.71 KB
/
adminmenu.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
<div class='menubar'>
<div class='menubar-title ui-widget-header'>
<div class='menubar-title-left'>
<strong><?php $clang->eT("Administration");?></strong>
<?php
if(Yii::app()->session['loginID'])
{ ?>
-- <?php $clang->eT("Logged in as:");?><strong>
<a href="<?php echo $this->createUrl("/admin/user/personalsettings"); ?>">
<?php echo Yii::app()->session['user'];?> <img src='<?php echo $sImageURL;?>profile_edit.png' alt='<?php $clang->eT("Edit your personal preferences");?>' /></a>
</strong>
<?php } ?>
</div>
<?php
if($showupdate)
{ ?>
<div class='menubar-title-right'><a href='<?php echo $this->createUrl("admin/globalsettings");?>'><?php echo sprintf($clang->gT('Update available: %s'),$updateversion."($updatebuild)");?></a></div>
<?php } ?>
</div>
<div class='menubar-main'>
<div class='menubar-left'>
<a href="<?php echo $this->createUrl("/admin"); ?>">
<img src='<?php echo $sImageURL;?>home.png' alt='<?php $clang->eT("Default administration page");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<img src='<?php echo $sImageURL;?>blank.gif' alt='' width='11' />
<img src='<?php echo $sImageURL;?>separator.gif' id='separator1' class='separator' alt='' />
<a href="<?php echo $this->createUrl("admin/user/index"); ?>">
<img src='<?php echo $sImageURL;?>security.png' alt='<?php $clang->eT("Manage survey administrators");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<a href="<?php echo $this->createUrl("admin/usergroups/index"); ?>">
<img src='<?php echo $sImageURL;?>usergroup.png' alt='<?php $clang->eT("Create/edit groups");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<?php
if(Yii::app()->session['USER_RIGHT_CONFIGURATOR'] == 1)
{ ?>
<a href="<?php echo $this->createUrl("admin/globalsettings"); ?>">
<img src='<?php echo $sImageURL;?>global.png' alt='<?php $clang->eT("Global settings");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<img src='<?php echo $sImageURL;?>separator.gif' class='separator' alt='' />
<?php }
if(Yii::app()->session['USER_RIGHT_CONFIGURATOR'] == 1)
{ ?>
<a href="<?php echo $this->createUrl("admin/checkintegrity"); ?>">
<img src='<?php echo $sImageURL;?>checkdb.png' alt='<?php $clang->eT("Check Data Integrity");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<?php
}
if(Yii::app()->session['USER_RIGHT_SUPERADMIN'] == 1)
{
if (in_array(Yii::app()->db->getDriverName(), array('mysql', 'mysqli')) || Yii::app()->getConfig('demoMode') == true)
{
?>
<a href="<?php echo $this->createUrl("admin/dumpdb"); ?>" >
<img src='<?php echo $sImageURL;?>backup.png' alt='<?php $clang->eT("Backup Entire Database");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/>
</a>
<?php } else { ?>
<img src='<?php echo $sImageURL; ?>backup_disabled.png' alt='<?php $clang->eT("The database export is only available for MySQL databases. For other database types please use the according backup mechanism to create a database dump."); ?>' />
<?php } ?>
<img src='<?php echo $sImageURL; ?>separator.gif' class='separator' alt='' />
<?php
}
if(Yii::app()->session['USER_RIGHT_MANAGE_LABEL'] == 1)
{
?>
<a href="<?php echo $this->createUrl("admin/labels/view"); ?>" >
<img src='<?php echo $sImageURL;?>labels.png' alt='<?php $clang->eT("Edit label sets");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<img src='<?php echo $sImageURL;?>separator.gif' class='separator' alt='' />
<?php }
if(Yii::app()->session['USER_RIGHT_MANAGE_TEMPLATE'] == 1)
{ ?>
<a href="<?php echo $this->createUrl("admin/templates/view"); ?>">
<img src='<?php echo $sImageURL;?>templates.png' alt='<?php $clang->eT("Template Editor");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<?php } ?>
<img src='<?php echo $sImageURL;?>separator.gif' class='separator' alt='' />
<?php
if(Yii::app()->session['USER_RIGHT_PARTICIPANT_PANEL'] == 1)
{ ?>
<a href="<?php echo $this->createUrl("admin/participants/index"); ?>" >
<img src='<?php echo $sImageURL;?>cpdb.png' alt='<?php $clang->eT("Central participant database/panel");?>' width='<?php echo $iconsize;?>' height='<?php echo $iconsize;?>'/></a>
<?php } ?>
</div>
<div class='menubar-right'>
<label for='surveylist'><?php $clang->eT("Surveys:");?></label>
<select id='surveylist' name='surveylist' onchange="window.open(this.options[this.selectedIndex].value,'_top')">
<?php echo getSurveyList(false, false, $surveyid); ?>
</select>
<a href="<?php echo $this->createUrl("admin/survey/index"); ?>">
<img src='<?php echo $sImageURL;?>surveylist.png' alt='<?php $clang->eT("Detailed list of surveys");?>' />
</a>
<?php
if(Yii::app()->session['USER_RIGHT_CREATE_SURVEY'] == 1)
{ ?>
<a href="<?php echo $this->createUrl("admin/survey/newsurvey"); ?>">
<img src='<?php echo $sImageURL;?>add.png' alt='<?php $clang->eT("Create, import, or copy a survey");?>' /></a>
<?php } ?>
<img id='separator2' src='<?php echo $sImageURL;?>separator.gif' class='separator' alt='' />
<a href="<?php echo $this->createUrl("admin/authentication/logout"); ?>" >
<img src='<?php echo $sImageURL;?>logout.png' alt='<?php $clang->eT("Logout");?>' /></a>
<a href="http://docs.limesurvey.org" target="_blank">
<img src='<?php echo $sImageURL;?>showhelp.png' alt='<?php $clang->eT("LimeSurvey online manual");?>' /></a>
</div>
</div>
</div>
<p style='margin:0;font-size:1px;line-height:1px;height:1px;'> </p>