linea21-core
[ class tree: linea21-core ] [ index: linea21-core ] [ all elements ]

Source for file menurub.php

Documentation is available at menurub.php

  1. <?php
  2. /**
  3.  * @package linea21.core
  4.  * @subpackage theme
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  */
  10.  
  11. //////////// Check Inclusion de pages ////////////
  12. if (!class_exists('auth')){
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. //////////// Check Droits utilisateur ////////////
  19. if (!$l21auth->isSuperAdmin()) ReloadIndex('admin');
  20. ////////////
  21.  
  22. $rub_link_add=$rub_link."&amp;todo=add";
  23. $rub_link_list=$rub_link."&amp;todo=list";
  24. $rub_link_mod=$rub_link."&amp;todo=mod";
  25. $rub_link_det=$rub_link."&amp;todo=det";
  26.  
  27. $search="search.php?rub=".$rub;
  28. if($todo=='add'$title=_t('theme','add');
  29. if($todo=='list'$title=_t('theme','list');
  30. if($todo=='mod'$title=_t('theme','mod');
  31. if($todo=='sup'$title=_t('theme','sup');
  32. if($todo=='det'$title=_t('theme','det');
  33. if($todo=='det' && isset($is_sd)) $title=_t('sdtheme','det');
  34.  
  35. ?>
  36. <div id="itemenu">
  37.     <h1><?php echo $title?></h1>
  38.     <div class="contentlink"><a href="<?php echo $rub_link_add?>" title="<?php echo _t('theme','add');?>"><i class="icon-plus"></i><?php echo _t('theme','add');?></a>
  39.     | <a href="<?php echo $rub_link_list?>" title="<?php echo _t('theme','list');?>"><i class="icon-list"></i><?php echo _t('theme','list');?></a>
  40.     | <a href="<?php echo $search?>" title="<?php echo _t('menu','search');?>"><i class="icon-search"></i><?php echo _t('menu','search');?></a>
  41.     </div>
  42. </div>

Documentation generated on Thu, 20 Mar 2014 16:48:47 +0100 by phpDocumentor 1.4.1