30 require
'../main.inc.php';
31 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formother.class.php';
32 require_once DOL_DOCUMENT_ROOT.
'/core/class/html.formadmin.class.php';
33 require_once DOL_DOCUMENT_ROOT.
'/core/lib/usergroups.lib.php';
34 require_once DOL_DOCUMENT_ROOT.
'/core/lib/admin.lib.php';
35 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions2.lib.php';
36 require_once DOL_DOCUMENT_ROOT.
'/core/lib/pdf.lib.php';
39 $langs->loadLangs(array(
'admin',
'bills',
'companies',
'languages',
'members',
'other',
'products',
'propal',
'receptions',
'stocks',
'trips'));
45 $action =
GETPOST(
'action',
'aZ09');
52 if ($action ==
'update') {
54 dolibarr_set_const($db,
"PROPOSAL_PDF_HIDE_PAYMENTTERM",
GETPOST(
"PROPOSAL_PDF_HIDE_PAYMENTTERM"),
'chaine', 0,
'', $conf->entity);
57 dolibarr_set_const($db,
"PROPOSAL_PDF_HIDE_PAYMENTMODE",
GETPOST(
"PROPOSAL_PDF_HIDE_PAYMENTMODE"),
'chaine', 0,
'', $conf->entity);
59 if (
GETPOSTISSET(
'MAIN_GENERATE_PROPOSALS_WITH_PICTURE')) {
60 dolibarr_set_const($db,
"MAIN_GENERATE_PROPOSALS_WITH_PICTURE",
GETPOST(
"MAIN_GENERATE_PROPOSALS_WITH_PICTURE"),
'chaine', 0,
'', $conf->entity);
63 dolibarr_set_const($db,
"MAIN_DOCUMENTS_WITH_PICTURE_WIDTH",
GETPOST(
"MAIN_DOCUMENTS_WITH_PICTURE_WIDTH",
'int'),
'chaine', 0,
'', $conf->entity);
66 dolibarr_set_const($db,
"INVOICE_ADD_ZATCA_QR_CODE",
GETPOST(
"INVOICE_ADD_ZATCA_QR_CODE",
'int'),
'chaine', 0,
'', $conf->entity);
70 dolibarr_set_const($db,
"INVOICE_ADD_SWISS_QR_CODE",
GETPOST(
"INVOICE_ADD_SWISS_QR_CODE",
'int'),
'chaine', 0,
'', $conf->entity);
74 dolibarr_set_const($db,
"INVOICE_CATEGORY_OF_OPERATION",
GETPOST(
"INVOICE_CATEGORY_OF_OPERATION",
'int'),
'chaine', 0,
'', $conf->entity);
77 dolibarr_set_const($db,
"INVOICE_SHOW_SHIPPING_ADDRESS",
GETPOST(
"INVOICE_SHOW_SHIPPING_ADDRESS",
'int'),
'chaine', 0,
'', $conf->entity);
83 header(
"Location: ".$_SERVER[
"PHP_SELF"].
"?mainmenu=home&leftmenu=setup");
93 $wikihelp =
'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones';
107 print
'<span class="opacitymedium">'.$form->textwithpicto($langs->trans(
"PDFOtherDesc"), $tooltiptext).
"</span><br>\n";
110 print
'<form method="post" action="'.$_SERVER[
"PHP_SELF"].
'">';
111 print
'<input type="hidden" name="token" value="'.newToken().
'">';
112 print
'<input type="hidden" name="action" value="update">';
117 print
'<div class="div-table-responsive-no-min">';
118 print
'<table summary="more" class="noborder centpercent">';
119 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameter").
'</td><td width="200px">'.$langs->trans(
"Value").
'</td></tr>';
121 print
'<tr class="oddeven"><td>';
122 print
$form->textwithpicto($langs->trans(
"MAIN_GENERATE_PROPOSALS_WITH_PICTURE"), $langs->trans(
"RandomlySelectedIfSeveral"));
124 if ($conf->use_javascript_ajax) {
127 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
128 print
$form->selectarray(
"MAIN_GENERATE_PROPOSALS_WITH_PICTURE", $arrval, $conf->global->MAIN_GENERATE_PROPOSALS_WITH_PICTURE);
140 print
'<div class="div-table-responsive-no-min">';
141 print
'<table summary="more" class="noborder centpercent">';
142 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameters").
'</td><td width="200px">'.$langs->trans(
"Value").
'</td></tr>';
144 print
'<tr class="oddeven"><td>';
145 print
$form->textwithpicto($langs->trans(
"INVOICE_ADD_ZATCA_QR_CODE"), $langs->trans(
"INVOICE_ADD_ZATCA_QR_CODEMore"));
147 if ($conf->use_javascript_ajax) {
150 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
151 print
$form->selectarray(
"INVOICE_ADD_ZATCA_QR_CODE", $arrval, $conf->global->INVOICE_ADD_ZATCA_QR_CODE);
155 print
'<tr class="oddeven"><td>';
156 print
$form->textwithpicto($langs->trans(
"INVOICE_ADD_SWISS_QR_CODE"),
'');
158 if ($conf->use_javascript_ajax) {
161 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
162 print
$form->selectarray(
"INVOICE_ADD_SWISS_QR_CODE", $arrval, $conf->global->INVOICE_ADD_SWISS_QR_CODE);
168 print
'<tr class="oddeven"><td>';
169 print
$form->textwithpicto($langs->trans(
"InvoiceOptionCategoryOfOperations"), $langs->trans(
'InvoiceOptionCategoryOfOperationsHelp'), 1);
171 $arrval = array(
'0'=>$langs->trans(
"No"),
172 '1'=>$langs->trans(
"InvoiceOptionCategoryOfOperationsYes1"),
173 '2'=>$langs->trans(
"InvoiceOptionCategoryOfOperationsYes2")
175 print
$form->selectarray(
"INVOICE_CATEGORY_OF_OPERATION", $arrval, $conf->global->INVOICE_CATEGORY_OF_OPERATION, 0, 0, 0,
'', 0, 0, 0,
'',
'minwidth75imp');
178 print
'<tr class="oddeven"><td>'.$langs->trans(
"MAIN_PDF_PROPAL_USE_ELECTRONIC_SIGNING").
'</td><td>';
179 if ($conf->use_javascript_ajax) {
182 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
183 print
$form->selectarray(
"INVOICE_SHOW_SHIPPING_ADDRESS", $arrval, $conf->global->INVOICE_SHOW_SHIPPING_ADDRESS);
196 print
'<div class="div-table-responsive-no-min">';
197 print
'<table summary="more" class="noborder centpercent">';
198 print
'<tr class="liste_titre"><td class="titlefieldmiddle">'.$langs->trans(
"Parameters").
'</td><td width="200px">'.$langs->trans(
"Value").
'</td></tr>';
200 print
'<tr class="oddeven"><td>';
201 print $langs->trans(
"RECEPTION_PDF_HIDE_ORDERED");
203 if ($conf->use_javascript_ajax) {
206 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
207 print
$form->selectarray(
"RECEPTION_PDF_HIDE_ORDERED", $arrval, $conf->global->RECEPTION_PDF_HIDE_ORDERED);
211 print
'<tr class="oddeven"><td>';
212 print $langs->trans(
"MAIN_PDF_RECEPTION_DISPLAY_AMOUNT_HT");
214 if ($conf->use_javascript_ajax) {
217 $arrval = array(
'0' => $langs->trans(
"No"),
'1' => $langs->trans(
"Yes"));
218 print
$form->selectarray(
"MAIN_PDF_RECEPTION_DISPLAY_AMOUNT_HT", $arrval, $conf->global->MAIN_PDF_RECEPTION_DISPLAY_AMOUNT_HT);
227 print
'<br><div class="center">';
228 print
'<input class="button button-save" type="submit" name="save" value="'.$langs->trans(
"Save").
'">';
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).
dolibarr_del_const($db, $name, $entity=1)
Delete a constant.
if($actionsave) if(!isset($conf->global->MAIN_AGENDA_EXPORT_PAST_DELAY)) $wikihelp
View.
ajax_constantonoff($code, $input=array(), $entity=null, $revertonoff=0, $strict=0, $forcereload=0, $marginleftonlyshort=2, $forcenoajax=0, $setzeroinsteadofdel=0, $suffix='', $mode='', $morecss='')
On/off button for constant.
if(!defined('NOREQUIRESOC')) if(!defined('NOREQUIRETRAN')) if(!defined('NOTOKENRENEWAL')) if(!defined('NOREQUIREMENU')) if(!defined('NOREQUIREHTML')) if(!defined('NOREQUIREAJAX')) llxHeader()
Empty header.
if($cancel &&! $id) if($action=='add' &&! $cancel) if($action=='delete') if($id) $form
Actions.
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='')
Show tabs of a record.
setEventMessages($mesg, $mesgs, $style='mesgs', $messagekey='')
Set event messages in dol_events session object.
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
GETPOSTISSET($paramname)
Return true if we are in a context of submitting the parameter $paramname from a POST of a form.
isModEnabled($module)
Is Dolibarr module enabled.
pdf_admin_prepare_head()
Return array head with list of tabs to view object informations.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.