From 2a3a5d0ecc75da8ab1e25fe7710da672bf662901 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 21 Jun 2003 12:40:35 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20coloration=20des=20menus=20s=E9lectionn?= =?UTF-8?q?=E9s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/includes/menus/barre_top/default.php | 52 ++++++++++++++++----- 1 file changed, 41 insertions(+), 11 deletions(-) diff --git a/htdocs/includes/menus/barre_top/default.php b/htdocs/includes/menus/barre_top/default.php index cdd4165c315..774cab42780 100644 --- a/htdocs/includes/menus/barre_top/default.php +++ b/htdocs/includes/menus/barre_top/default.php @@ -20,26 +20,56 @@ * */ - - -print ''; -if ($user->comm > 0 && $conf->commercial ) +if (strstr($GLOBALS["SCRIPT_URL"],DOL_URL_ROOT.'/comm/')) { - print 'Commercial'; + print ''; + if ($user->comm > 0 && $conf->commercial ) + { + print 'Commercial'; + } + else + { + print '-'; + } } else { - print '-'; + print ''; + if ($user->comm > 0 && $conf->commercial ) + { + print 'Commercial'; + } + else + { + print '-'; + } } -print ''; -if ($user->compta > 0) + +if (strstr($GLOBALS["SCRIPT_URL"],DOL_URL_ROOT.'/compta/')) { - print 'Compta'; -} + print ''; + if ($user->compta > 0) + { + print 'Compta'; + } + else + { + print '-'; + } +} else { - print '-'; + + print ''; + if ($user->compta > 0) + { + print 'Compta'; + } + else + { + print '-'; + } } print '';