diff options
| author | michael pereira | 2011-04-10 21:05:24 +0200 |
|---|---|---|
| committer | michael pereira | 2011-04-10 21:05:24 +0200 |
| commit | ce62cf823e40aaf60389a28520390c9373cb3253 (patch) | |
| tree | c4d027e88ea39ecf8d4f6717d7fe6d0f3cec2d4a /application/modules/user/views/scripts/bootmenu | |
| parent | kcl fixed (diff) | |
| download | pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.tar.gz pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.tar.xz pbs2-ce62cf823e40aaf60389a28520390c9373cb3253.zip | |
Config Own/Group getrennt
Diffstat (limited to 'application/modules/user/views/scripts/bootmenu')
| -rw-r--r-- | application/modules/user/views/scripts/bootmenu/index.phtml | 150 |
1 files changed, 90 insertions, 60 deletions
diff --git a/application/modules/user/views/scripts/bootmenu/index.phtml b/application/modules/user/views/scripts/bootmenu/index.phtml index 0b4b12f..751b648 100644 --- a/application/modules/user/views/scripts/bootmenu/index.phtml +++ b/application/modules/user/views/scripts/bootmenu/index.phtml @@ -2,30 +2,35 @@ <?php if($this->notification != ''){echo $this->notification;} ?> <div id='notification' style='display:none;'></div> <?php echo $this->searchform; ?> + +<?php if(Pbs_Acl::checkRight('booc')): ?> <?php echo $this->formButton('createbootmenu', 'Create BootMenu', array( 'onclick' => 'self.location="/user/bootmenu/createbootmenu/page/'.$this->page.'"', 'class' => 'addbutton'))?> - +<?php endif;?> <div class='searchvars'> <div class='head'>Available searchfilter:</div> - <div class='code'>bootmenuID</div> + <?php if(Pbs_Acl::checkRight('booai')): ?> + <div class='code'>bootmenuID</div> + <?php endif; ?> <div class='code'>title</div> - <div class='code'>created</div> + <div class='code'>changed</div> </div> <div class='listelement'> <?php if(count($this->bootmenulist)==0) echo "There are no BootMenus to display." ?> - <?php foreach ($this->bootmenulist as $bootmenu): ?> + <?php foreach ($this->bootmenulist as $k => $bootmenu): ?> <?php $class=''; if($bootmenu->getDefaultbootmenu() == true) $class= 'highlight'; ?> <div class='element<?php echo " $class";?>'> - <div class='number'><?php echo $this->escape($bootmenu->getID()); ?></div> + <div class='number'><?php echo $k+1 ?></div> <div class='content'> - <div class='actions'> + <div class='actions'> + <?php if(Pbs_Acl::checkRight('booai')): ?> <?php if($bootmenu->getDefaultbootmenu() == true): ?> <a><img src='/media/img/default.png' alt='Checked as default'/></a> <?php else: ?> @@ -41,16 +46,20 @@ true, false) ?>"> <img src='/media/img/default_grey.png' alt='Not checked as default' /></a> <?php endif; ?> - <a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'editbootmenu', - '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('booe')): ?> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'editbootmenu', + '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')): ?> <a href="<?php echo $this->url( array( 'module' => 'user', @@ -61,61 +70,82 @@ ), 'default', true) ?>"><img src='/media/img/delete.png' alt='Delete Bootmenu'/></a> - <a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'addbootmenuentry', - 'bootmenuID' => $bootmenu->getID(), - 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), - 'page' => $this->page - ), - 'default', - true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a> + <?php endif; ?> + <?php if(Pbs_Acl::checkRight('booae')): ?> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'addbootmenuentry', + 'bootmenuID' => $bootmenu->getID(), + 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), + 'page' => $this->page + ), + 'default', + true) ?>"><img src='/media/img/add.png' alt='Add Entry'/></a> + <?php endif; ?> </div> <div class='title'><?php echo $this->escape($bootmenu->getTitle()); ?></div> <div class='subtitle'><?php echo count($this->bootmenuentrylist[$bootmenu->getID()]);?> Entrys - <?php echo $this->escape($bootmenu->getCreated()); ?></div> <div class='details dispnone'> - <?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $bootmenuentry): ?> + <?php if(Pbs_Acl::checkRight('booai')): ?> + <label>BootmenuID</label> + <div class='item'><?php echo $this->escape($bootmenu->getID()); ?></div> + <?php endif; ?> + <?php foreach ($this->bootmenuentrylist[$bootmenu->getID()] as $k => $bootmenuentry): ?> <div class='element'> - <div class='number'><?php echo $this->escape($bootmenuentry->getID()); ?></div> + <div class='number'><?php echo $k+1 ?></div> <div class='content'> <div class='actions'> - <a class='play' href="<?php echo $this->url( - array( - 'controller' => 'resource', - 'action' => 'getbootmenuentry', - 'bootmenuentryID' => $bootmenuentry->getID(), - 'page' => $this->page - ), - 'default', - true, false) ?>"><img src='/media/img/play.gif'></a> - <a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'editbootmenuentry', - 'bootmenuentryID' => $bootmenuentry->getID(), - 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), - 'oldorder' => $bootmenuentry->getOrder(), - 'page' => $this->page - ), - 'default', - true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a> - <a href="<?php echo $this->url( - array( - 'module' => 'user', - 'controller' => 'bootmenu', - 'action' => 'removebootmenuentry', - 'bootmenuentryID' => $bootmenuentry->getID(), - 'page' => $this->page - ), - 'default', - true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a> + <?php if(Pbs_Acl::checkRight('booai')): ?> + <a class='play' href="<?php echo $this->url( + array( + 'controller' => 'resource', + 'action' => 'getbootmenuentry', + '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')): ?> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'editbootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID(), + 'maxorder' => count($this->bootmenuentrylist[$bootmenu->getID()]), + 'oldorder' => $bootmenuentry->getOrder(), + 'page' => $this->page + ), + 'default', + true, false) ?>"><img src='/media/img/edit.png' alt='Edit Entry'/></a> + <?php endif; ?> + <?php if(Pbs_Acl::checkRight('boode')): ?> + <a href="<?php echo $this->url( + array( + 'module' => 'user', + 'controller' => 'bootmenu', + 'action' => 'removebootmenuentry', + 'bootmenuentryID' => $bootmenuentry->getID(), + 'page' => $this->page + ), + 'default', + true) ?>"><img src='/media/img/delete.png' alt='Remove Entry'/></a> + <?php endif; ?> </div> + <?php if(!Pbs_Acl::checkRight('booai')){ + $bootmenuentry->setBootosID(preg_replace("!^\[[0-9]+\]\s!",'',$bootmenuentry->getBootosID())); + $bootmenuentry->setConfigID(preg_replace("!^\[[0-9]+\]\s!",'',$bootmenuentry->getConfigID())); + } ?> <div class='title'><?php echo $this->escape($bootmenuentry->getTitle()); ?></div> <div class='subtitle'><?php echo $this->escape($bootmenuentry->getBootosID()) ?></div> <div class='details dispnone'> + <?php if(Pbs_Acl::checkRight('booai')): ?> + <label>BootmenuentryID</label> + <div class='item'><?php echo $this->escape($bootmenuentry->getID()); ?></div> + <?php endif; ?> <label>Default KCL</label> <div class='item'><?php echo $this->escape($bootmenuentry->getKcl()); ?></div> <label>KCL-Append</label> |
