Source for file common_menu.php
Documentation is available at common_menu.php 
 * @package linea21.templates  
 * @author linea21 <info@linea21.com>  
 * @param  $rub : connu de admin/index.php  
 * @license http://opensource.org/licenses/gpl-3.0.html  
* affichage des items du menu. Prise en charge de leur ETAT : actif ou non  
* @param string $rubactive   
* @param string $currentrub   
* @param string $accesskey   
* @return string $content  
function displayitem($rubactive, $currentrub, $accesskey)  
    if ($rubactive ==  $currentrub) {  
        $content =  "<li><a href=\"index.php?rub=" .  $currentrub .  "\" class=\"aactif\" accesskey=\"" .  $accesskey .  "\" title=\"" .  $GLOBALS['lang']['menu']['item'] .  ' : ' .  $GLOBALS['lang']['menu'][$currentrub] .  "\">" .  $GLOBALS['lang']['menu'][$currentrub] .  " <img src=\"" . THEME_ADMIN_PATH.  "images/puce_menu_select.gif\" width=\"10\" height=\"10\" alt=\"\" id=\"imgmenu\" /></a></li>\n";  
        $content =  "<li><a href=\"index.php?rub=" .  $currentrub .  "\" accesskey=\"" .  $accesskey .  "\" title=\"" .  $GLOBALS['lang']['menu'][$currentrub] .  "\">" .  $GLOBALS['lang']['menu'][$currentrub] .  "</a></li>\n";  
if (MOD_PUBLICATION ===  1 &&  HaveRight('publication')) {  
    if ($rub ==  'resources' ||  $rub ==  'contents') {  
        if (isset ($type) &&  $type ==  'W') $menu_constructor .=  displayitem('workshop', 'publication', 'd');  
        if (isset ($type) &&  $type ==  'P') $menu_constructor .=  displayitem('publication', 'publication', 'd');  
        $menu_constructor .=  displayitem($rub, 'publication', 'd');  
if (MOD_WORKSHOP ===  1 &&  HaveRight('workshop')) {  
    if ($rub ==  'resources' ||  $rub ==  'content' ||  $rub ==  'workshoprep') {  
        if (isset ($type) &&  $type ==  'W') $menu_constructor .=  displayitem('workshop', 'workshop', 'g');  
        if (isset ($type) &&  $type ==  'P') $menu_constructor .=  displayitem('publication', 'workshop', 'g');  
        if ($rub ==  'workshoprep') $menu_constructor .=  displayitem('workshop', 'workshop', 'g');  
        $menu_constructor .=  displayitem($rub, 'workshop', 'g', $GLOBALS['lang']['menu']);  
if (MOD_DASHBOARD ===  1 &&  HaveRight('dashboard')) $menu_constructor .=  displayitem($rub, 'dashboard', 'i');  
if (MOD_YELLOWPAGES ===  1 &&  HaveRight('yellowpages')) $menu_constructor .=  displayitem($rub, 'yellowpages', 'y');  
<div class="containermenu">  
        <?php echo  $menu_constructor; ?>  
<form method="post" action="search.php">  
    <div id="containersearch">  
        <span> <?php echo  $GLOBALS['lang']['menu']['search'];?></span>  
        <input type="text" name="search" id="searchincome" maxlength="150" accesskey="s" value="" />  
        <input type="submit" id="gosearch" name="valid" value="" />  
 
 
        
       |