25require
'../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/website.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
32require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
33require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
36$langs->loadLangs(array(
'errors',
'admin',
'companies',
'website'));
38$action =
GETPOST(
'action',
'alpha') ?
GETPOST(
'action',
'alpha') :
'view';
39$confirm =
GETPOST(
'confirm',
'alpha');
40$backtopage =
GETPOST(
'backtopage',
'alpha');
44$sortfield =
GETPOST(
'sortfield',
'aZ09comma');
45$sortorder =
GETPOST(
'sortorder',
'aZ09comma');
47if (empty($page) || $page == -1) {
50$offset = $limit * $page;
55$hookmanager->initHooks(array(
'admin'));
57$arrayofparameters = array(
'WEBSITE_USE_WEBSITE_ACCOUNTS'=>array(
'css'=>
'minwidth200'));
60$rowid =
GETPOST(
'rowid',
'alpha');
62if (!$user->admin || !isModEnabled(
'website')) {
83include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
93llxHeader(
'', $langs->trans(
"WebsiteSetup"),
'',
'', 0, 0,
'',
'',
'',
'mod-admin page-website_options');
95$titre = $langs->trans(
"WebsiteSetup");
96$linkback =
'<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.
'/admin/modules.php').
'">'.$langs->trans(
"BackToModuleList").
'</a>';
103$head[$h][0] = DOL_URL_ROOT.
"/admin/website.php";
104$head[$h][1] = $langs->trans(
"WebSites");
105$head[$h][2] =
'website';
108$head[$h][0] = DOL_URL_ROOT.
"/admin/website_options.php";
109$head[$h][1] = $langs->trans(
"Options");
110$head[$h][2] =
'options';
117print
'<div class="div-table-responsive-no-min">';
118print
'<table class="noborder centpercent">';
119print
'<tr class="liste_titre">';
120print
'<td>'.$langs->trans(
"Parameter").
'</td>';
121print
'<td align="center" width="20"> </td>';
122print
'<td align="center" width="100">'.$langs->trans(
"Value").
'</td>'.
"\n";
128print
'<tr class="oddeven">';
130print $form->textwithpicto($langs->trans(
'WEBSITE_USE_WEBSITE_ACCOUNTS'), $langs->trans(
'WEBSITE_USE_WEBSITE_ACCOUNTSTooltip'));
132print
'<td align="center" width="20"> </td>';
134print
'<td align="center" width="100">';
135if (!empty($conf->use_javascript_ajax)) {
136 print ajax_constantonoff(
'WEBSITE_USE_WEBSITE_ACCOUNTS');
139 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=set_WEBSITE_USE_WEBSITE_ACCOUNTS&token='.
newToken().
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
141 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=del_WEBSITE_USE_WEBSITE_ACCOUNTS&token='.
newToken().
'">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
149if (empty($conf->use_javascript_ajax)) {
150 print
'<div class="tabsAction">';
151 print
'<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?action=edit&token='.
newToken().
'">'.$langs->trans(
"Modify").
'</a>';
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
load_fiche_titre($title, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=0, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
GETPOSTINT($paramname, $method=0)
Return the value of a $_GET or $_POST supervariable, converted into integer.
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 dolibarr global constant string value.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.