25 require
'../main.inc.php';
28 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
29 if (!empty($conf->accounting->enabled)) require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formaccounting.class.php';
32 $langs->loadLangs(array(
'admin',
'loan'));
38 $action =
GETPOST(
'action',
'aZ09');
42 'LOAN_ACCOUNTING_ACCOUNT_CAPITAL',
43 'LOAN_ACCOUNTING_ACCOUNT_INTEREST',
44 'LOAN_ACCOUNTING_ACCOUNT_INSURANCE'
51 if ($action ==
'update')
55 foreach ($list as $constname) {
56 $constvalue =
GETPOST($constname,
'alpha');
58 if (!
dolibarr_set_const($db, $constname, $constvalue,
'chaine', 0,
'', $conf->entity)) {
77 $form =
new Form($db);
78 if (!empty($conf->accounting->enabled)) $formaccounting =
new FormAccounting($db);
80 $linkback =
'<a href="'.DOL_URL_ROOT.
'/admin/modules.php?restore_lastsearch_values=1">'.$langs->trans(
"BackToModuleList").
'</a>';
83 print '<form action="'.$_SERVER[
"PHP_SELF"].
'" method="post">';
84 print '<input type="hidden" name="token" value="'.newToken().
'">';
85 print '<input type="hidden" name="action" value="update">';
90 print '<table class="noborder centpercent">';
91 print '<tr class="liste_titre">';
92 print '<td colspan="3">'.$langs->trans(
'Options').
'</td>';
95 foreach ($list as $key)
97 print '<tr class="oddeven value">';
100 $label = $langs->trans($key);
101 print '<td><label for="'.$key.
'">'.$label.
'</label></td>';
105 if (!empty($conf->accounting->enabled))
107 print $formaccounting->select_account($conf->global->$key, $key, 1,
'', 1, 1);
109 print '<input type="text" size="20" id="'.$key.
'" name="'.$key.
'" value="'.$conf->global->$key.
'">';
119 print '<br><div style="text-align: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 ...
print
Draft customers invoices.