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 resources
  5.  * @author linea21 <info@linea21.com>
  6.  * @version $id SVN
  7.  * @access public
  8.  * @license http://opensource.org/licenses/gpl-3.0.html
  9.  *  'Resource' 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($mod_inc)) ReloadIndex('admin');
  21. ///////////
  22.  
  23. if($todo=='add_l' || $todo=='add_m' || $todo=='add_b') $title=$GLOBALS['lang']['resources']['add'];
  24. if($todo=='add_l') $title.=" '".$GLOBALS['lang']['resources']['link_res']."'";
  25. if($todo=='add_m') $title.=" '".$GLOBALS['lang']['resources']['multi_res']."'";
  26. if($todo=='add_b') $title.=" '".$GLOBALS['lang']['resources']['biblio_res']."'";
  27. if($todo=='mod_l' || $todo=='mod_m' || $todo=='mod_b') $title=$GLOBALS['lang']['resources']['mod'];
  28. if($todo=='mod_l') $title.=" '".$GLOBALS['lang']['resources']['link_res']."'";
  29. if($todo=='mod_m') $title.=" '".$GLOBALS['lang']['resources']['multi_res']."'";
  30. if($todo=='mod_b') $title.=" '".$GLOBALS['lang']['resources']['biblio_res']."'";
  31. if($todo=='sup') $title=$GLOBALS['lang']['resources']['sup'];
  32. if($type=='W') $rub_link_back="?rub=workshoprep&amp;todo=det&amp;id=".$parent;
  33. if($type=='P') $rub_link_back="?rub=publication&amp;todo=det&amp;id=".$parent;
  34. $search="search.php?rub=".$mod_inc;
  35. ?>
  36. <div id="itemenu">
  37. <h1><?php echo cutText($title, 30, 1); ?></h1>
  38. <div class="contentlink">
  39.                 <a href="<?php echo $rub_link_back; ?>" title="<? echo $GLOBALS['lang']['resources']['go_back'].$GLOBALS['lang']['resources'][$mod_inc.'_type']; ?>"><? echo $GLOBALS['lang']['resources']['go_back'].$GLOBALS['lang']['resources'][$mod_inc.'_type']; ?></a> 
  40.                 | 
  41.                 <a href="<?php echo $search; ?>" title="<? echo $GLOBALS['lang']['menu']['search'];?>"><? echo $GLOBALS['lang']['menu']['search'];?></a>
  42. </div>
  43. </div>

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