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 '
';