summaryrefslogblamecommitdiffstats
path: root/application/modules/dev/views/scripts/group/index.phtml
blob: a3d126918626a491b879efcae4c4e41db8d266ba (plain) (tree)
1
2
3
4
5
6
7
8



                                                                                                      

            

                                          




                                             
                          
                                                          





























                                                                                                              






                     
     


                                                                                                       
      
<h1>Groups</h1>
<?php echo $this->formButton('addgroup', 'Add Group', array(
							'onclick' => 'self.location="/dev/group/add"',
							'class' => 'addbutton'))?>
<table>
	<tr>
		<th>Title</th>
		<th colspan=3>Actions</th>
	</tr>
	<?php
	$count = 0;
	foreach($this->groupList as $group) {
		?>
	<tr class="entry">
		<td><?php echo $group->getTitle(); ?></td>
		<td class='action'><a
			href="<?php echo $this->url(
					array(
						'module'	=> 'dev',
						'controller' => 'group',
						'action'     => 'show',
						'groupID'   =>  $group->getID()
					),
					'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' => 'group',
						'action'     => 'edit',
						'groupID'   =>  $group->getID()
					),
					'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' => 'group',
						'action'     => 'delete',
						'groupID'   =>  $group->getID()
					),
					'default',
					true) ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a>
		</td>
	</tr>
	<?php
	$count++;
	}
	?>
</table>
<div>
<?php echo $this->formButton('linkgroups', 'Link Groups', array(
							'onclick' => 'self.location="/dev/group/link"',
							'class' => 'addbutton'))?>
</div>