From 62a6cd6b3094055ba85f5eca31aed35f00b1e545 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Fri, 1 Aug 2003 21:27:05 +0000 Subject: [PATCH] Gestion de la couleur de fond du menu produits --- htdocs/includes/menus/barre_top/default.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index 9ed20750861..9d211e10359 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -72,15 +72,26 @@ else } } -print ''; +if (strstr($GLOBALS["SCRIPT_URL"],DOL_URL_ROOT.'/product/')) +{ + $class = "menusel"; +} +else +{ + $class = "menu"; +} + +print ''; if ($conf->produit->enabled ) { - print 'Produits'; + print 'Produits'; } else { print '-'; } + + print ''; if(defined("MAIN_MODULE_WEBCALENDAR") && MAIN_MODULE_WEBCALENDAR)