19 require
'../../main.inc.php';
20 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
21 require_once DOL_DOCUMENT_ROOT.
'/core/lib/product.lib.php';
23 $langs->loadLangs(array(
"admin",
"products"));
25 $action =
GETPOST(
'action',
'alphanohtml');
28 if (!$user->admin || (empty($conf->product->enabled) && empty($conf->service->enabled)))
39 $value =
GETPOST(
'PRODUIT_ATTRIBUTES_HIDECHILD');
41 if (!
dolibarr_set_const($db,
'PRODUIT_ATTRIBUTES_HIDECHILD', $value,
'chaine', 0,
'', $conf->entity)) {
46 if (!
dolibarr_set_const($db,
'PRODUIT_ATTRIBUTES_SEPARATOR',
GETPOST(
'PRODUIT_ATTRIBUTES_SEPARATOR'),
'chaine', 0,
'', $conf->entity)) {
56 $title = $langs->trans(
'ModuleSetup').
' '.$langs->trans(
'Module610Name');
59 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
62 print '<form method="POST" action="'.$_SERVER[
"PHP_SELF"].
'">';
63 print '<input type="hidden" name="token" value="'.newToken().
'">';
64 print '<input type="hidden" name="action" value="update">';
66 print '<table class="noborder centpercent">';
68 print '<tr class="liste_titre">';
69 print '<th>'.$langs->trans(
"Parameters").
'</th>'.
"\n";
70 print '<th class="right" width="60">'.$langs->trans(
"Value").
'</th>'.
"\n";
73 print '<tr class="oddeven"><td>'.$langs->trans(
'HideProductCombinations').
'</td><td>';
74 print $form->selectyesno(
"PRODUIT_ATTRIBUTES_HIDECHILD", $conf->global->PRODUIT_ATTRIBUTES_HIDECHILD, 1).
'</td></tr>';
76 print '<tr class="oddeven"><td>'.$langs->trans(
'CombinationsSeparator').
'</td>';
77 if (isset($conf->global->PRODUIT_ATTRIBUTES_SEPARATOR)) {
78 $separator = $conf->global->PRODUIT_ATTRIBUTES_SEPARATOR;
82 print '<td class="right"><input size="3" type="text" class="flat" name="PRODUIT_ATTRIBUTES_SEPARATOR" value="'.$separator.
'"></td></tr>';
86 print '<br><div class="center"><input type="submit" value="'.$langs->trans(
"Save").
'" class="button button-save"></div>';
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.
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
Draft customers invoices.