Fix: Buginou dans gestion menu
This commit is contained in:
parent
5d940d2811
commit
0e824f5511
@ -79,13 +79,18 @@ class MenuTop {
|
|||||||
|
|
||||||
// Entrée home
|
// Entrée home
|
||||||
$id="";
|
$id="";
|
||||||
|
|
||||||
if ($_GET["mainmenu"] == "home" || ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home"))
|
if ($_GET["mainmenu"] == "home" || ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "home"))
|
||||||
{
|
{
|
||||||
$id="sel";
|
$id="sel";
|
||||||
}
|
}
|
||||||
if (! ereg("^".DOL_URL_ROOT."\/(adherents|comm|compta|product|fourn|projet)\/",$_SERVER["PHP_SELF"])) {
|
|
||||||
|
if (! ereg("^".DOL_URL_ROOT."\/(adherents|comm|commande|compta|contrat|product|fourn|projet)\/",$_SERVER["PHP_SELF"])) {
|
||||||
$id="sel";
|
$id="sel";
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
$id="";
|
||||||
|
}
|
||||||
print '<a class="tmenu" id="'.$id.'" href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a>';
|
print '<a class="tmenu" id="'.$id.'" href="'.DOL_URL_ROOT.'/index.php?mainmenu=home&leftmenu="'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Home").'</a>';
|
||||||
|
|
||||||
// Entrée adherent
|
// Entrée adherent
|
||||||
@ -120,7 +125,7 @@ class MenuTop {
|
|||||||
{
|
{
|
||||||
$class='class="tmenu" id="sel"';
|
$class='class="tmenu" id="sel"';
|
||||||
}
|
}
|
||||||
elseif (ereg("^".DOL_URL_ROOT."\/comm\/",$_SERVER["PHP_SELF"]))
|
elseif (ereg("^".DOL_URL_ROOT."\/(comm|commande|contrat)\/",$_SERVER["PHP_SELF"]))
|
||||||
{
|
{
|
||||||
$class='class="tmenu" id="sel"';
|
$class='class="tmenu" id="sel"';
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user