From adeccd217b6eff632be1b5e04f0e5fb9b1a8e456 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 11 Mar 2003 19:32:54 +0000 Subject: [PATCH] =?UTF-8?q?Gestion=20de=20la=20barre=20sup=E9rieure=20dyna?= =?UTF-8?q?mique?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php3 | 37 +++++-------------------------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/htdocs/main.inc.php3 b/htdocs/main.inc.php3 index e560a50f391..00f5890f966 100644 --- a/htdocs/main.inc.php3 +++ b/htdocs/main.inc.php3 @@ -202,40 +202,13 @@ function top_menu($head) print ""; print 'Accueil'; - print ''; - if ($user->comm > 0 && $conf->commercial ) - { - print 'Commercial'; - } - else - { - print '-'; - } + if (!defined(MAIN_MENU_BARRETOP)) + { + define("MAIN_MENU_BARRETOP","default.php"); + } - print ''; - if ($user->compta > 0) - { - print 'Compta'; - } - else - { - print '-'; - } + require("includes/menus/barre_top/".MAIN_MENU_BARRETOP); - print ''; - if ($conf->produit->enabled ) - { - print 'Produits'; - } - else - { - print '-'; - } - print ''; - if ($conf->webcal->enabled) { - print 'Calendrier'; - }; - print ' '; print ''.strftime(" %d %B - %H:%M",time()).''; print ''.$user->login.'';