diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 50af1e275fc..6f320714104 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -355,9 +355,8 @@ function top_menu($head, $title="") } print "\n"; - - print "\n"; - print ''; + print "\n"; + print ''; /* * Mise à jour entre 2 versions @@ -373,7 +372,6 @@ function top_menu($head, $title="") print ""; } - /* * Barre superieure * @@ -385,13 +383,13 @@ function top_menu($head, $title="") print 'Accueil'; if (!defined(MAIN_MENU_BARRETOP)) - { - define("MAIN_MENU_BARRETOP","default.php"); - } + { + define("MAIN_MENU_BARRETOP","default.php"); + } require(DOL_DOCUMENT_ROOT ."/includes/menus/barre_top/".MAIN_MENU_BARRETOP); - print ''.strftime(" %d %B - %H:%M",time()).''; + print ''.strftime(" %d %B - %H:%M",time()).''; print ''.$user->login.''; print ''; @@ -414,7 +412,7 @@ function top_menu($head, $title="") * * */ -Function left_menu($menu) +Function left_menu($menu, $help_url='') { global $user, $conf, $rtplang; @@ -475,12 +473,22 @@ Function left_menu($menu) } print ''; } - print ''; + + /* + * Lien vers l'aide en ligne + */ + + if (strlen($help_url) > 0) + { + define('MAIN_AIDE_URL','http://www.dolibarr.com/documentation/dolibarr-user.html'); + print 'Aide'; + } /* * * */ + print ''; print '';