26 require
'../../main.inc.php';
27 require_once DOL_DOCUMENT_ROOT.
'/core/lib/categories.lib.php';
34 $langs->loadLangs(array(
"categories",
"admin"));
36 $action =
GETPOST(
'action',
'aZ09');
43 if (preg_match(
'/set_([a-z0-9_\-]+)/i', $action, $reg))
48 header(
"Location: ".
$_SERVER[
"PHP_SELF"]);
55 if (preg_match(
'/del_([a-z0-9_\-]+)/i', $action, $reg))
60 header(
"Location: ".
$_SERVER[
"PHP_SELF"]);
73 $help_url =
'EN:Module Categories|FR:Module Catégories|ES:Módulo Categorías';
74 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
76 llxHeader(
'', $langs->trans(
"Categories"), $help_url);
78 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
87 print '<table class="noborder centpercent">';
88 print
'<tr class="liste_titre">';
89 print
'<td>'.$langs->trans(
"Description").
'</td>';
90 print
'<td align="center" width="20"> </td>';
91 print
'<td align="center" width="100">'.$langs->trans(
"Value").
'</td>'.
"\n";
94 $form =
new Form($db);
98 print
'<tr class="oddeven">';
99 print
'<td>'.$langs->trans(
"CategorieRecursiv").
'</td>';
100 print
'<td align="center" width="20">'.$form->textwithpicto(
'', $langs->trans(
"CategorieRecursivHelp"), 1,
'help').
'</td>';
102 print
'<td align="center" width="100">';
103 if ($conf->use_javascript_ajax)
107 if (empty($conf->global->CATEGORIE_RECURSIV_ADD))
109 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=set_CATEGORIE_RECURSIV_ADD">'.
img_picto($langs->trans(
"Disabled"),
'off').
'</a>';
111 print
'<a href="'.$_SERVER[
'PHP_SELF'].
'?action=del_CATEGORIE_RECURSIV_ADD">'.
img_picto($langs->trans(
"Enabled"),
'on').
'</a>';
GETPOST($paramname, $check= 'alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
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).
setEventMessages($mesg, $mesgs, $style= 'mesgs', $messagekey= '')
Set event messages in dol_events session object.
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.
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.
categoriesadmin_prepare_head()
Prepare array with list of tabs.