From 90bdddd5fa9fa301710b757d48f01d85c358f659 Mon Sep 17 00:00:00 2001 From: cdelambert Date: Mon, 30 Apr 2007 08:12:38 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20de=20la=20possibilit=C3=A9=20de=20mettr?= =?UTF-8?q?e=20un=20message=20d'accueil=20sur=20la=20page=20d'identificati?= =?UTF-8?q?on?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/admin/ihm.php | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/htdocs/admin/ihm.php b/htdocs/admin/ihm.php index a24ac796b53..83da4e0f8e1 100644 --- a/htdocs/admin/ihm.php +++ b/htdocs/admin/ihm.php @@ -65,6 +65,7 @@ if (isset($_POST["action"]) && $_POST["action"] == 'update') dolibarr_set_const($db, "MAIN_SEARCHFORM_PRODUITSERVICE",$_POST["main_searchform_produitservice"]); dolibarr_set_const($db, "MAIN_MOTD", $_POST["main_motd"]); + dolibarr_set_const($db, "MAIN_HOME", $_POST["main_home"]); $_SESSION["mainmenu"]=""; // Le gestionnaire de menu a pu changer @@ -190,6 +191,23 @@ if (isset($_GET["action"]) && $_GET["action"] == 'edit') print ''; } print ''; + + + // Message d'accueil' + $var=!$var; + print ''.$langs->trans("MessageHome").''; + if ($conf->fckeditor->enabled) + { + // Editeur wysiwyg + require_once(DOL_DOCUMENT_ROOT."/lib/doleditor.class.php"); + $doleditor=new DolEditor('main_home',$conf->global->MAIN_HOME,158,'dolibarr_notes','In',true); + $doleditor->Create(); + } + else + { + print ''; + } + print ''; print ''; print '
'; @@ -272,6 +290,11 @@ else print ''.$langs->trans("MessageOfDay").''; print nl2br($conf->global->MAIN_MOTD); print ''; + // Message home + $var=!$var; + print ''.$langs->trans("MessageHome").''; + print nl2br($conf->global->MAIN_HOME); + print ''; print ''; print '
';