diff options
| author | Simon | 2011-04-13 16:06:47 +0200 |
|---|---|---|
| committer | Simon | 2011-04-13 16:06:47 +0200 |
| commit | 1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8 (patch) | |
| tree | 05f40ad9d4306ead9abcdc1e71e15be378931f76 /application/modules/user/views/scripts/group | |
| parent | Einrückung und Layoutfehler korrigiert (diff) | |
| download | pbs2-1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8.tar.gz pbs2-1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8.tar.xz pbs2-1aa784bf7f97c7f9982b4cc6c36d28a7f83edcd8.zip | |
neue Rechte hinzugefügt & Teil 3
Diffstat (limited to 'application/modules/user/views/scripts/group')
| -rw-r--r-- | application/modules/user/views/scripts/group/index.phtml | 68 |
1 files changed, 46 insertions, 22 deletions
diff --git a/application/modules/user/views/scripts/group/index.phtml b/application/modules/user/views/scripts/group/index.phtml index e3b5082..def21f6 100644 --- a/application/modules/user/views/scripts/group/index.phtml +++ b/application/modules/user/views/scripts/group/index.phtml @@ -1,9 +1,12 @@ <h1>Groups Overview</h1> +<?php if($this->notification != ''){echo $this->notification;} ?> <?php echo $this->searchform; ?> +<?php if(Pbs_Acl::checkRight('gc')):?> <?php echo $this->formButton('addgroup', 'Add Group', array( 'onclick' => 'self.location="/user/group/add"', 'class' => 'addbutton')) ?> +<?php endif;?> <div class='searchvars'> <div class='head'>Available searchfilter:</div> @@ -33,30 +36,54 @@ $class= 'highlight checked'; ?> <div class='content'> <div class='actions'> - <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url( + <?php if($group->getID() == $this->userIDsNamespace['groupID'] ): ?> + <?php if(Pbs_Acl::checkRight('gsdo') ): ?> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'group', + 'action' => 'show' + ), + 'default', + true);?>"> + <img src='/media/img/show.png' alt='Show Group' /></a> + <?php endif; ?> + <?php if(Pbs_Acl::checkRight('geo')): ?> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'group', - 'action' => 'show' + 'action' => 'edit' ), 'default', - true); else echo $this->url( + true);?>"><img src='/media/img/edit.png' alt='Edit Group' /></a> + <?php endif; ?> + <?php if(Pbs_Acl::checkRight('gd')): ?> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'group', - 'action' => 'show', - 'groupID' => $group->getID() + 'action' => 'delete' ), 'default', - true); ?>"> <img src='/media/img/show.png' alt='Show Group' /> </a> - <a href="<?php if($group->getID() == $this->userIDsNamespace['groupID']) echo $this->url( + true);?>"><img src='/media/img/delete.png' alt='Delete Group' /></a> + <?php endif; ?> + + <?php endif; ?> + <?php if($group->getID() != $this->userIDsNamespace['groupID']) : ?> + <?php if(Pbs_Acl::checkRight('gsdog') ): ?> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'group', - 'action' => 'edit' + 'action' => 'show', + 'groupID' => $group->getID() ), 'default', - true); else echo $this->url( + true); ?>"><img src='/media/img/show.png' alt='Show Group' /></a> + <?php endif; ?> + <?php if(Pbs_Acl::checkRight('ge')): ?> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'group', @@ -64,15 +91,10 @@ $class= 'highlight checked'; '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( + true);?>"><img src='/media/img/edit.png' alt='Edit Group' /></a> + <?php endif; ?> + <?php if(Pbs_Acl::checkRight('gd')): ?> + <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'group', @@ -80,7 +102,9 @@ $class= 'highlight checked'; 'groupID' => $group->getID() ), 'default', - true); ?>"> <img src='/media/img/delete.png' alt='Delete Group' /></a> + true);?>"><img src='/media/img/delete.png' alt='Delete Group' /></a> + <?php endif; ?> + <?php endif; ?> </div> <div class='title'><?php echo $group->getTitle(); ?></div> <?php if($group->getDescription()) { @@ -99,10 +123,10 @@ $class= 'highlight checked'; <?php endforeach ?> </div> <?php echo $this->pagination; ?> - +<?php if(Pbs_Acl::checkRight('glk')): ?> <?php echo $this->formButton('linkgroups', 'Link Groups', array( 'onclick' => 'self.location="/user/group/link"', - 'class' => 'addbutton')) -?> + 'class' => 'addbutton'));?> +<?php endif ?> <br /> <br /> |
