diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index c9a327b0228..9a4528b0452 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -1,5 +1,5 @@ +/* Copyright (C) 2003-2004 Rodolphe Quiedeville * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify @@ -23,7 +23,6 @@ global $PHP_SELF; - $nbofentries=0; if ($conf->commercial->enabled) $nbofentries++; if ($conf->adherent->enabled) $nbofentries++; @@ -31,16 +30,16 @@ if ($conf->compta->enabled) $nbofentries++; if ($conf->produit->enabled || $conf->service->enabled) $nbofentries++; if ($conf->webcalendar->enabled) $nbofentries++; - -print ''; +print '
'; if (! $nbofentries) { - print ''; + print ''; } -else { - $widthtd=floor(100/$nbofentries); - - if ($conf->commercial->enabled) +else +{ + $widthtd=floor(100/$nbofentries); + + if ($conf->commercial->enabled) { $class=""; if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "commercial") { $class="menusel"; } @@ -75,7 +74,7 @@ else { $class=""; if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "product") { $class="menusel"; } elseif (ereg("^".DOL_URL_ROOT."\/product\/",$PHP_SELF)) { $class="menusel"; } - $chaine=""; + $chaine=""; if ($conf->produit->enabled) { $chaine.="Produits"; } if ($conf->produit->enabled && $conf->service->enabled) { $chaine.="/"; } if ($conf->service->enabled) { $chaine.="Services"; }