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.'';