diff options
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu')
| -rw-r--r-- | application/modules/user/views/scripts/bootmenu/index.phtml | 34 |
1 files changed, 25 insertions, 9 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml index 751b648..4393c1f 100644 --- a/application/modules/user/views/scripts/bootmenu/index.phtml +++ b/application/modules/user/views/scripts/bootmenu/index.phtml @@ -3,11 +3,20 @@ <div id='notification' style='display:none;'></div> <?php echo $this->searchform; ?> -<?php if(Pbs_Acl::checkRight('booc')): ?> +<?php $conflabel = $this->type == 'group'?'own':'group';?> + +<?php if((Pbs_Acl::checkRight('booc') && $this->type== 'group') || (Pbs_Acl::checkRight('booco') && $this->type == 'own')): ?> <?php echo $this->formButton('createbootmenu', 'Create BootMenu', array( - 'onclick' => 'self.location="/user/bootmenu/createbootmenu/page/'.$this->page.'"', + 'onclick' => 'self.location="/user/bootmenu/createbootmenu/type/'.$this->type.'page/'.$this->page.'"', + 'class' => 'addbutton'))?> +<?php endif;?> + +<?php if(Pbs_Acl::checkRight('booai')): ?> +<?php echo $this->formButton('groupbootmenu', 'Show '.$conflabel.' Bootmenu', array( + 'onclick' => 'self.location="/user/bootmenu/index/type/'.$conflabel.'/page/'.$this->page.'"', 'class' => 'addbutton'))?> <?php endif;?> + <div class='searchvars'> <div class='head'>Available searchfilter:</div> <?php if(Pbs_Acl::checkRight('booai')): ?> @@ -30,7 +39,7 @@ <div class='number'><?php echo $k+1 ?></div> <div class='content'> <div class='actions'> - <?php if(Pbs_Acl::checkRight('booai')): ?> + <?php if(Pbs_Acl::checkRight('booai') && $this->type == 'group'): ?> <?php if($bootmenu->getDefaultbootmenu() == true): ?> <a><img src='/media/img/default.png' alt='Checked as default'/></a> <?php else: ?> @@ -39,6 +48,7 @@ 'module' => 'user', 'controller' => 'bootmenu', 'action' => 'defaultbootmenu', + 'type' => $this->type, 'bootmenuID' => $bootmenu->getID(), 'page' => $this->page ), @@ -47,36 +57,39 @@ <img src='/media/img/default_grey.png' alt='Not checked as default' /></a> <?php endif; ?> <?php endif; ?> - <?php if(Pbs_Acl::checkRight('booe')): ?> + <?php if(Pbs_Acl::checkRight('booe') && $this->type == 'group'): ?> <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', 'action' => 'editbootmenu', + 'type' => $this->type, 'bootmenuID' => $bootmenu->getID(), 'page' => $this->page ), 'default', true, false) ?>"><img src='/media/img/edit.png' alt='Edit Bootmenu'/></a> <?php endif; ?> - <?php if(Pbs_Acl::checkRight('bood')): ?> + <?php if(Pbs_Acl::checkRight('bood') && $this->type == 'group'): ?> <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', 'action' => 'deletebootmenu', + 'type' => $this->type, 'bootmenuID' => $bootmenu->getID(), 'page' => $this->page ), 'default', true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a> <?php endif; ?> - <?php if(Pbs_Acl::checkRight('booae')): ?> + <?php if((Pbs_Acl::checkRight('booae') && $this->type == 'group') || (Pbs_Acl::checkRight('booaeo') && $this->type == 'own')): ?> <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', 'action' => 'addbootmenuentry', + 'type' => $this->type, 'bootmenuID' => $bootmenu->getID(), 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), 'page' => $this->page @@ -97,24 +110,26 @@ <div class='number'><?php echo $k+1 ?></div> <div class='content'> <div class='actions'> - <?php if(Pbs_Acl::checkRight('booai')): ?> + <?php if((Pbs_Acl::checkRight('booai') && $this->type == 'group') || (Pbs_Acl::checkRight('booaio') && $this->type == 'own')): ?> <a class='play' href="<?php echo $this->url( array( 'controller' => 'resource', 'action' => 'getbootmenuentry', + 'type' => $this->type, 'bootmenuentryID' => $bootmenuentry->getID(), 'page' => $this->page ), 'default', true, false) ?>"><img src='/media/img/play.gif'></a> <?php endif; ?> - <?php if(Pbs_Acl::checkRight('booee') || Pbs_Acl::checkRight('booeem')): ?> + <?php if(((Pbs_Acl::checkRight('booee') || Pbs_Acl::checkRight('booeem')) && $this->type == 'group') || (Pbs_Acl::checkRight('booeeo') && $this->type == 'own')): ?> <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', 'action' => 'editbootmenuentry', 'bootmenuentryID' => $bootmenuentry->getID(), + 'type' => $this->type, 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), 'oldorder' => $bootmenuentry->getOrder(), 'page' => $this->page @@ -122,12 +137,13 @@ 'default', true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a> <?php endif; ?> - <?php if(Pbs_Acl::checkRight('boode')): ?> + <?php if((Pbs_Acl::checkRight('boode') && $this->type == 'group') || (Pbs_Acl::checkRight('boodeo') && $this->type == 'own')): ?> <a href="<?php echo $this->url( array( 'module' => 'user', 'controller' => 'bootmenu', 'action' => 'removebootmenuentry', + 'type' => $this->type, 'bootmenuentryID' => $bootmenuentry->getID(), 'page' => $this->page ), |
