diff --git a/htdocs/compta/pre.inc.php3 b/htdocs/compta/pre.inc.php3 index 9ac2dc0adbb..7c2d5fdd36e 100644 --- a/htdocs/compta/pre.inc.php3 +++ b/htdocs/compta/pre.inc.php3 @@ -21,6 +21,19 @@ */ require("../main.inc.php3"); +$strmonth[1] = "Janvier"; +$strmonth[2] = "Février"; +$strmonth[3] = "Mars"; +$strmonth[4] = "Avril"; +$strmonth[5] = "Mai"; +$strmonth[6] = "Juin"; +$strmonth[7] = "Juillet"; +$strmonth[8] = "Août"; +$strmonth[9] = "Septembre"; +$strmonth[10] = "Octobre"; +$strmonth[11] = "Novembre"; +$strmonth[12] = "Décembre"; + function llxHeader($head = "") { global $user, $conf; @@ -56,28 +69,29 @@ function llxHeader($head = "") { $menu->add("bank/index.php3","Bank"); - if ($conf->voyage) { + if ($conf->voyage) + { - $menu->add("voyage/index.php3","Voyages"); + $menu->add("voyage/index.php3","Voyages"); - $menu->add_submenu("voyage/index.php3","Voyages"); - $menu->add_submenu("voyage/reduc.php3","Reduc"); - } + $menu->add_submenu("voyage/index.php3","Voyages"); + $menu->add_submenu("voyage/reduc.php3","Reduc"); + } $menu->add("ligne.php3","Compta"); $menu->add_submenu("ligne.php3","Lignes"); $menu->add_submenu("config.php3","Configuration"); - if ($user->compta > 0) { + if ($user->compta > 0) + { - } else { - $menu->clear(); - $menu->add("/index.php3","Accueil"); - - - - } + } + else + { + $menu->clear(); + $menu->add("/index.php3","Accueil"); + } left_menu($menu->liste); diff --git a/htdocs/pre.inc.php3 b/htdocs/pre.inc.php3 index 42e468c08f8..dab1d42208d 100644 --- a/htdocs/pre.inc.php3 +++ b/htdocs/pre.inc.php3 @@ -40,15 +40,17 @@ function llxHeader($head = "") { $menu->add_submenu("/comm/propal.php3", "Propales"); - $menu->add("/compta/", "Comptabilité"); + if ($user->compta > 0) + { + $menu->add("/compta/", "Comptabilité"); - $menu->add_submenu("/compta/facture.php3", "Factures"); + $menu->add_submenu("/compta/facture.php3", "Factures"); + } - if ($conf->fichinter->enabled ) { - - $menu->add("/fichinter/", "Fiches d'intervention"); - - } + if ($conf->fichinter->enabled ) + { + $menu->add("/fichinter/", "Fiches d'intervention"); + } $menu->add("/fourn/index.php3", "Fournisseurs"); @@ -56,6 +58,8 @@ function llxHeader($head = "") { $menu->add("/service/", "Services"); + $menu->add("/adherents/", "Adherents"); + $menu->add("/user/", "Utilisateurs"); $menu->add("/info.php3", "Configuration");