28require_once
"../../main.inc.php";
29require_once DOL_DOCUMENT_ROOT .
"/core/lib/admin.lib.php";
30require_once DOL_DOCUMENT_ROOT .
"/webportal/lib/webportal.lib.php";
41$langs->loadLangs(array(
"admin",
"hrm",
"other",
"website"));
44$hookmanager->initHooks(array(
'webportalsetup',
'globalsetup'));
47$action =
GETPOST(
'action',
'aZ09');
48$backtopage =
GETPOST(
'backtopage',
'alpha');
65$reshook = $hookmanager->executeHooks(
'doActions', $parameters,
$object, $action);
72if (preg_match(
'/^(set|del)_([A-Z_]+)$/', $action, $regs)) {
73 if ($regs[1] ==
'set') {
80if ($action ==
'updatecss') {
90$title =
"WebPortalSetup";
92$wikihelp =
'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
96 $langs->trans($title),
102 '/includes/ace/src/ace.js',
103 '/includes/ace/src/ext-statusbar.js',
104 '/includes/ace/src/ext-language_tools.js',
110$linkback =
'<a href="' . ($backtopage ? $backtopage : DOL_URL_ROOT .
'/admin/modules.php?restore_lastsearch_values=1') .
'">' . $langs->trans(
"BackToModuleList") .
'</a>';
119echo
'<span class="opacitymedium">' . $langs->trans(
"WebPortalCSS") .
'</span><br><br>';
122require_once DOL_DOCUMENT_ROOT .
'/core/class/doleditor.class.php';
124print
'<form enctype="multipart/form-data" method="POST" action="' . $_SERVER[
"PHP_SELF"] .
'">';
126print
'<input type="hidden" name="token" value="' .
newToken() .
'">';
127print
'<input type="hidden" name="action" value="updatecss">';
132print
'<div class="div-table-responsive-no-min">';
133print
'<table summary="edit" class="noborder centpercent editmode tableforfield">';
135print
'<tr class="liste_titre">';
136print
'<td colspan="2">';
140$doleditor =
new DolEditor(
'WEBPORTAL_CUSTOM_CSS', $customcssValue,
'80%', 400,
'Basic',
'In',
true,
false,
'ace', 10,
'90%');
141$doleditor->Create(0,
'',
true,
'css',
'css');
142print
'</td></tr>' .
"\n";
144print
'</table>' .
"\n";
147print
'<div class="center">';
148print
'<input class="button button-save reposition buttonforacesave" type="submit" name="submit" value="' . $langs->trans(
"Save") .
'">';
if( $user->socid > 0) if(! $user->hasRight('accounting', 'chartofaccount')) $object
dolibarr_set_const($db, $name, $value, $type='chaine', $visible=0, $note='', $entity=1)
Insert a parameter (key,value) into database (delete old key then insert it again).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader($head='', $title='', $help_url='', $target='', $disablejs=0, $disablehead=0, $arrayofjs='', $arrayofcss='', $morequerystring='', $morecssonbody='', $replacemainareaby='', $disablenofollow=0, $disablenoindex=0)
Empty header.
Class to manage a WYSIWYG editor.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0, $attop=0)
Set event messages in dol_events session object.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
newToken()
Return the value of token currently saved into session with name 'newtoken'.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
getDolGlobalString($key, $default='')
Return a Dolibarr global constant string value.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.
webportalAdminPrepareHead()
Prepare admin pages header.