summaryrefslogtreecommitdiffstats
path: root/application/modules/user/views/scripts/group/index.phtml
diff options
context:
space:
mode:
authorSimon2011-04-12 14:59:42 +0200
committerSimon2011-04-12 14:59:42 +0200
commit689d829bdb496bbe136fcd50014dbf31d5e1c6a0 (patch)
tree1fde016930a1b2b838ae3f060e1c7244a82e6a3c /application/modules/user/views/scripts/group/index.phtml
parentdefault-roles entfernt (diff)
parentverschiedene Korrekturen (diff)
downloadpbs2-689d829bdb496bbe136fcd50014dbf31d5e1c6a0.tar.gz
pbs2-689d829bdb496bbe136fcd50014dbf31d5e1c6a0.tar.xz
pbs2-689d829bdb496bbe136fcd50014dbf31d5e1c6a0.zip
merge
Diffstat (limited to 'application/modules/user/views/scripts/group/index.phtml')
-rw-r--r--application/modules/user/views/scripts/group/index.phtml105
1 files changed, 105 insertions, 0 deletions
diff --git a/application/modules/user/views/scripts/group/index.phtml b/application/modules/user/views/scripts/group/index.phtml
new file mode 100644
index 0000000..2e376b3
--- /dev/null
+++ b/application/modules/user/views/scripts/group/index.phtml
@@ -0,0 +1,105 @@
+<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
+if(count($this->groupList)==0)
+echo "There are no groups" ?> <?php foreach ($this->groupList as $k => $group): ?>
+<?php
+$class='';
+if($group->getID() == $this->userIDsNamespace['groupID'])
+$class= 'highlight checked';
+?>
+<div class='element<?php echo " $class";?>'><?php if($group->getID() != $this->userIDsNamespace['groupID']) {
+ ?>
+<div class='number'>
+ <div class='smallnumber'>Group</div>
+ <?php echo $k+1; ?>
+</div>
+ <?php
+}
+?>
+<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>
+<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>
+<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>
+ <?php if($group->getDescription()) {
+ ?>
+<div class='subtitle'><?php echo $group->getDescription(); ?></div>
+ <?php
+ } else {
+ ?>
+<div class='subtitle'>&nbsp;</div>
+ <?php
+ }
+ ?></div>
+<div class='clear'></div>
+</div>
+<?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 />