diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php
index 096da4c0a57..3c29f336b3a 100644
--- a/htdocs/admin/ihm.php
+++ b/htdocs/admin/ihm.php
@@ -29,6 +29,7 @@ if ($HTTP_POST_VARS["action"] == 'update')
{
dolibarr_set_const($db, "MAIN_THEME",$HTTP_POST_VARS["main_theme"]);
dolibarr_set_const($db, "SIZE_LISTE_LIMIT",$HTTP_POST_VARS["size_liste_limit"]);
+ dolibarr_set_const($db, "MAIN_MENU_BARRETOP",$HTTP_POST_VARS["main_menu_barretop"]);
Header("Location: $PHP_SELF");
}
@@ -43,7 +44,6 @@ print "
\n";
if ($_GET["action"] == 'edit')
{
print '
';
+ print '| Gestionnaire du menu du haut | |
';
+
+ print '';
+ print '
|
';
+ print '';
+
+ print '';
+
+ print '';
}
else
{
@@ -84,15 +90,13 @@ else
print '| Nom | Valeur |
';
print '| Thème | ' . MAIN_THEME . ' |
';
print '| Longueur maximum des listes | ' . SIZE_LISTE_LIMIT . ' |
';
+ print '| Gestionnaire du menu du haut | ' . MAIN_MENU_BARRETOP . ' |
';
print '
';
print '';
-
print '
Editer';
-
print '
';
-
}
diff --git a/mysql/data/data.sql b/mysql/data/data.sql
index 46115575dc7..fd7e29fc5a0 100644
--- a/mysql/data/data.sql
+++ b/mysql/data/data.sql
@@ -72,9 +72,9 @@ insert into llx_const (name, value, type, note, visible) values ('COMPTA_ONLINE_
--
-- IHM
--
-insert into llx_const (name, value, type, note) values ('MAIN_THEME','yellow','chaine','Thème par défaut');
-insert into llx_const (name, value, type, note) values ('SIZE_LISTE_LIMIT','20','chaine','Taille des listes');
-insert into llx_const (name, value, type, note) values ('MAIN_MENU_BARRETOP','default.php','chaine','Module commande');
+insert into llx_const (name, value, type, note, visible) values ('MAIN_THEME','yellow','chaine','Thème par défaut',0);
+insert into llx_const (name, value, type, note, visible) values ('SIZE_LISTE_LIMIT','20','chaine','Taille des listes',0);
+insert into llx_const (name, value, type, note, visible) values ('MAIN_MENU_BARRETOP','default.php','chaine','Module de gestion de la barre de menu du haut',0);
--
-- Dons