menu manage for back and frontoffice are same code
This commit is contained in:
parent
21d56aa8a1
commit
09b9c6df94
@ -36,6 +36,8 @@
|
|||||||
class MenuTop {
|
class MenuTop {
|
||||||
|
|
||||||
var $require_left=array("eldy_backoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier
|
var $require_left=array("eldy_backoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier
|
||||||
|
var $hideifnotallowed=false; // Put 0 for back office menu, 1 for front office menu
|
||||||
|
|
||||||
var $atarget=""; // Valeur du target a utiliser dans les liens
|
var $atarget=""; // Valeur du target a utiliser dans les liens
|
||||||
|
|
||||||
|
|
||||||
@ -78,8 +80,8 @@ class MenuTop {
|
|||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
$idsel='id="home" ';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>';
|
||||||
|
|
||||||
|
|
||||||
// Third parties
|
// Third parties
|
||||||
@ -98,12 +100,17 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($conf->societe->enabled && $user->rights->societe->lire)
|
$idsel='id="companies" ';
|
||||||
|
if (($conf->societe->enabled && $user->rights->societe->lire)
|
||||||
|| ($conf->fournisseur->enabled && $user->rights->fournisseur->lire))
|
|| ($conf->fournisseur->enabled && $user->rights->fournisseur->lire))
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/index.php?mainmenu=companies&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("ThirdParties").'</a></td>';
|
{
|
||||||
else
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/index.php?mainmenu=companies&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("ThirdParties").'</a></td>';
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("ThirdParties").'</font></td>';
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("ThirdParties").'</a></td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Products-Services
|
// Products-Services
|
||||||
@ -125,34 +132,16 @@ class MenuTop {
|
|||||||
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
|
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
|
||||||
if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); }
|
if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); }
|
||||||
|
|
||||||
|
$idsel='id="products" ';
|
||||||
if ($user->rights->produit->lire)
|
if ($user->rights->produit->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/product/index.php?mainmenu=products&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$chaine.'</a></td>';
|
|
||||||
else
|
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$chaine.'</font></td>';
|
|
||||||
}
|
|
||||||
|
|
||||||
// Suppliers
|
|
||||||
/*
|
|
||||||
if ($conf->fournisseur->enabled)
|
|
||||||
{
|
|
||||||
$langs->load("suppliers");
|
|
||||||
|
|
||||||
$class="";
|
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers")
|
|
||||||
{
|
{
|
||||||
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/product/index.php?mainmenu=products&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$chaine.'</a></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$chaine.'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->fournisseur->lire)
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/fourn/index.php?mainmenu=suppliers&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Suppliers").'</a></td>';
|
|
||||||
else
|
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Suppliers").'</font></td>';
|
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
// Commercial
|
// Commercial
|
||||||
/*$showcommercial=0;
|
/*$showcommercial=0;
|
||||||
@ -176,11 +165,16 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($user->rights->societe->lire)
|
$idsel='id="commercial" ';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/comm/index.php?mainmenu=commercial&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").'</a></td>';
|
if($user->rights->societe->lire)
|
||||||
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/comm/index.php?mainmenu=commercial&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Commercial").'</font></td>';
|
{
|
||||||
}
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("Commercial").'</a></td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Financial
|
// Financial
|
||||||
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled
|
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled
|
||||||
@ -198,11 +192,16 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$idsel='id="accountancy" ';
|
||||||
if ($user->rights->compta->resultat->lire || $user->rights->comptaexpert->plancompte->lire
|
if ($user->rights->compta->resultat->lire || $user->rights->comptaexpert->plancompte->lire
|
||||||
|| $user->rights->facture->lire || $user->rights->banque->lire)
|
|| $user->rights->facture->lire || $user->rights->banque->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuFinancial").'</a></td>';
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuFinancial").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("MenuFinancial").'</font></td>';
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("MenuFinancial").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Projects
|
// Projects
|
||||||
@ -220,10 +219,15 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$idsel='id="project" ';
|
||||||
if ($user->rights->projet->lire)
|
if ($user->rights->projet->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Projects").'</a></td>';
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Projects").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Projects").'</font></td>';
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("Projects").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tools
|
// Tools
|
||||||
@ -242,12 +246,15 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$idsel='id="tools" ';
|
||||||
if ($user->rights->mailing->lire || $user->rights->bookmark->lire || $user->rights->export->lire)
|
if ($user->rights->mailing->lire || $user->rights->bookmark->lire || $user->rights->export->lire)
|
||||||
//print '<a '.$class.' href="'.DOL_URL_ROOT.'/comm/mailing/index.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a>';
|
{
|
||||||
//print '<a '.$class.' href="'.DOL_URL_ROOT.'/societe.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a>';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/index.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a></td>';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/index.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a></td>';
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Tools").'</font></td>';
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("Tools").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Telephonie
|
// Telephonie
|
||||||
@ -263,7 +270,8 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/telephonie/index.php?mainmenu=telephonie"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a></td>';
|
$idsel='id="telephonie" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/telephonie/index.php?mainmenu=telephonie"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Energie
|
// Energie
|
||||||
@ -280,7 +288,8 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/energie/index.php?mainmenu=energie"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a></td>';
|
$idsel='id="energie" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/energie/index.php?mainmenu=energie"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// OSCommerce 1
|
// OSCommerce 1
|
||||||
@ -298,7 +307,8 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/boutique/index.php?mainmenu=shop&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
$idsel='id="shop" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/boutique/index.php?mainmenu=shop&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// OSCommerce 2
|
// OSCommerce 2
|
||||||
@ -316,13 +326,14 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/oscommerce_ws/index.php?mainmenu=shop&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
$idsel='id="shop" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/oscommerce_ws/index.php?mainmenu=shop&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Members
|
// Members
|
||||||
if ($conf->adherent->enabled)
|
if ($conf->adherent->enabled)
|
||||||
{
|
{
|
||||||
// $langs->load("members"); Added in main file to increase
|
// $langs->load("members"); Added in main file
|
||||||
|
|
||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members")
|
||||||
@ -334,10 +345,15 @@ class MenuTop {
|
|||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$idsel='id="members" ';
|
||||||
if ($user->rights->adherent->lire)
|
if ($user->rights->adherent->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/adherents/index.php?mainmenu=members&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").'</a></td>';
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/adherents/index.php?mainmenu=members&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("MenuMembers").'</font></td>';
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("MenuMembers").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -351,7 +367,8 @@ class MenuTop {
|
|||||||
{
|
{
|
||||||
if ($tabMenu[$i]['enabled'] == true)
|
if ($tabMenu[$i]['enabled'] == true)
|
||||||
{
|
{
|
||||||
if ($tabMenu[$i]['right'] == true)
|
$idsel=(empty($tabMenu[$i]['mainmenu'])?'id="none" ':'id="'.$tabMenu[$i]['mainmenu'].'" ');
|
||||||
|
if ($tabMenu[$i]['right'] == true)
|
||||||
{
|
{
|
||||||
$url=DOL_URL_ROOT.$tabMenu[$i]['url'];
|
$url=DOL_URL_ROOT.$tabMenu[$i]['url'];
|
||||||
if (! eregi('\?',DOL_URL_ROOT.$tabMenu[$i]['url'])) $url.='?';
|
if (! eregi('\?',DOL_URL_ROOT.$tabMenu[$i]['url'])) $url.='?';
|
||||||
@ -360,15 +377,13 @@ class MenuTop {
|
|||||||
$url.="&idmenu=".$tabMenu[$i]['rowid'];
|
$url.="&idmenu=".$tabMenu[$i]['rowid'];
|
||||||
if (! empty($_SESSION['idmenu']) && $tabMenu[$i]['rowid'] == $_SESSION['idmenu']) $class='class="tmenusel"';
|
if (! empty($_SESSION['idmenu']) && $tabMenu[$i]['rowid'] == $_SESSION['idmenu']) $class='class="tmenusel"';
|
||||||
else $class='class="tmenu"';
|
else $class='class="tmenu"';
|
||||||
// Define idsel
|
|
||||||
$idsel='';
|
|
||||||
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>';
|
||||||
print $tabMenu[$i]['titre'];
|
print $tabMenu[$i]['titre'];
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$tabMenu[$i]['titre'].'</font></td>';
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$tabMenu[$i]['titre'].'</a></td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,5 +1,6 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
/* Copyright (C) 2005-2008 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
|
* Copyright (C) 2007 Regis Houssin <regis@dolibarr.fr>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -17,12 +18,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
\file htdocs/includes/menus/barre_top/eldy_frontoffice.php
|
\file htdocs/includes/menus/barre_top/eldy_backoffice.php
|
||||||
\brief Gestionnaire nomme eldy du menu du haut
|
\brief Gestionnaire nomme eldy du menu du haut
|
||||||
\version $Id$
|
\version $Id$
|
||||||
|
|
||||||
\remarks La construction d'un gestionnaire pour le menu du haut est simple:
|
\remarks La construction d'un gestionnaire pour le menu du haut est simple:
|
||||||
\remarks Toutes les entetes de menu a faire apparaitre dans la barre du haut
|
\remarks Toutes les entrees de menu a faire apparaitre dans la barre du haut
|
||||||
\remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
|
\remarks doivent etre affichees par <a class="tmenu" href="...?mainmenu=...">...</a>
|
||||||
\remarks ou si menu selectionne <a class="tmenusel" href="...?mainmenu=...">...</a>
|
\remarks ou si menu selectionne <a class="tmenusel" href="...?mainmenu=...">...</a>
|
||||||
*/
|
*/
|
||||||
@ -35,6 +36,8 @@
|
|||||||
class MenuTop {
|
class MenuTop {
|
||||||
|
|
||||||
var $require_left=array("eldy_frontoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier
|
var $require_left=array("eldy_frontoffice"); // Si doit etre en phase avec un gestionnaire de menu gauche particulier
|
||||||
|
var $hideifnotallowed=true; // Put 0 for back office menu, 1 for front office menu
|
||||||
|
|
||||||
var $atarget=""; // Valeur du target a utiliser dans les liens
|
var $atarget=""; // Valeur du target a utiliser dans les liens
|
||||||
|
|
||||||
|
|
||||||
@ -71,14 +74,14 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home")
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
$idsel='id="home" ';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a></td>';
|
||||||
|
|
||||||
|
|
||||||
// Third parties
|
// Third parties
|
||||||
@ -90,19 +93,25 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "companies")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "companies")
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
if (($conf->societe->enabled && $user->rights->societe->lire)
|
$idsel='id="companies" ';
|
||||||
|
if (($conf->societe->enabled && $user->rights->societe->lire)
|
||||||
|| ($conf->fournisseur->enabled && $user->rights->fournisseur->lire))
|
|| ($conf->fournisseur->enabled && $user->rights->fournisseur->lire))
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/index.php?mainmenu=companies&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("ThirdParties").'</a></td>';
|
{
|
||||||
else
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/index.php?mainmenu=companies&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("ThirdParties").'</a></td>';
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("ThirdParties").'</font></td>';
|
}
|
||||||
}
|
else
|
||||||
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("ThirdParties").'</a></td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Products-Services
|
// Products-Services
|
||||||
if ($conf->produit->enabled || $conf->service->enabled)
|
if ($conf->produit->enabled || $conf->service->enabled)
|
||||||
@ -112,7 +121,7 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "products")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "products")
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -123,36 +132,17 @@ class MenuTop {
|
|||||||
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
|
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
|
||||||
if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); }
|
if ($conf->service->enabled) { $chaine.=$langs->trans("Services"); }
|
||||||
|
|
||||||
/*
|
$idsel='id="products" ';
|
||||||
if ($user->rights->produit->lire)
|
if ($user->rights->produit->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/product/index.php?mainmenu=products&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$chaine.'</a></td>';
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/product/index.php?mainmenu=products&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$chaine.'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$chaine.'</font></td>';
|
{
|
||||||
*/
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$chaine.'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Suppliers
|
|
||||||
/*
|
|
||||||
if ($conf->fournisseur->enabled)
|
|
||||||
{
|
|
||||||
$langs->load("suppliers");
|
|
||||||
|
|
||||||
$class="";
|
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers")
|
|
||||||
{
|
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$class = 'class="tmenu"';
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($user->rights->fournisseur->lire)
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/fourn/index.php?mainmenu=suppliers&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Suppliers").'</a></td>';
|
|
||||||
else
|
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Suppliers").'</font></td>';
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
// Commercial
|
// Commercial
|
||||||
/*$showcommercial=0;
|
/*$showcommercial=0;
|
||||||
if ($conf->societe->enabled) $showcommercial=1;
|
if ($conf->societe->enabled) $showcommercial=1;
|
||||||
@ -168,18 +158,23 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "commercial")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "commercial")
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
if($user->rights->societe->lire)
|
$idsel='id="commercial" ';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/comm/index.php?mainmenu=commercial&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").'</a></td>';
|
if($user->rights->societe->lire)
|
||||||
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/comm/index.php?mainmenu=commercial&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Commercial").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Commercial").'</font></td>';
|
{
|
||||||
}
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("Commercial").'</a></td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Financial
|
// Financial
|
||||||
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled
|
if ($conf->compta->enabled || $conf->comptaexpert->enabled || $conf->banque->enabled
|
||||||
@ -190,18 +185,23 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "accountancy")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "accountancy")
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$idsel='id="accountancy" ';
|
||||||
if ($user->rights->compta->resultat->lire || $user->rights->comptaexpert->plancompte->lire
|
if ($user->rights->compta->resultat->lire || $user->rights->comptaexpert->plancompte->lire
|
||||||
|| $user->rights->facture->lire || $user->rights->banque->lire)
|
|| $user->rights->facture->lire || $user->rights->banque->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuFinancial").'</a></td>';
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/compta/index.php?mainmenu=accountancy&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuFinancial").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("MenuFinancial").'</font></td>';
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("MenuFinancial").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Projects
|
// Projects
|
||||||
@ -212,19 +212,22 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "project")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "project")
|
||||||
{
|
{
|
||||||
$class = 'class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
$idsel='id="project" ';
|
||||||
if ($user->rights->projet->lire)
|
if ($user->rights->projet->lire)
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Projects").'</a></td>';
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/projet/index.php?mainmenu=project&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Projects").'</a></td>';
|
||||||
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Projects").'</font></td>';
|
{
|
||||||
*/
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("Projects").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Tools
|
// Tools
|
||||||
@ -236,35 +239,39 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "tools")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "tools")
|
||||||
{
|
{
|
||||||
$class = 'class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$idsel='id="tools" ';
|
||||||
if ($user->rights->mailing->lire || $user->rights->bookmark->lire || $user->rights->export->lire)
|
if ($user->rights->mailing->lire || $user->rights->bookmark->lire || $user->rights->export->lire)
|
||||||
//print '<a '.$class.' href="'.DOL_URL_ROOT.'/comm/mailing/index.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a>';
|
{
|
||||||
//print '<a '.$class.' href="'.DOL_URL_ROOT.'/societe.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a>';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/index.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a></td>';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/index.php?mainmenu=tools&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Tools").'</a></td>';
|
}
|
||||||
else
|
else
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("Tools").'</font></td>';
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("Tools").'</a></td>';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Telephonie
|
// Telephonie
|
||||||
if ($conf->telephonie->enabled && $user->rights->telephonie->lire)
|
if ($conf->telephonie->enabled && $user->rights->telephonie->lire)
|
||||||
{
|
{
|
||||||
$class="";
|
$class="";
|
||||||
if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"]))
|
if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"]))
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/telephonie/index.php?mainmenu=telephonie"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a></td>';
|
$idsel='id="telephonie" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/telephonie/index.php?mainmenu=telephonie"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Energie
|
// Energie
|
||||||
@ -274,70 +281,117 @@ class MenuTop {
|
|||||||
$class="";
|
$class="";
|
||||||
if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"]))
|
if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"]))
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/energie/index.php?mainmenu=energie"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a></td>';
|
$idsel='id="energie" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/energie/index.php?mainmenu=energie"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a></td>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// Members
|
// OSCommerce 1
|
||||||
if ($conf->adherent->enabled)
|
if ($conf->boutique->enabled)
|
||||||
{
|
{
|
||||||
// $langs->load("members"); Added in main file to increase
|
$langs->load("shop");
|
||||||
|
|
||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members")
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "shop")
|
||||||
{
|
{
|
||||||
$class='class="tmenusel" id="xxx"'; $_SESSION['idmenu']='';
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$class = 'class="tmenu"';
|
$class = 'class="tmenu"';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($user->rights->adherent->lire)
|
$idsel='id="shop" ';
|
||||||
print '<td class="tmenu"><a '.$class.' href="'.DOL_URL_ROOT.'/adherents/index.php?mainmenu=members&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").'</a></td>';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/boutique/index.php?mainmenu=shop&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
||||||
else
|
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$langs->trans("MenuMembers").'</font></td>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// OSCommerce 2
|
||||||
|
if ($conf->oscommerce2->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("shop");
|
||||||
|
|
||||||
|
$class="";
|
||||||
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "shop")
|
||||||
|
{
|
||||||
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$class = 'class="tmenu"';
|
||||||
|
}
|
||||||
|
|
||||||
|
$idsel='id="shop" ';
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/oscommerce_ws/index.php?mainmenu=shop&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("OSCommerce").'</a></td>';
|
||||||
|
}
|
||||||
|
|
||||||
|
// Members
|
||||||
|
if ($conf->adherent->enabled)
|
||||||
|
{
|
||||||
|
// $langs->load("members"); Added in main file
|
||||||
|
|
||||||
|
$class="";
|
||||||
|
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "members")
|
||||||
|
{
|
||||||
|
$class='class="tmenusel"'; $_SESSION['idmenu']='';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$class = 'class="tmenu"';
|
||||||
|
}
|
||||||
|
|
||||||
|
$idsel='id="members" ';
|
||||||
|
if ($user->rights->adherent->lire)
|
||||||
|
{
|
||||||
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.DOL_URL_ROOT.'/adherents/index.php?mainmenu=members&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("MenuMembers").'</a></td>';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$langs->trans("MenuMembers").'</a></td>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Affichage des menus personnalises
|
// Affichage des menus personnalises
|
||||||
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
|
require_once(DOL_DOCUMENT_ROOT."/core/menubase.class.php");
|
||||||
|
|
||||||
$menuArbo = new Menubase($this->db,'eldy','top');
|
$menuArbo = new Menubase($this->db,'eldy','top');
|
||||||
$tabMenu = $menuArbo->menuTopCharger(1,$_SESSION['mainmenu'],'eldy');
|
$tabMenu = $menuArbo->menuTopCharger(0,$_SESSION['mainmenu'],'eldy');
|
||||||
for($i=0; $i<count($tabMenu); $i++)
|
|
||||||
|
for($i=0; $i<count($tabMenu); $i++)
|
||||||
{
|
{
|
||||||
if ($tabMenu[$i]['enabled'] == true)
|
if ($tabMenu[$i]['enabled'] == true)
|
||||||
{
|
{
|
||||||
if ($tabMenu[$i]['right'] == true)
|
$idsel=(empty($tabMenu[$i]['mainmenu'])?'id="none" ':'id="'.$tabMenu[$i]['mainmenu'].'" ');
|
||||||
|
if ($tabMenu[$i]['right'] == true)
|
||||||
{
|
{
|
||||||
$url=DOL_URL_ROOT.$tabMenu[$i]['url'];
|
$url=DOL_URL_ROOT.$tabMenu[$i]['url'];
|
||||||
if (! eregi('\?',DOL_URL_ROOT.$tabMenu[$i]['url'])) $url.='?';
|
if (! eregi('\?',DOL_URL_ROOT.$tabMenu[$i]['url'])) $url.='?';
|
||||||
else $url.='&';
|
else $url.='&';
|
||||||
$url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=';
|
$url.='mainmenu='.$tabMenu[$i]['mainmenu'].'&leftmenu=';
|
||||||
$url.="&idmenu=".$tabMenu[$i]['rowid'];
|
$url.="&idmenu=".$tabMenu[$i]['rowid'];
|
||||||
if (! empty($_GET["idmenu"]) && $tabMenu[$i]['rowid'] == $_GET["idmenu"]) $idsel='id="sel" ';
|
if (! empty($_SESSION['idmenu']) && $tabMenu[$i]['rowid'] == $_SESSION['idmenu']) $class='class="tmenusel"';
|
||||||
// Define idsel
|
else $class='class="tmenu"';
|
||||||
$idsel='';
|
print '<td class="tmenu"><a '.$class.' '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>';
|
||||||
print '<td class="tmenu"><a class="tmenu" '.$idsel.'href="'.$url.'"'.($this->atarget?" target=$this->atarget":"").'>'.$tabMenu[$i]['titre'].'</a></td>';
|
print $tabMenu[$i]['titre'];
|
||||||
|
print '</a></td>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<td class="tmenu"><font class="tmenudisabled">'.$tabMenu[$i]['titre'].'</font></td>';
|
if (! $this->hideifnotallowed) print '<td class="tmenu"><a class="tmenudisabled" '.$idsel.'href="#">'.$tabMenu[$i]['titre'].'</a></td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
print '</tr></table>';
|
print '</tr></table>';
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user