27 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/ecm.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
32 $langs->load(
"admin");
34 $action =
GETPOST(
'action',
'aZ09');
47 if (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg)) {
50 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
58 if (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg)) {
61 header(
"Location: ".$_SERVER[
"PHP_SELF"]);
78 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
86 print
'<table class="noborder centpercent">';
87 print
'<tr class="liste_titre">';
88 print
'<td>'.$langs->trans(
"Description").
'</td>';
89 print
'<td class="center" width="100px">'.$langs->trans(
"Value").
'</td>'.
"\n";
94 print
'<tr class="oddeven">';
95 print
'<td>'.$langs->trans(
"ECMAutoTree").
'</td>';
96 print
'<td class="center">';
97 if ($conf->use_javascript_ajax) {
100 if (empty($conf->global->ECM_AUTO_TREE_HIDEN)) {
101 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=set_ECM_AUTO_TREE_HIDEN&token='.
newToken().
'">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
103 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=del_ECM_AUTO_TREE_HIDEN&token='.
newToken().
'">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
if(GETPOST('button_removefilter_x', 'alpha')||GETPOST('button_removefilter.x', 'alpha')||GETPOST('button_removefilter', 'alpha')) if(GETPOST('button_search_x', 'alpha')||GETPOST('button_search.x', 'alpha')||GETPOST('button_search', 'alpha')) if($action=="save" &&empty($cancel)) $help_url
View.
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.
ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0, $strict=0, $forcereload=0, $marginleftonlyshort=2, $forcenoajax=0, $setzeroinsteadofdel=0, $suffix='', $mode='', $morecss='')
On/off button for constant.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
ecm_admin_prepare_head()
Return array head with list of tabs to view object informations.
load_fiche_titre($titre, $morehtmlright='', $picto='generic', $pictoisfullpath=0, $id='', $morecssontable='', $morehtmlcenter='')
Load a title with picto.
dol_get_fiche_head($links=array(), $active='', $title='', $notab=0, $picto='', $pictoisfullpath=0, $morehtmlright='', $morecss='', $limittoshow=0, $moretabssuffix='')
Show tabs of a record.
dol_print_error($db='', $error='', $errors=null)
Displays error message system with all the information to facilitate the diagnosis and the escalation...
img_picto($titlealt, $picto, $moreatt='', $pictoisfullpath=false, $srconly=0, $notitle=0, $alt='', $morecss='', $marginleftonlyshort=2)
Show picto whatever it's its name (generic function)
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.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.