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
|
<h1>Roles</h1>
<?php
echo $this->searchform;
if($this->addRight) echo $this->formButton('addrole', 'Add Role', array(
'onclick' => 'self.location="/user/role/add"',
'class' => 'addbutton'));
?>
<div class='searchvars'>
<div class='head'>Available searchfilter:</div>
<div class='code'>title</div>
<div class='code'>description</div>
</div>
<div class='listelement'>
<?php if(count($this->roleList)==0)
echo "There are no roles" ?>
<?php foreach($this->roleList as $i => $grouproleList): ?>
<?php foreach($grouproleList as $k => $role): ?>
<?php
$class='';
if($role->getID() == $this->membership->getRoleID())
$class= 'highlight checked';
?>
<div class='element<?php echo " $class";?>'>
<?php if($role->getID() != $this->userIDsNamespace['roleID']) { ?>
<div class='number'>
<div class='smallnumber'>Role</div>
<?php echo $role->getID(); ?>
</div>
<?php
}
?>
<div class='content'>
<div class='actions'><?php if($this->detailsRight) {?>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'role',
'action' => 'show',
'roleID' => $role->getID()
),
'default',
true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a> <?php
}
if($this->editRight && $this->membership->getGroupID() == $role->getGroupID()) { ?>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'role',
'action' => 'edit',
'roleID' => $role->getID()
),
'default',
true) ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a> <?php
}
if($this->deleteRight && $this->membership->getGroupID() == $role->getGroupID()) { ?>
<a href="<?php echo $this->url(
array(
'module' => 'user',
'controller' => 'role',
'action' => 'delete',
'roleID' => $role->getID()
),
'default',
true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
<?php } ?>
</div>
<div class='title'><?php echo $role->getTitle();?></div>
<div class='subtitle'><?php echo $i." - ";?><?php echo $role->getDescription(); ?> </div></div>
<div class='clear'></div>
</div>
<?php endforeach ?>
<?php endforeach ?>
</div>
<?php echo $this->pagination; ?>
<br />
<br />
|