Le titre Produit/Service affiche Produit, Service ou les 2 selon l'tat d'activatin des modules.

This commit is contained in:
Laurent Destailleur 2004-02-21 16:22:12 +00:00
parent f9dc471fc6
commit 49dbf80fdd
2 changed files with 7 additions and 3 deletions

View File

@ -69,7 +69,7 @@ function llxHeader($head = "", $urlp = "") {
if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; }
$menu->add(DOL_URL_ROOT."/product/index.php", "Produits/Services");
$menu->add(DOL_URL_ROOT."/product/index.php", "$chaine");
}
if ($conf->projet->enabled )

View File

@ -69,9 +69,13 @@ function llxHeader($head = "") {
$menu->add(DOL_URL_ROOT."/fichinter/index.php", "Fiches d'intervention");
}
if ($conf->produit->enabled )
if ($conf->produit->enabled || $conf->service->enabled)
{
$menu->add(DOL_URL_ROOT."/product/index.php", "Produits");
$chaine="";
if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; }
$menu->add(DOL_URL_ROOT."/product/index.php", "$chaine");
if ($conf->boutique->enabled)
{