From 86b8f14162e77624bc65dd131ae4191450ba78ae Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 21 Aug 2004 00:45:19 +0000 Subject: [PATCH] Suppression de code devenu inutil suite au nouveau mode d'affichage par CSS du menu du haut. --- htdocs/includes/menus/barre_top/default.php | 27 +++++++++++---------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index d8bfa9258a8..f6a0cd2cd53 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -1,6 +1,6 @@ - * Copyright (C) 2004 Laurent Destailleur + * Copyright (C) 2004 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,13 +21,6 @@ * */ -$nbofentries=0; -if ($conf->commercial->enabled) $nbofentries++; -if ($conf->adherent->enabled) $nbofentries++; -if ($conf->compta->enabled || $conf->banque->enabled || $conf->caisse->enabled) $nbofentries++; -if ($conf->produit->enabled || $conf->service->enabled) $nbofentries++; -if ($conf->webcal->enabled) $nbofentries++; - if ($conf->commercial->enabled) { $langs->load("commercial"); @@ -122,12 +115,20 @@ if ($conf->webcal->enabled) $langs->load("other"); $class=""; - if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "webcalendar") { $class="menusel"; } - elseif (ereg("^".DOL_URL_ROOT."\/projet\/",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/webcalendar\/",$_SERVER["PHP_SELF"])) { $class="menusel"; } + if ($_SESSION["topmenu"] && $_SESSION["topmenu"] == "webcalendar") + { + $class='class="tmenu" id="sel"'; + } + elseif (ereg("^".DOL_URL_ROOT."\/projet\/",$_SERVER["PHP_SELF"]) || ereg("^".DOL_URL_ROOT."\/webcalendar\/",$_SERVER["PHP_SELF"])) + { + $class='class="tmenu" id="sel"'; + } + else + { + $class = 'class="tmenu"'; + } - print ''; - print ''.$langs->trans("Calendar").''; - print ''; + print ''.$langs->trans("Calendar").''; };