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 14:41:15 +00:00
parent bf8b757684
commit 6509ab45da

View File

@ -101,9 +101,13 @@ else
}
print '<TD width="15%" class="'.$class.'" align="center">';
if ($conf->produit->enabled )
if ($conf->produit->enabled || $conf->service->enabled)
{
print '<A class="'.$class.'" href="'.DOL_URL_ROOT.'/product/?type=0">Produits</a>';
$chaine="";
if ($conf->produit->enabled) { $chaine.="Produits"; }
if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; }
if ($conf->service->enabled) { $chaine.="Services"; }
print '<A class="'.$class.'" href="'.DOL_URL_ROOT.'/product/?type=0">'.$chaine.'</a>';
}
else
{