Ajout menu energie
This commit is contained in:
parent
dcfd710bdf
commit
43025a81a1
@ -1,5 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
/* Copyright (C) 2003-2004 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
/* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||||
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
* Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||||
*
|
*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* This program is free software; you can redistribute it and/or modify
|
||||||
@ -209,11 +209,7 @@ class MenuTop {
|
|||||||
if ($conf->telephonie->enabled)
|
if ($conf->telephonie->enabled)
|
||||||
{
|
{
|
||||||
$class="";
|
$class="";
|
||||||
if ($_SESSION["mainmenu"] && $_SESSION["mainmenu"] == "suppliers")
|
if (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"]))
|
||||||
{
|
|
||||||
$class='class="tmenu" id="sel"';
|
|
||||||
}
|
|
||||||
elseif (ereg("^".DOL_URL_ROOT."\/telephonie\/",$_SERVER["PHP_SELF"]))
|
|
||||||
{
|
{
|
||||||
$class='class="tmenu" id="sel"';
|
$class='class="tmenu" id="sel"';
|
||||||
}
|
}
|
||||||
@ -225,6 +221,23 @@ class MenuTop {
|
|||||||
print '<a '.$class.' href="'.DOL_URL_ROOT.'/telephonie/"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a>';
|
print '<a '.$class.' href="'.DOL_URL_ROOT.'/telephonie/"'.($this->atarget?" target=$this->atarget":"").'>Telephonie</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Entrée energie
|
||||||
|
if ($conf->energie->enabled)
|
||||||
|
{
|
||||||
|
$langs->load("energy");
|
||||||
|
$class="";
|
||||||
|
if (ereg("^".DOL_URL_ROOT."\/energie\/",$_SERVER["PHP_SELF"]))
|
||||||
|
{
|
||||||
|
$class='class="tmenu" id="sel"';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$class = 'class="tmenu"';
|
||||||
|
}
|
||||||
|
|
||||||
|
print '<a '.$class.' href="'.DOL_URL_ROOT.'/energie/"'.($this->atarget?" target=$this->atarget":"").'>'.$langs->trans("Energy").'</a>';
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Entrée webcal
|
// Entrée webcal
|
||||||
if ($conf->webcal->enabled)
|
if ($conf->webcal->enabled)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user