summaryrefslogblamecommitdiffstats
path: root/application/modules/user/views/scripts/group/showall.phtml
blob: 2ed777a8d88359e82dd46f3cfe81817b63a8e999 (plain) (tree)
1
2
3
4
5
6
                        
                                



                                                                                                       







                                                       

                   





                                                                         
                                                    
                  



                                                                                                                              














                                                                                                               
                                                                                                                         














                                                                                                               
                                                                                                                         














                                                                                                              











                                                                                           


                                                                                                        

      
<h1>Groups Overview</h1>
<?php echo $this->searchform; ?>
<?php echo $this->formButton('addgroup', 'Add Group', array(
							'onclick' => 'self.location="/user/group/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
	$count = 0;
	if(count($this->groupList)==0)
		echo "There are no groups" ?>
	<?php foreach ($this->groupList as $group): ?>
		<?php 
		$class='';
		if($group->getID() == $this->userIDsNamespace['groupID'])
			$class= 'highlight checked';
		?>
		<div class='element<?php echo " $class";?>'>
  		<div class='content'>
  			<div class='actions'>
  				<a	href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'show'
					),
					'default',
					true); else echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'show',
						'groupID'   =>  $group->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/show.png' alt='Show Group' /></a></td>
				<a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'edit'
					),
					'default',
					true); else echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'edit',
						'groupID'   =>  $group->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/edit.png' alt='Edit Group' /></a></td>
				<a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'delete'
					),
					'default',
					true); else echo $this->url(
					array(
						'module'	=> 'user',
						'controller' => 'group',
						'action'     => 'delete',
						'groupID'   =>  $group->getID()
					),
					'default',
					true); ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
			</div>		  		
	  		<div class='title'><?php echo $group->getTitle(); ?></div>
	  		<div class='subtitle'><?php echo $group->getDescription(); ?></div>
  		</div>
  		<div class='clear'></div>
	</div>	
	<?php $count++; ?>
	<?php endforeach ?> 
</div>
<?php echo $this->pagination; ?>

<?php echo $this->formButton('linkgroups', 'Link Groups', array(
							'onclick' => 'self.location="/user/group/link"',
							'class' => 'addbutton'))
	?>
<br />
<br />