25 require
'../../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29 require_once DOL_DOCUMENT_ROOT.
'/core/lib/salaries.lib.php';
30 if (!empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formaccounting.class.php';
33 $langs->loadLangs(array(
'admin',
'salaries'));
39 $action =
GETPOST(
'action',
'aZ09');
43 'SALARIES_ACCOUNTING_ACCOUNT_PAYMENT',
50 if ($action ==
'update')
54 foreach ($list as $constname) {
55 $constvalue =
GETPOST($constname,
'alpha');
57 if (!
dolibarr_set_const($db, $constname, $constvalue,
'chaine', 0,
'', $conf->entity)) {
74 llxHeader(
'', $langs->trans(
'SalariesSetup'));
76 $form =
new Form($db);
77 if (!empty($conf->accounting->enabled)) $formaccounting =
new FormAccounting($db);
79 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
82 $head = salaries_admin_prepare_head();
89 print '<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
90 print '<input type="hidden" name="token" value="'.newToken().
'">';
91 print '<input type="hidden" name="action" value="update">';
96 print '<table class="noborder centpercent">';
97 print '<tr class="liste_titre">';
98 print '<td>'.$langs->trans(
"Parameters").
'</td>';
99 print '<td width="60">'.$langs->trans(
"Value").
"</td>\n";
102 foreach ($list as $key)
104 print '<tr class="oddeven value">';
107 $label = $langs->trans($key);
108 print '<td class="fieldrequired" width="50%"><label for="'.$key.
'">'.$label.
'</label></td>';
112 if (!empty($conf->accounting->enabled))
114 print $formaccounting->select_account($conf->global->$key, $key, 1,
'', 1, 1);
116 print '<input type="text" size="20" id="'.$key.
'" name="'.$key.
'" value="'.$conf->global->$key.
'">';
127 print '<div class="center"><input type="submit" class="button" value="'.$langs->trans(
'Modify').
'" name="button"></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 ...
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.