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

Source for file menurub.php

Documentation is available at menurub.php

  1. <?php
  2. /**
  3.  * @package linea21.modules
  4.  * @subpackage news
  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 (!function_exists('AuthenthificationProcess')) {
  13.   include_once("../lib/lib_common.php");
  14.   ReloadIndex('admin');
  15. }
  16. ////////////
  17.  
  18. //////////// Check Droits utilisateur ////////////
  19. if (!hasRight('news')) 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('news','add');
  29. if($todo=='list'$title=_t('news','list');
  30. if($todo=='mod'$title=_t('news','mod');
  31. if($todo=='sup'$title=_t('news','sup');
  32. if($todo=='det'$title=_t('news','det');
  33. ?>
  34. <div id="itemenu">
  35. <h1><?php echo $title?></h1>
  36. <div class="contentlink"><a href="<?php echo $rub_link_add?>"
  37.     id="content_link_add" title="<?php echo _t('news','add');?>"><?php echo _t('news','add');?></a>
  38. | <a href="<?php echo $rub_link_list?>" id="content_link_list"
  39.     title="<?php echo _t('news','list');?>"><?php echo _t('news','list');?></a>
  40. | <a href="<?php echo $search?>" id="content_link_search"
  41.     title="<?php echo _t('menu','search');?>"><?php echo _t('menu','search');?></a>
  42. </div>
  43. </div>

Documentation generated on Thu, 03 May 2012 15:06:17 +0200 by phpDocumentor 1.4.1