25require
'../../main.inc.php';
26require_once DOL_DOCUMENT_ROOT.
'/core/lib/hrm.lib.php';
27require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
30$langs->loadLangs(array(
'admin',
'hrm'));
33$action =
GETPOST(
'action',
'aZ09');
41$permissiontoread = $user->admin;
42$permissiontoadd = $user->admin;
49if (!isModEnabled(
'hrm')) {
52if (empty($permissiontoread)) {
61if ($action ==
'update') {
64 foreach ($list as $constname) {
65 $constvalue =
GETPOST($constname,
'alpha');
67 if (!
dolibarr_set_const($db, $constname, $constvalue,
'chaine', 0,
'', $conf->entity)) {
85$title = $langs->trans(
'Parameters');
94$linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
100print
'<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
101print
'<input type="hidden" name="token" value="'.newToken().
'">';
102print
'<input type="hidden" name="action" value="update">';
106print
'<table class="noborder centpercent">';
107print
'<tr class="liste_titre">';
108print
'<td colspan="3">'.$langs->trans(
'Parameters').
'</td>';
111foreach ($list as $key) {
112 print
'<tr class="oddeven value">';
115 $label = $langs->trans($key);
116 print
'<td width="50%"><label for="'.$key.
'">'.$label.
'</label></td>';
120 print
'<input type="text" size="20" id="'.$key.
'" name="'.$key.
'" value="'.
getDolGlobalString($key).
'">';
128print
'<div class="center"><input type="submit" class="button button-edit" name="button" value="'.$langs->trans(
'Modify').
'"></div>';
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).
if(!defined('NOREQUIRESOC')) if(!defined( 'NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined( 'NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined( 'NOREQUIREAJAX')) llxHeader()
Empty header.
hrm_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='', $dragdropfile=0)
Show tabs of a record.
dol_get_fiche_end($notab=0)
Return tab footer of a card.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='', $noduplicate=0)
Set event messages in dol_events session object.
dol_htmloutput_mesg($mesgstring='', $mesgarray=array(), $style='ok', $keepembedded=0)
Print formated messages to output (Used to show messages on html output).
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.