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 content
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  *  'Content' module is used by 'Publication' and 'Workshop' modules
  10.  */
  11.  
  12. //////////// Check Inclusion de pages ////////////
  13. if (!function_exists('AuthenthificationProcess')) {
  14.     include_once("../lib/lib_common.php");
  15.     ReloadIndex('admin');
  16. } 
  17. ////////////
  18.  
  19. //////////// Check Droits utilisateur ////////////
  20. if (!HaveRight('publication') && !HaveRight('workshop')) ReloadIndex('admin');
  21. ///////////
  22.  
  23. if($todo=='add') $title=$GLOBALS['lang']['contents']['add'];
  24. if($todo=='mod') $title=$GLOBALS['lang']['contents']['mod'];
  25. if($todo=='sup') $title=$GLOBALS['lang']['contents']['sup'];
  26. if($todo=='det') $title=$GLOBALS['lang']['contents']['det'];
  27.  
  28. if($type=='W') $rub_link_back="?rub=workshoprep&amp;todo=det&amp;id=".$parent;
  29. if($type=='P') $rub_link_back="?rub=publication&amp;todo=det&amp;id=".$parent;
  30. $search="search.php?rub=".$mod_inc;
  31.  
  32. ?>
  33. <div id="itemenu">
  34. <h1><?php echo $title; ?></h1>
  35. <div class="contentlink">
  36.                 <a href="<?php echo $rub_link_back; ?>" title="<? echo $GLOBALS['lang']['contents']['go_back'].$GLOBALS['lang']['contents'][$mod_inc.'_type']; ?>"><? echo $GLOBALS['lang']['contents']['go_back'].$GLOBALS['lang']['contents'][$mod_inc.'_type']; ?></a> 
  37.                 | 
  38.                 <a href="<?php echo $search; ?>" title="<? echo $GLOBALS['lang']['menu']['search'];?>"><? echo $GLOBALS['lang']['menu']['search'];?></a>
  39. </div>
  40. </div>

Documentation generated on Sat, 08 Nov 2008 14:53:16 +0100 by phpDocumentor 1.4.1