Ajout Lien Direct vers la section Fournisseur

This commit is contained in:
Rodolphe Quiedeville 2004-11-29 10:04:06 +00:00
parent b596c4e7cb
commit a5285fce4a

View File

@ -113,6 +113,28 @@ if ($conf->produit->enabled || $conf->service->enabled)
}
$class="";
if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "commercial")
{
$class='class="tmenu" id="sel"';
}
elseif (ereg("^".DOL_URL_ROOT."\/fourn\/",$_SERVER["PHP_SELF"]))
{
$class='class="tmenu" id="sel"';
}
else
{
$class = 'class="tmenu"';
}
print '<a '.$class.' href="'.DOL_URL_ROOT.'/fourn/index.php"'.($target?" target=$target":"").'>'.$langs->trans("Fournisseur").'</a>';
if ($conf->webcal->enabled)
{
$langs->load("other");