<h1>Groups</h1>
<?php echo $this->formButton('addgroup', 'Add Group', array(
'onclick' => 'self.location="/user/group/add"',
'class' => 'addbutton'))
?>
<table>
<tr>
<th>Title</th>
<th colspan=3>Actions</th>
</tr>
<?php
$count = 0;
foreach($this->groupList as $group) {
?>
<tr
<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo 'class="selectedEntry"'; else echo 'class="entry"'; ?>>
<td><?php echo $group->getTitle(); ?></td>
<td class='action'><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>
<td class='action'><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>
<td class='action'><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>
</td>
</tr>
<?php
$count++;
}
?>
</table>
<?php echo $this->formButton('linkgroups', 'Link Groups', array(
'onclick' => 'self.location="/user/group/link"',
'class' => 'addbutton'))
?>