From dd9d5ca79fb6e5d026002ae4ba7ba0032845a64d Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 27 Feb 2004 22:44:18 +0000 Subject: [PATCH] =?UTF-8?q?Le=20param=E8tre=20MAIN=5FMENU=5FBARRETOP=20a?= =?UTF-8?q?=20=E9t=E9=20plac=E9=20dans=20"Configuration=20IHM".?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/ihm.php | 22 +++++++++++++--------- mysql/data/data.sql | 6 +++--- 2 files changed, 16 insertions(+), 12 deletions(-) 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 ''; print ''; print ''; @@ -68,14 +68,20 @@ if ($_GET["action"] == 'edit') } } + print ''; print ''; - print ''; + print ''; - print ''; - print '
NomValeur
Longueur maximum des listes'; - print '
Longueur maximum des listes
'; - print '
'; + print 'Gestionnaire du menu du haut'; + + print '
'; + print ''; + print '
'; + + print ''; + + print ''; } else { @@ -84,15 +90,13 @@ else print 'NomValeur'; 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