summaryrefslogblamecommitdiffstats
path: root/application/modules/user/views/scripts/role/index.phtml
blob: 80a42993ce795eee61332083db76edd6a6f0f5ec (plain) (tree)
1
2
3
4
5
6
7
8
9
10
     
                                        

              


                                                                                
                                                                                                      

                                                                                 













                                                                              





                                                                                  
             




                                                               






                                                                              
                                                                                                               


                                               






                                                                              
                                                                                                               


                                       







                                                                                                             

          











                                                                        
 




                             
 


      
<?php
if($this->userIDsNamespace['groupID']) {
	?>
<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 $k => $role): ?>
<?php
$class='';
if($role['roleID'] == $this->userIDsNamespace['roleID'])
$class= 'highlight checked';
?>
	<div class='element<?php echo " $class";?>'>
	<?php if($role['roleID'] != $this->userIDsNamespace['roleID']) {	?>
		<div class='number'>	
			<div class='smallnumber'>Role</div>
			<?php echo $k+1; ?>
		</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['roleID']
					),
					'default',
					true) ?>"> <img src='/media/img/show.png' alt='Show Group' /></a> <?php
	}
	if($this->editRight) { ?>
		<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> <?php
	}
if($this->deleteRight) { ?>
	<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>

<?php } ?>
</div>
<div class='title'><?php echo $role['title'] ?></div>
					<?php if($role['description']) {
						?>
<div class='subtitle'><?php echo $role['description']; ?></div>
						<?php
					} else {
						?>
<div class='subtitle'>&nbsp;</div>
						<?php
					}


?></div>
<div class='clear'></div>
</div>
<?php endforeach ?></div>
<?php echo $this->pagination;
}
?>
<br />
<br />