29require
'../main.inc.php';
30require_once DOL_DOCUMENT_ROOT.
'/core/lib/ecm.lib.php';
31require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
44$action =
GETPOST(
'action',
'aZ09');
57if (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg)) {
60 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
68if (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg)) {
71 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
86llxHeader(
'', $langs->trans(
"ECMSetup"), $help_url,
'', 0, 0,
'',
'',
'',
'mod-admin page-ecm');
88$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
96print
'<table class="noborder centpercent">';
97print
'<tr class="liste_titre">';
98print
'<td>'.$langs->trans(
"Description").
'</td>';
99print
'<td class="center" width="100px">'.$langs->trans(
"Value").
'</td>'.
"\n";
104print
'<tr class="oddeven">';
105print
'<td>'.$langs->trans(
"ECMAutoTree").
'</td>';
106print
'<td class="center">';
107if (
$conf->use_javascript_ajax) {
108 print ajax_constantonoff(
'ECM_AUTO_TREE_HIDEN', array(),
null, 1);
111 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=set_ECM_AUTO_TREE_HIDEN&token='.
newToken().
'">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
113 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=del_ECM_AUTO_TREE_HIDEN&token='.
newToken().
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</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).
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.
ecm_admin_prepare_head()
Return array head with list of tabs to view object information.
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)
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.
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.
dol_print_error($db=null, $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
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.