/
usergroupbar_view.php
62 lines (58 loc) · 3.55 KB
/
usergroupbar_view.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
<div class='menubar'>
<div class='menubar-title ui-widget-header'>
<strong><?php $clang->eT("User group"); ?></strong>
<?php if($ugid && $grpresultcount > 0)
{
echo "{$grow['name']}";
} ?>
</div>
<div class='menubar-main'>
<div class='menubar-left'>
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='55' height='20' />
<img src='<?php echo $imageurl; ?>separator.gif' class='separator' alt='' />
<?php if($ugid && $grpresultcount > 0)
{ ?>
<a href="<?php echo $this->createUrl("admin/usergroups/sa/mail/ugid/".$ugid); ?>">
<img src='<?php echo $imageurl; ?>invite.png' alt='<?php $clang->eT("Mail to all Members"); ?>' name='MailUserGroup' /></a>
<?php }
else
{ ?>
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='40' height='20' />
<?php } ?>
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='78' height='20' />
<img src='<?php echo $imageurl; ?>separator.gif' class='separator' alt='' />
<?php if($ugid && $grpresultcount > 0 && (Yii::app()->session['loginID'] == $grow['owner_id'] || hasGlobalPermission('USER_RIGHT_SUPERADMIN')))
{ ?>
<a href="<?php echo $this->createUrl("admin/usergroups/sa/edit/ugid/".$ugid); ?>">
<img src='<?php echo $imageurl; ?>edit.png' alt='<?php $clang->eT("Edit current user group"); ?>' name='EditUserGroup' /></a>
<?php }
else
{ ?>
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='40' height='20' />
<?php }
if($ugid && $grpresultcount > 0 && (Yii::app()->session['loginID'] == $grow['owner_id'] || hasGlobalPermission('USER_RIGHT_SUPERADMIN')))
{ ?>
<a href='#' onclick="if (confirm('<?php $clang->eT("Are you sure you want to delete this entry?","js"); ?>')) { <?php echo convertGETtoPOST($this->createUrl('admin/usergroups/sa/delete/ugid/'.$ugid)); ?>}">
<img src='<?php echo $imageurl; ?>delete.png' alt='<?php $clang->eT("Delete current user group"); ?>' name='DeleteUserGroup' /></a>
<?php }
else
{ ?>
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='40' height='20' />
<?php } ?>
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='92' height='20' />
<img src='<?php echo $imageurl; ?>separator.gif' class='separator' alt='' />
</div>
<div class='menubar-right'>
<label for="ugid"><?php $clang->eT("User groups"); ?>:</label> <select name='ugid' id='ugid' onchange="window.location=this.options[this.selectedIndex].value">
<?php echo getUserGroupList($ugid,'optionlist'); ?>
</select>
<?php if (Yii::app()->session['USER_RIGHT_SUPERADMIN'] == 1)
{ ?>
<a href='<?php echo $this->createUrl("admin/usergroups/sa/add"); ?>'>
<img src='<?php echo $imageurl; ?>add.png' alt='<?php $clang->eT("Add new user group"); ?>' /></a>
<?php } ?>
<img src='<?php echo $imageurl; ?>separator.gif' class='separator' alt='' />
<img src='<?php echo $imageurl; ?>blank.gif' alt='' width='82' height='20' />
</div></div>
</div>
<p style='margin:0;font-size:1px;line-height:1px;height:1px;'> </p>