* * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ /** * \file htdocs/admin/website.php * \ingroup website * \brief Page to setup the module Website */ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/admin.lib.php'; $langs->load("admin"); $langs->load("other"); $langs->load("website"); if (! $user->admin) accessforbidden(); $action = GETPOST('action','alpha'); $conf->dol_hide_leftmenu = 1; $website='website1'; /* * Actions */ // Action mise a jour ou ajout d'une constante if ($action == 'update') { if (! $res > 0) $error++; if (! $error) { setEventMessages($langs->trans("SetupSaved"), null, 'mesgs'); } else { setEventMessages($langs->trans("Error"), null, 'errors'); } } /* * View */ $_SESSION['website_mode'] = 'edit'; $form = new Form($db); $help_url=''; llxHeader('',$langs->trans("WebsiteSetup"),$help_url); $linkback=''.$langs->trans("BackToModuleList").''; print load_fiche_titre($langs->trans("WebsiteSetup"),$linkback,'title_setup'); $head = array(); /* * Edit mode */ if ($_SESSION['website_mode'] == 'edit') { print "\n".'
'; print ''; print ''; dol_fiche_head($head, 'general', $langs->trans("Page").': '.$langs->trans("Home"), 0, 'globe'); print load_fiche_titre($langs->trans("SEO"),'',''); print ''; print ''; print ''; print ''; print "\n"; print ''; print ''; print ''; print ''; print '
'.$langs->trans("Description").''.$langs->trans("Value").'
'; print $langs->trans('WEBSITE_PAGEURL'); print ''; print '/public/websites/'.$website.'/index.php?page=home'; print '
'; print $langs->trans('WEBSITE_TITLE'); print ''; print ''; print '
'; print $langs->trans('WEBSITE_DESCRIPTION'); print ''; print ''; print '
'; print $langs->trans('WEBSITE_KEYWORDS'); print ''; print ''; print '
'; print '
'; /* * Editing global variables not related to a specific theme */ print load_fiche_titre($langs->trans("Other"),'',''); require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; $doleditor=new DolEditor('WEBSITE_HEADER',$obj->value,'',160,'dolibarr_notes','',false,false,$conf->fckeditor->enabled,5,60); $doleditor->Create(); require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; $doleditor=new DolEditor('WEBSITE_CONTENT',$obj->value,'',160,'dolibarr_notes','',false,false,$conf->fckeditor->enabled,5,60); $doleditor->Create(); require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php'; $doleditor=new DolEditor('WEBSITE_FOOTER',$obj->value,'',160,'dolibarr_notes','',false,false,$conf->fckeditor->enabled,5,60); $doleditor->Create(); dol_fiche_end(); print '
'; print '
'; } llxFooter(); $db->close();