23 require
'../../main.inc.php';
24 require_once DOL_DOCUMENT_ROOT.
'/core/lib/hrm.lib.php';
25 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
28 $langs->loadLangs(array(
'admin',
'hrm'));
33 $action =
GETPOST(
'action',
'aZ09');
43 if ($action ==
'update') {
46 foreach ($list as $constname) {
47 $constvalue =
GETPOST($constname,
'alpha');
49 if (!
dolibarr_set_const($db, $constname, $constvalue,
'chaine', 0,
'', $conf->entity)) {
66 llxHeader(
'', $langs->trans(
'Parameters'));
68 $form =
new Form($db);
73 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
79 print '<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
80 print '<input type="hidden" name="token" value="'.newToken().
'">';
81 print '<input type="hidden" name="action" value="update">';
85 print '<table class="noborder centpercent">';
86 print
'<tr class="liste_titre">';
87 print
'<td colspan="3">'.$langs->trans(
'Parameters').
'</td>';
90 foreach ($list as $key) {
93 print
'<tr '.$bc[$var].
' class="value">';
96 $label = $langs->trans($key);
97 print
'<td width="50%"><label for="'.$key.
'">'.$label.
'</label></td>';
101 print
'<input type="text" size="20" id="'.$key.
'" name="'.$key.
'" value="'.$conf->global->$key.
'">';
109 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.
hrm_admin_prepare_head()
Return array head with list of tabs to view object informations.
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.
dol_htmloutput_mesg($mesgstring= '', $mesgarray=array(), $style= 'ok', $keepembedded=0)
Print formated messages to output (Used to show messages on html output).
print
Draft customers invoices.
dol_get_fiche_end($notab=0)
Return tab footer of a card.