24 require
'../main.inc.php';
25 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formcompany.class.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/website.lib.php';
30 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/class/doleditor.class.php';
32 require_once DOL_DOCUMENT_ROOT.
'/website/class/website.class.php';
35 $langs->loadLangs(array(
'errors',
'admin',
'companies',
'website'));
37 $action =
GETPOST(
'action',
'alpha') ?
GETPOST(
'action',
'alpha') :
'view';
38 $confirm =
GETPOST(
'confirm',
'alpha');
39 $backtopage =
GETPOST(
'backtopage',
'alpha');
41 $rowid =
GETPOST(
'rowid',
'alpha');
48 $limit =
GETPOST(
'limit',
'int') ?
GETPOST(
'limit',
'int') : $conf->liste_limit;
49 $sortfield =
GETPOST(
'sortfield',
'aZ09comma');
50 $sortorder =
GETPOST(
'sortorder',
'aZ09comma');
52 if (empty($page) || $page == -1) { $page = 0; }
53 $offset = $limit * $page;
54 $pageprev = $page - 1;
55 $pagenext = $page + 1;
58 $hookmanager->initHooks(array(
'admin'));
60 $arrayofparameters = array(
'WEBSITE_USE_WEBSITE_ACCOUNTS'=>array(
'css'=>
'minwidth200'));
67 include DOL_DOCUMENT_ROOT.
'/core/actions_setmoduleoptions.inc.php';
74 $form =
new Form($db);
77 llxHeader(
'', $langs->trans(
"WebsiteSetup"));
79 $titre = $langs->trans(
"WebsiteSetup");
80 $linkback =
'<a href="'.($backtopage ? $backtopage : DOL_URL_ROOT.
'/admin/modules.php').
'">'.$langs->trans(
"BackToModuleList").
'</a>';
87 $head[$h][0] = DOL_URL_ROOT.
"/admin/website.php";
88 $head[$h][1] = $langs->trans(
"WebSites");
89 $head[$h][2] =
'website';
92 $head[$h][0] = DOL_URL_ROOT.
"/admin/website_options.php";
93 $head[$h][1] = $langs->trans(
"Options");
94 $head[$h][2] =
'options';
100 if ($action ==
'edit')
102 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
103 print '<input type="hidden" name="token" value="'.newToken().
'">';
104 print '<input type="hidden" name="action" value="update">';
106 print '<table class="noborder centpercent">';
107 print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td></tr>';
109 foreach ($arrayofparameters as $key => $val)
111 print '<tr class="oddeven"><td>';
112 print $form->textwithpicto($langs->trans($key), $langs->trans($key.
'Tooltip'));
113 print '</td><td><input name="'.$key.
'" class="flat '.(empty($val[
'css']) ?
'minwidth200' : $val[
'css']).
'" value="'.$conf->global->$key.
'"></td></tr>';
118 print '<br><div class="center">';
119 print '<input class="button button-save" type="submit" value="'.$langs->trans(
"Save").
'">';
125 print '<table class="noborder centpercent">';
126 print '<tr class="liste_titre"><td class="titlefield">'.$langs->trans(
"Parameter").
'</td><td>'.$langs->trans(
"Value").
'</td></tr>';
128 foreach ($arrayofparameters as $key => $val)
130 print '<tr class="oddeven"><td>';
131 print $form->textwithpicto($langs->trans($key), $langs->trans($key.
'Tooltip'));
132 print '</td><td>'.$conf->global->$key.
'</td></tr>';
137 print '<div class="tabsAction">';
138 print '<a class="butAction" href="'.$_SERVER[
"PHP_SELF"].
'?action=edit">'.$langs->trans(
"Modify").
'</a>';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname.
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
accessforbidden($message= '', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program Calling this function terminate execution ...
dol_get_fiche_head($links=array(), $active= '', $title= '', $notab=0, $picto= '', $pictoisfullpath=0, $morehtmlright= '', $morecss= '', $limittoshow=0, $moretabssuffix= '')
Show tabs of a record.
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.