25 require
'../main.inc.php';
26 require_once DOL_DOCUMENT_ROOT.
'/core/lib/ecm.lib.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
30 $langs->load(
"admin");
38 if (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg))
43 header(
"Location: ".
$_SERVER[
"PHP_SELF"]);
50 if (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg))
55 header(
"Location: ".
$_SERVER[
"PHP_SELF"]);
68 llxHeader(
'', $langs->trans(
"ECMSetup"), $help_url);
70 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
78 print
'<table class="noborder centpercent">';
79 print
'<tr class="liste_titre">';
80 print
'<td>'.$langs->trans(
"Description").
'</td>';
81 print
'<td class="center" width="20"> </td>';
82 print
'<td class="center" width="100">'.$langs->trans(
"Value").
'</td>'.
"\n";
85 $form =
new Form($db);
89 print
'<tr class="oddeven">';
90 print
'<td>'.$langs->trans(
"ECMAutoTree").
'</td>';
91 print
'<td class="center" width="20"> </td>';
93 print
'<td class="center" width="100">';
94 if ($conf->use_javascript_ajax)
98 if (empty($conf->global->ECM_AUTO_TREE_ENABLED))
100 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=set_ECM_AUTO_TREE_ENABLED&token='.
newToken().
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
101 } elseif (!empty($conf->global->USER_MAIL_REQUIRED))
103 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=del_ECM_AUTO_TREE_ENABLED&token='.
newToken().
'">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
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).
load_fiche_titre($titre, $morehtmlright= '', $picto= 'generic', $pictoisfullpath=0, $id= '', $morecssontable= '', $morehtmlcenter= '')
Load a title with picto.
dolibarr_del_const($db, $name, $entity=1)
Effacement d'une constante dans la base de donnees.
img_picto($titlealt, $picto, $moreatt= '', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt= '', $morecss= '', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0, $strict=0, $forcereload=0, $marginleftonlyshort=2, $forcenoajax=0)
On/off button for constant.
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 ...
print $_SERVER["PHP_SELF"]
Edit parameters.
ecm_admin_prepare_head()
Return array head with list of tabs to view object informations.
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_print_error($db= '', $error= '', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
newToken()
Return the value of token currently saved into session with name 'newtoken'.