summaryrefslogtreecommitdiffstats
path: root/application/modules/dev/views/scripts/role/index.phtml
blob: 59b66d79ebf9981c937366c37328dbb5782b76ca (plain) (blame)
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
<?php
if($this->groupID) {
	?>
<h1>Roles</h1>
	<?php echo $this->formButton('addrole', 'Add Role', array(
							'onclick' => 'self.location="/dev/role/add"',
							'class' => 'addbutton'))?>
<table>
	<tr>
		<th>Title</th>
		<th colspan=3>Actions</th>
	</tr>
	<?php
	$count = 0;
	foreach($this->roleList as $role) {
		?>
	<tr class="entry">
		<td><?php echo $role['title'] ?></td>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'role',
						'action'     => 'show',
						'roleID'   =>  $role['roleID']
					),
					'default',
					true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'role',
						'action'     => 'edit',
						'roleID'   =>  $role['roleID']
					),
					'default',
					true) ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'role',
						'action'     => 'delete',
						'roleID'   =>  $role['roleID']
					),
					'default',
					true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
		</td>
	</tr>
	<?php
	$count++;
	}
	?>
</table>
<?php echo $this->formButton('changeGroup', 'Change Group', array(
							'onclick' => 'self.location="/dev/role/changegroup"',
							'class' => 'rightbutton'))?>
<?php
}
?>