summaryrefslogblamecommitdiffstats
path: root/application/modules/user/views/scripts/role/index.phtml
blob: 8ca2bd64b0eced676f59f081de8a65b60f8eb54b (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
     
                                        













                                                                                                      

                                                                                                                                   





































                                                                                                              
                                     
 


      
<?php
if($this->userIDsNamespace['groupID']) {
	?>
<h1>Roles</h1>
	<?php echo $this->formButton('addrole', 'Add Role', array(
							'onclick' => 'self.location="/user/role/add"',
							'class' => 'addbutton'))?>
<table>
	<tr>
		<th>Title</th>
		<th colspan=3>Actions</th>
	</tr>
	<?php
	$count = 0;
	foreach($this->roleList as $role) {
		?>
	<tr
	<?php if($role['roleID'] == $this->userIDsNamespace['roleID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
		<td><?php echo $role['title'] ?></td>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'user',
						'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'	=> 'user',
						'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'	=> 'user',
						'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->pagination;
}
?>
<br />
<br />