2011-08-11 01:48:09 +02:00
< ? php
2024-10-25 13:43:35 +02:00
/* Copyright ( C ) 2001 - 2005 Rodolphe Quiedeville < rodolphe @ quiedeville . org >
* Copyright ( C ) 2004 - 2022 Laurent Destailleur < eldy @ users . sourceforge . net >
* Copyright ( C ) 2005 - 2011 Regis Houssin < regis . houssin @ inodbox . com >
* Copyright ( C ) 2012 - 2017 Juanjo Menent < jmenent @ 2 byte . es >
* Copyright ( C ) 2019 Ferran Marcet < fmarcet @ 2 byte . es >
* Copyright ( C ) 2021 - 2022 Anthony Berton < bertonanthony @ gmail . com >
* Copyright ( C ) 2024 MDW < mdeweerd @ users . noreply . github . com >
* Copyright ( C ) 2024 Nick Fragoulis
* Copyright ( C ) 2024 Alexandre Spangaro < alexandre @ inovea - conseil . com >
2024-11-04 23:53:20 +01:00
* Copyright ( C ) 2024 Frédéric France < frederic . france @ free . fr >
2011-08-11 01:48:09 +02:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
2013-01-16 15:36:08 +01:00
* the Free Software Foundation ; either version 3 of the License , or
2011-08-11 01:48:09 +02:00
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
2019-09-23 21:55:30 +02:00
* along with this program . If not , see < https :// www . gnu . org / licenses />.
2011-08-11 01:48:09 +02:00
*/
/**
* \file htdocs / admin / pdf . php
* \brief Page to setup PDF options
*/
2022-09-07 20:08:59 +02:00
// Load Dolibarr environment
2012-08-22 23:24:21 +02:00
require '../main.inc.php' ;
2012-12-19 13:06:45 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formother.class.php' ;
require_once DOL_DOCUMENT_ROOT . '/core/class/html.formadmin.class.php' ;
2012-08-22 23:11:24 +02:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/usergroups.lib.php' ;
require_once DOL_DOCUMENT_ROOT . '/core/lib/admin.lib.php' ;
require_once DOL_DOCUMENT_ROOT . '/core/lib/functions2.lib.php' ;
2013-01-10 08:27:12 +01:00
require_once DOL_DOCUMENT_ROOT . '/core/lib/pdf.lib.php' ;
2011-08-11 01:48:09 +02:00
2024-11-04 23:53:20 +01:00
/**
* @ var Conf $conf
* @ var DoliDB $db
* @ var HookManager $hookmanager
* @ var Societe $mysoc
* @ var Translate $langs
* @ var User $user
*/
2018-05-26 18:41:16 +02:00
// Load translation files required by the page
2022-12-16 14:41:45 +01:00
$langs -> loadLangs ( array ( 'admin' , 'companies' , 'languages' , 'members' , 'other' , 'products' , 'stocks' , 'trips' ));
2011-08-11 01:48:09 +02:00
2021-02-26 22:04:03 +01:00
if ( ! $user -> admin ) {
accessforbidden ();
}
2011-12-28 10:17:33 +01:00
2020-09-16 19:39:50 +02:00
$action = GETPOST ( 'action' , 'aZ09' );
2019-01-27 11:55:16 +01:00
$cancel = GETPOST ( 'cancel' , 'alpha' );
2017-05-02 14:26:51 +02:00
2011-08-11 01:48:09 +02:00
2011-08-31 12:59:54 +02:00
/*
* Actions
*/
2011-08-11 01:48:09 +02:00
2017-05-02 14:26:51 +02:00
if ( $cancel ) {
2020-10-31 14:32:18 +01:00
$action = '' ;
2017-05-02 14:26:51 +02:00
}
2021-02-26 22:04:03 +01:00
if ( $action == 'update' ) {
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_PDF_FORMAT' )) {
dolibarr_set_const ( $db , " MAIN_PDF_FORMAT " , GETPOST ( " MAIN_PDF_FORMAT " ), 'chaine' , 0 , '' , $conf -> entity );
}
2017-09-08 10:09:22 +02:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_PDF_MARGIN_LEFT' )) {
dolibarr_set_const ( $db , " MAIN_PDF_MARGIN_LEFT " , GETPOST ( " MAIN_PDF_MARGIN_LEFT " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PDF_MARGIN_RIGHT' )) {
2021-09-03 11:02:21 +02:00
dolibarr_set_const ( $db , " MAIN_PDF_MARGIN_RIGHT " , GETPOST ( " MAIN_PDF_MARGIN_RIGHT " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PDF_MARGIN_TOP' )) {
dolibarr_set_const ( $db , " MAIN_PDF_MARGIN_TOP " , GETPOST ( " MAIN_PDF_MARGIN_TOP " ), 'chaine' , 0 , '' , $conf -> entity );
2021-08-31 20:18:28 +02:00
}
if ( GETPOSTISSET ( 'MAIN_PDF_MARGIN_BOTTOM' )) {
dolibarr_set_const ( $db , " MAIN_PDF_MARGIN_BOTTOM " , GETPOST ( " MAIN_PDF_MARGIN_BOTTOM " ), 'chaine' , 0 , '' , $conf -> entity );
}
2015-03-02 01:38:40 +01:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_PROFID1_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_PROFID1_IN_ADDRESS " , GETPOST ( " MAIN_PROFID1_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PROFID2_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_PROFID2_IN_ADDRESS " , GETPOST ( " MAIN_PROFID2_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PROFID3_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_PROFID3_IN_ADDRESS " , GETPOST ( " MAIN_PROFID3_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PROFID4_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_PROFID4_IN_ADDRESS " , GETPOST ( " MAIN_PROFID4_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PROFID5_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_PROFID5_IN_ADDRESS " , GETPOST ( " MAIN_PROFID5_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PROFID6_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_PROFID6_IN_ADDRESS " , GETPOST ( " MAIN_PROFID6_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
2020-02-11 16:01:32 +01:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_PDF_NO_SENDER_FRAME' )) {
dolibarr_set_const ( $db , " MAIN_PDF_NO_SENDER_FRAME " , GETPOST ( " MAIN_PDF_NO_SENDER_FRAME " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PDF_NO_RECIPENT_FRAME' )) {
dolibarr_set_const ( $db , " MAIN_PDF_NO_RECIPENT_FRAME " , GETPOST ( " MAIN_PDF_NO_RECIPENT_FRAME " ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-08-10 13:34:12 +02:00
2022-02-04 12:17:38 +01:00
/* if ( GETPOSTISSET ( 'MAIN_PDF_HIDE_SENDER_NAME' )) {
2021-08-31 20:18:28 +02:00
dolibarr_set_const ( $db , " MAIN_PDF_HIDE_SENDER_NAME " , GETPOST ( " MAIN_PDF_HIDE_SENDER_NAME " ), 'chaine' , 0 , '' , $conf -> entity );
2022-02-04 12:17:38 +01:00
} */
2021-08-10 13:18:07 +02:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT' )) {
dolibarr_set_const ( $db , " MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT " , GETPOST ( " MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT " ), 'chaine' , 0 , '' , $conf -> entity );
}
2012-12-19 13:06:45 +01:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_TVAINTRA_NOT_IN_ADDRESS' )) {
dolibarr_set_const ( $db , " MAIN_TVAINTRA_NOT_IN_ADDRESS " , GETPOST ( " MAIN_TVAINTRA_NOT_IN_ADDRESS " ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-04-01 13:04:24 +02:00
2022-08-27 19:43:19 +02:00
if ( isModEnabled ( 'project' )) {
2021-04-01 13:04:24 +02:00
if ( GETPOST ( 'PDF_SHOW_PROJECT_REF_OR_LABEL' ) == 'no' ) {
dolibarr_del_const ( $db , " PDF_SHOW_PROJECT " , $conf -> entity );
dolibarr_del_const ( $db , " PDF_SHOW_PROJECT_TITLE " , $conf -> entity );
} elseif ( GETPOST ( 'PDF_SHOW_PROJECT_REF_OR_LABEL' ) == 'showprojectref' ) {
dolibarr_set_const ( $db , " PDF_SHOW_PROJECT " , GETPOST ( " PDF_SHOW_PROJECT_REF_OR_LABEL " ), 'chaine' , 0 , '' , $conf -> entity );
dolibarr_del_const ( $db , " PDF_SHOW_PROJECT_TITLE " , $conf -> entity );
} elseif ( GETPOST ( 'PDF_SHOW_PROJECT_REF_OR_LABEL' ) == 'showprojectlabel' ) {
dolibarr_del_const ( $db , " PDF_SHOW_PROJECT " , $conf -> entity );
dolibarr_set_const ( $db , " PDF_SHOW_PROJECT_TITLE " , GETPOST ( " PDF_SHOW_PROJECT_REF_OR_LABEL " ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-04-01 13:02:44 +02:00
}
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS' )) {
dolibarr_set_const ( $db , " MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS " , GETPOST ( " MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DESC' )) {
dolibarr_set_const ( $db , " MAIN_GENERATE_DOCUMENTS_HIDE_DESC " , GETPOST ( " MAIN_GENERATE_DOCUMENTS_HIDE_DESC " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_GENERATE_DOCUMENTS_HIDE_REF' )) {
dolibarr_set_const ( $db , " MAIN_GENERATE_DOCUMENTS_HIDE_REF " , GETPOST ( " MAIN_GENERATE_DOCUMENTS_HIDE_REF " ), 'chaine' , 0 , '' , $conf -> entity );
}
2018-09-23 14:57:44 +02:00
2023-10-30 03:13:12 +01:00
if ( GETPOSTISSET ( 'MAIN_GENERATE_DOCUMENTS_SHOW_PRODUCT_BARCODE' )) {
dolibarr_set_const ( $db , " MAIN_GENERATE_DOCUMENTS_SHOW_PRODUCT_BARCODE " , GETPOST ( " MAIN_GENERATE_DOCUMENTS_SHOW_PRODUCT_BARCODE " ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_DOCUMENTS_LOGO_HEIGHT' )) {
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
dolibarr_set_const ( $db , " MAIN_DOCUMENTS_LOGO_HEIGHT " , GETPOSTINT ( " MAIN_DOCUMENTS_LOGO_HEIGHT " ), 'chaine' , 0 , '' , $conf -> entity );
2021-08-31 20:18:28 +02:00
}
2024-10-04 09:13:44 +02:00
if ( GETPOSTISSET ( 'MAIN_PDF_FRAME_CORNER_RADIUS' )) {
dolibarr_set_const ( $db , " MAIN_PDF_FRAME_CORNER_RADIUS " , GETPOSTINT ( " MAIN_PDF_FRAME_CORNER_RADIUS " ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_INVERT_SENDER_RECIPIENT' )) {
dolibarr_set_const ( $db , " MAIN_INVERT_SENDER_RECIPIENT " , GETPOST ( " MAIN_INVERT_SENDER_RECIPIENT " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PDF_USE_ISO_LOCATION' )) {
dolibarr_set_const ( $db , " MAIN_PDF_USE_ISO_LOCATION " , GETPOST ( " MAIN_PDF_USE_ISO_LOCATION " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PDF_NO_CUSTOMER_CODE' )) {
dolibarr_set_const ( $db , " MAIN_PDF_NO_CUSTOMER_CODE " , GETPOST ( " MAIN_PDF_NO_CUSTOMER_CODE " ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-08-10 13:31:25 +02:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS' )) {
dolibarr_set_const ( $db , " MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS " , GETPOST ( " MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS " ), 'chaine' , 0 , '' , $conf -> entity );
}
2017-08-30 14:36:00 +02:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'MAIN_PDF_MAIN_HIDE_SECOND_TAX' )) {
dolibarr_set_const ( $db , " MAIN_PDF_MAIN_HIDE_SECOND_TAX " , GETPOST ( " MAIN_PDF_MAIN_HIDE_SECOND_TAX " ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'MAIN_PDF_MAIN_HIDE_THIRD_TAX' )) {
dolibarr_set_const ( $db , " MAIN_PDF_MAIN_HIDE_THIRD_TAX " , GETPOST ( " MAIN_PDF_MAIN_HIDE_THIRD_TAX " ), 'chaine' , 0 , '' , $conf -> entity );
}
2017-08-30 14:36:00 +02:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'PDF_USE_ALSO_LANGUAGE_CODE' )) {
dolibarr_set_const ( $db , " PDF_USE_ALSO_LANGUAGE_CODE " , GETPOST ( 'PDF_USE_ALSO_LANGUAGE_CODE' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
}
if ( GETPOSTISSET ( 'SHOW_SUBPRODUCT_REF_IN_PDF' )) {
dolibarr_set_const ( $db , " SHOW_SUBPRODUCT_REF_IN_PDF " , GETPOST ( 'SHOW_SUBPRODUCT_REF_IN_PDF' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
}
2020-02-11 16:01:32 +01:00
2021-08-31 20:18:28 +02:00
if ( GETPOSTISSET ( 'PDF_SHOW_LINK_TO_ONLINE_PAYMENT' )) {
dolibarr_set_const ( $db , " PDF_SHOW_LINK_TO_ONLINE_PAYMENT " , GETPOST ( 'PDF_SHOW_LINK_TO_ONLINE_PAYMENT' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-08-31 12:29:14 +02:00
2021-09-09 08:29:33 +02:00
if ( GETPOSTISSET ( 'DOC_SHOW_FIRST_SALES_REP' )) {
2021-09-09 08:27:04 +02:00
dolibarr_set_const ( $db , " DOC_SHOW_FIRST_SALES_REP " , GETPOST ( 'DOC_SHOW_FIRST_SALES_REP' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
2022-08-23 11:58:08 +02:00
}
2022-08-23 01:58:07 +02:00
2021-09-09 08:31:16 +02:00
if ( GETPOSTISSET ( 'PDF_INCLUDE_ALIAS_IN_THIRDPARTY_NAME' )) {
dolibarr_set_const ( $db , " PDF_INCLUDE_ALIAS_IN_THIRDPARTY_NAME " , GETPOST ( 'PDF_INCLUDE_ALIAS_IN_THIRDPARTY_NAME' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
2021-11-08 14:24:10 +01:00
}
2021-10-16 19:03:20 +02:00
if ( GETPOSTISSET ( 'PDF_USE_A' )) {
dolibarr_set_const ( $db , " PDF_USE_A " , GETPOST ( 'PDF_USE_A' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
2021-10-15 11:59:12 +02:00
}
2021-11-28 14:40:15 +01:00
if ( GETPOSTISSET ( 'PDF_BOLD_PRODUCT_LABEL' )) {
dolibarr_set_const ( $db , " PDF_BOLD_PRODUCT_LABEL " , GETPOST ( 'PDF_BOLD_PRODUCT_LABEL' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
}
2021-11-28 14:42:25 +01:00
if ( GETPOSTISSET ( 'PDF_BOLD_PRODUCT_REF_AND_PERIOD' )) {
2021-11-28 14:40:15 +01:00
dolibarr_set_const ( $db , " PDF_BOLD_PRODUCT_REF_AND_PERIOD " , GETPOST ( 'PDF_BOLD_PRODUCT_REF_AND_PERIOD' , 'alpha' ), 'chaine' , 0 , '' , $conf -> entity );
}
2020-07-24 09:58:39 +02:00
setEventMessages ( $langs -> trans ( " SetupSaved " ), null , 'mesgs' );
2020-02-11 16:01:32 +01:00
2012-08-31 05:58:38 +02:00
header ( " Location: " . $_SERVER [ " PHP_SELF " ] . " ?mainmenu=home&leftmenu=setup " );
2011-08-11 01:48:09 +02:00
exit ;
}
2013-03-16 12:22:37 +01:00
2011-08-11 01:48:09 +02:00
/*
* View
*/
2019-11-13 19:35:02 +01:00
$wikihelp = 'EN:First_setup|FR:Premiers_paramétrages|ES:Primeras_configuraciones' ;
2024-06-08 17:03:08 +02:00
llxHeader ( '' , $langs -> trans ( " Setup " ), $wikihelp , '' , 0 , 0 , '' , '' , '' , 'mod-admin page-pdf' );
2011-08-11 01:48:09 +02:00
2019-11-13 19:35:02 +01:00
$form = new Form ( $db );
$formother = new FormOther ( $db );
$formadmin = new FormAdmin ( $db );
2011-08-11 01:48:09 +02:00
2016-04-23 17:37:12 +02:00
$arraydetailsforpdffoot = array (
2017-10-24 10:09:20 +02:00
0 => $langs -> transnoentitiesnoconv ( 'NoDetails' ),
1 => $langs -> transnoentitiesnoconv ( 'DisplayCompanyInfo' ),
2 => $langs -> transnoentitiesnoconv ( 'DisplayCompanyManagers' ),
3 => $langs -> transnoentitiesnoconv ( 'DisplayCompanyInfoAndManagers' )
2016-04-23 17:37:12 +02:00
);
2021-11-15 09:02:01 +01:00
$arraylistofpdfformat = array (
0 => $langs -> transnoentitiesnoconv ( 'PDF 1.7' ),
1 => $langs -> transnoentitiesnoconv ( 'PDF/A-1b' ),
3 => $langs -> transnoentitiesnoconv ( 'PDF/A-3b' ),
);
2020-07-24 09:56:14 +02:00
$s = $langs -> trans ( " LibraryToBuildPDF " ) . " <br> " ;
$i = 0 ;
2024-08-29 15:01:42 +02:00
$pdf = pdf_getInstance ( array ( 210 , 297 ));
2021-02-26 22:04:03 +01:00
if ( class_exists ( 'FPDF' ) && ! class_exists ( 'TCPDF' )) {
if ( $i ) {
$s .= ' + ' ;
}
2020-07-24 09:56:14 +02:00
$s .= 'FPDF' ;
$s .= ' (' .@ constant ( 'FPDF_PATH' ) . ')' ;
$i ++ ;
}
2021-02-26 22:04:03 +01:00
if ( class_exists ( 'TCPDF' )) {
if ( $i ) {
$s .= ' + ' ;
}
2020-07-24 09:56:14 +02:00
$s .= 'TCPDF' ;
$s .= ' (' .@ constant ( 'TCPDF_PATH' ) . ')' ;
$i ++ ;
}
2021-02-26 22:04:03 +01:00
if ( class_exists ( 'FPDI' )) {
if ( $i ) {
$s .= ' + ' ;
}
2020-07-24 09:56:14 +02:00
$s .= 'FPDI' ;
$s .= ' (' .@ constant ( 'FPDI_PATH' ) . ')' ;
$i ++ ;
}
2021-02-26 22:04:03 +01:00
if ( class_exists ( 'TCPDI' )) {
if ( $i ) {
$s .= ' + ' ;
}
2020-07-24 09:56:14 +02:00
$s .= 'TCPDI' ;
$s .= ' (' .@ constant ( 'TCPDI_PATH' ) . ')' ;
$i ++ ;
}
2019-01-27 11:55:16 +01:00
print load_fiche_titre ( $langs -> trans ( " PDF " ), '' , 'title_setup' );
2011-08-11 01:48:09 +02:00
2021-04-27 00:22:39 +02:00
$head = pdf_admin_prepare_head ();
2022-02-13 16:49:41 +01:00
print dol_get_fiche_head ( $head , 'general' , '' , - 1 , '' );
2021-04-27 00:22:39 +02:00
2020-07-24 09:56:14 +02:00
print '<span class="opacitymedium">' . $form -> textwithpicto ( $langs -> trans ( " PDFDesc " ), $s ) . " </span><br> \n " ;
2011-08-11 01:48:09 +02:00
print " <br> \n " ;
2024-08-07 03:05:02 +02:00
$noCountryCode = empty ( $mysoc -> country_code );
2011-08-11 01:48:09 +02:00
2019-10-11 14:42:55 +02:00
print '<form method="post" action="' . $_SERVER [ " PHP_SELF " ] . '">' ;
2019-12-18 23:12:31 +01:00
print '<input type="hidden" name="token" value="' . newToken () . '">' ;
2019-10-11 14:42:55 +02:00
print '<input type="hidden" name="action" value="update">' ;
2017-08-30 14:36:00 +02:00
2019-10-11 14:42:55 +02:00
clearstatcache ();
2017-09-08 10:09:22 +02:00
2017-08-30 14:36:00 +02:00
2023-03-01 23:50:02 +01:00
if ( getDolGlobalString ( 'PDF_SECURITY_ENCRYPTION' )) {
print '<div class="warning">' ;
print 'The not supported and hidden option PDF_SECURITY_ENCRYPTION has been enabled. This means a lof of feature related to PDF will be broken, like mass PDF generation or online signature of PDF.' . " \n " ;
print 'You should disable this option.' ;
print '</div>' ;
}
2019-10-11 14:42:55 +02:00
// Misc options
print load_fiche_titre ( $langs -> trans ( " DictionaryPaperFormat " ), '' , '' );
2018-04-30 09:28:24 +02:00
2023-03-01 23:50:02 +01:00
2019-10-11 14:42:55 +02:00
print '<div class="div-table-responsive-no-min">' ;
2019-11-05 21:24:41 +01:00
print '<table summary="more" class="noborder centpercent">' ;
2025-01-24 13:12:48 +01:00
print '<tr class="liste_titre"><td class="titlefieldmiddle">' . $langs -> trans ( " Parameters " ) . '</td><td width="200px"></td></tr>' ;
2018-04-30 09:28:24 +02:00
2024-05-09 14:55:50 +02:00
$selected = getDolGlobalString ( 'MAIN_PDF_FORMAT' );
2021-02-26 22:04:03 +01:00
if ( empty ( $selected )) {
$selected = dol_getDefaultFormat ();
}
2018-04-30 09:28:24 +02:00
2019-10-11 14:42:55 +02:00
// Show pdf format
2018-04-30 09:28:24 +02:00
2019-10-11 14:42:55 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " DictionaryPaperFormat " ) . '</td><td>' ;
print $formadmin -> select_paper_format ( $selected , 'MAIN_PDF_FORMAT' );
print '</td></tr>' ;
2017-08-30 14:36:00 +02:00
2019-10-11 14:42:55 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_MARGIN_LEFT " ) . '</td><td>' ;
2022-09-14 21:33:43 +02:00
print '<input type="text" class="maxwidth50" name="MAIN_PDF_MARGIN_LEFT" value="' . getDolGlobalInt ( 'MAIN_PDF_MARGIN_LEFT' , 10 ) . '">' ;
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_MARGIN_RIGHT " ) . '</td><td>' ;
2022-09-14 21:33:43 +02:00
print '<input type="text" class="maxwidth50" name="MAIN_PDF_MARGIN_RIGHT" value="' . getDolGlobalInt ( 'MAIN_PDF_MARGIN_RIGHT' , 10 ) . '">' ;
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_MARGIN_TOP " ) . '</td><td>' ;
2022-09-14 21:33:43 +02:00
print '<input type="text" class="maxwidth50" name="MAIN_PDF_MARGIN_TOP" value="' . getDolGlobalInt ( 'MAIN_PDF_MARGIN_TOP' , 10 ) . '">' ;
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_MARGIN_BOTTOM " ) . '</td><td>' ;
2022-09-14 21:33:43 +02:00
print '<input type="text" class="maxwidth50" name="MAIN_PDF_MARGIN_BOTTOM" value="' . getDolGlobalInt ( 'MAIN_PDF_MARGIN_BOTTOM' , 10 ) . '">' ;
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
2017-08-30 14:36:00 +02:00
2019-10-11 14:42:55 +02:00
print '</table>' ;
print '</div>' ;
2017-09-08 10:09:22 +02:00
2019-10-11 14:42:55 +02:00
print '<br>' ;
2011-08-31 12:59:54 +02:00
2017-09-08 10:09:22 +02:00
2019-10-11 14:42:55 +02:00
// Addresses
print load_fiche_titre ( $langs -> trans ( " PDFAddressForging " ), '' , '' );
2012-12-19 13:06:45 +01:00
2019-10-11 14:42:55 +02:00
print '<div class="div-table-responsive-no-min">' ;
2019-11-05 21:24:41 +01:00
print '<table summary="more" class="noborder centpercent">' ;
2022-11-12 12:04:04 +01:00
print '<tr class="liste_titre"><td class="">' . $langs -> trans ( " Parameter " ) . '</td><td></td></tr>' ;
2017-09-08 10:09:22 +02:00
2022-02-04 12:17:38 +01:00
// Show sender name
2022-04-14 14:11:40 +02:00
/* Set option as hidden because no need of this for 99.99 % of users . Having it as hidden feature is enough .
2022-02-04 12:17:38 +01:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_HIDE_SENDER_NAME " ) . '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_PDF_HIDE_SENDER_NAME' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_PDF_HIDE_SENDER_NAME' , getDolGlobalInt ( 'MAIN_PDF_HIDE_SENDER_NAME' ), 1 );
2022-02-04 12:17:38 +01:00
}
print '</td></tr>' ;
*/
2019-10-11 14:42:55 +02:00
// Hide VAT Intra on address
2013-04-26 13:25:51 +02:00
2022-04-14 14:11:40 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " ShowVATIntaInAddress " ) . ' - <span class="opacitymedium">' . $langs -> trans ( " ThirdPartyAddress " ) . '</span></td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_TVAINTRA_NOT_IN_ADDRESS' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_TVAINTRA_NOT_IN_ADDRESS' , getDolGlobalInt ( 'MAIN_TVAINTRA_NOT_IN_ADDRESS' ), 1 );
2021-05-03 22:28:40 +02:00
}
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
2017-09-08 10:09:22 +02:00
2019-10-11 14:42:55 +02:00
// Show prof id in address into pdf
2021-02-26 22:04:03 +01:00
for ( $i = 1 ; $i <= 6 ; $i ++ ) {
if ( ! $noCountryCode ) {
2019-11-13 19:35:02 +01:00
$pid = $langs -> transcountry ( " ProfId " . $i , $mysoc -> country_code );
2021-02-26 22:04:03 +01:00
if ( $pid == '-' ) {
$pid = false ;
}
2020-05-21 09:35:30 +02:00
} else {
2021-10-05 06:25:53 +02:00
$pid = img_warning () . ' <span class="error">' . $langs -> trans ( " ErrorFieldRequired " , $langs -> transnoentitiesnoconv ( " CompanyCountry " )) . '</span>' ;
2019-10-11 14:42:55 +02:00
}
2021-02-26 22:04:03 +01:00
if ( $pid ) {
2022-04-14 14:11:40 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " ShowProfIdInAddress " ) . ' - ' . $pid . ' - <span class="opacitymedium">' . $langs -> trans ( " ThirdPartyAddress " ) . '</span></td><td>' ;
2019-10-11 14:42:55 +02:00
$keyforconstant = 'MAIN_PROFID' . $i . '_IN_ADDRESS' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( $keyforconstant );
} else {
2023-12-23 20:00:57 +01:00
print $form -> selectyesno ( $keyforconstant , getDolGlobalString ( $keyforconstant , 0 ), 1 , $noCountryCode );
2021-05-03 22:28:40 +02:00
}
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
}
}
2017-09-08 10:09:22 +02:00
2024-05-09 14:55:50 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " ShowLegalFormInAddress " ) . ' - <span class="opacitymedium">' . $langs -> trans ( " ThirdPartyAddress " ) . '</span></td><td>' ;
$keyforconstant = 'MAIN_LEGALFORM_IN_ADDRESS' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( $keyforconstant );
} else {
print $form -> selectyesno ( $keyforconstant , getDolGlobalString ( $keyforconstant , 0 ), 1 , $noCountryCode );
}
print '</td></tr>' ;
2021-08-17 18:33:10 +02:00
// Borders on address frame
2021-08-10 09:41:40 +02:00
2021-08-17 18:33:10 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_NO_SENDER_FRAME " ) . '</td><td>' ;
2021-08-10 09:41:40 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_PDF_NO_SENDER_FRAME' );
} else {
$arrval = array ( '0' => $langs -> trans ( " No " ), '1' => $langs -> trans ( " Yes " ));
2024-05-09 14:55:50 +02:00
print $form -> selectarray ( " MAIN_PDF_NO_SENDER_FRAME " , $arrval , getDolGlobalString ( 'MAIN_PDF_NO_SENDER_FRAME' ));
2021-08-10 09:41:40 +02:00
}
print '</td></tr>' ;
2021-08-17 18:33:10 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_NO_RECIPENT_FRAME " ) . '</td><td>' ;
2021-08-10 09:41:40 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_PDF_NO_RECIPENT_FRAME' );
} else {
$arrval = array ( '0' => $langs -> trans ( " No " ), '1' => $langs -> trans ( " Yes " ));
2024-05-09 14:55:50 +02:00
print $form -> selectarray ( " MAIN_PDF_NO_RECIPENT_FRAME " , $arrval , getDolGlobalString ( 'MAIN_PDF_NO_RECIPENT_FRAME' ));
2021-08-10 09:41:40 +02:00
}
2022-11-12 12:04:04 +01:00
print '</td></tr>' ;
2021-08-10 09:41:40 +02:00
2021-08-17 18:18:08 +02:00
//Invert sender and recipient
print '<tr class="oddeven"><td>' . $langs -> trans ( " SwapSenderAndRecipientOnPDF " ) . '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_INVERT_SENDER_RECIPIENT' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_INVERT_SENDER_RECIPIENT' , getDolGlobalInt ( 'MAIN_INVERT_SENDER_RECIPIENT' ), 1 );
2021-08-17 18:18:08 +02:00
}
print '</td></tr>' ;
2024-01-11 09:59:52 +01:00
// Place customer address to the ISO location
2021-08-17 18:18:08 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " PlaceCustomerAddressToIsoLocation " ) . '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_PDF_USE_ISO_LOCATION' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_PDF_USE_ISO_LOCATION' , getDolGlobalInt ( 'MAIN_PDF_USE_ISO_LOCATION' ), 1 );
2021-08-17 18:18:08 +02:00
}
print '</td></tr>' ;
2022-10-27 22:45:32 +02:00
// Show alias in thirdparty name
print '<tr class="oddeven"><td>' . $langs -> trans ( " PDF_INCLUDE_ALIAS_IN_THIRDPARTY_NAME " ) . '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
$arrval = array ( '0' => $langs -> trans ( " No " ), '1' => $langs -> trans ( " THIRDPARTY_ALIAS " ), '2' => $langs -> trans ( " ALIAS_THIRDPARTY " ));
print $form -> selectarray ( " PDF_INCLUDE_ALIAS_IN_THIRDPARTY_NAME " , $arrval , getDolGlobalInt ( 'PDF_INCLUDE_ALIAS_IN_THIRDPARTY_NAME' ));
}
2019-10-11 14:42:55 +02:00
print '</table>' ;
print '</div>' ;
2017-09-08 10:09:22 +02:00
2011-08-31 12:59:54 +02:00
2019-10-11 14:42:55 +02:00
print '<br>' ;
2011-08-11 01:48:09 +02:00
2019-10-11 14:42:55 +02:00
// Localtaxes
2019-11-13 19:35:02 +01:00
$locales = '' ;
$text = '' ;
2021-02-26 22:04:03 +01:00
if ( $mysoc -> useLocalTax ( 1 ) || $mysoc -> useLocalTax ( 2 )) {
if ( $mysoc -> useLocalTax ( 1 )) {
2019-10-11 14:42:55 +02:00
$locales = $langs -> transcountry ( " LT1 " , $mysoc -> country_code );
2021-05-04 00:17:47 +02:00
$text = '<tr class="oddeven"><td class="titlefieldmiddle">' . $langs -> trans ( " HideLocalTaxOnPDF " , $langs -> transcountry ( " LT1 " , $mysoc -> country_code )) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
$text .= ajax_constantonoff ( 'MAIN_PDF_MAIN_HIDE_SECOND_TAX' );
} else {
2024-05-09 14:55:50 +02:00
$text .= $form -> selectyesno ( 'MAIN_PDF_MAIN_HIDE_SECOND_TAX' , getDolGlobalInt ( 'MAIN_PDF_MAIN_HIDE_SECOND_TAX' ), 1 );
2021-05-03 22:28:40 +02:00
}
2019-10-11 14:42:55 +02:00
$text .= '</td></tr>' ;
2019-05-20 15:38:33 +02:00
}
2011-08-11 01:48:09 +02:00
2021-02-26 22:04:03 +01:00
if ( $mysoc -> useLocalTax ( 2 )) {
2019-11-13 19:35:02 +01:00
$locales .= ( $locales ? ' & ' : '' ) . $langs -> transcountry ( " LT2 " , $mysoc -> country_code );
2011-08-11 01:48:09 +02:00
2021-05-04 00:17:47 +02:00
$text .= '<tr class="oddeven"><td class="titlefieldmiddle">' . $langs -> trans ( " HideLocalTaxOnPDF " , $langs -> transcountry ( " LT2 " , $mysoc -> country_code )) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
$text .= ajax_constantonoff ( 'MAIN_PDF_MAIN_HIDE_THIRD_TAX' );
} else {
2024-05-09 14:55:50 +02:00
$text .= $form -> selectyesno ( 'MAIN_PDF_MAIN_HIDE_THIRD_TAX' , getDolGlobalInt ( 'MAIN_PDF_MAIN_HIDE_THIRD_TAX' ), 1 );
2021-05-03 22:28:40 +02:00
}
2019-11-13 19:35:02 +01:00
$text .= '</td></tr>' ;
2019-10-11 14:42:55 +02:00
}
}
2011-08-31 12:59:54 +02:00
2019-10-11 14:42:55 +02:00
$title = $langs -> trans ( " PDFRulesForSalesTax " );
2021-02-26 22:04:03 +01:00
if ( $mysoc -> useLocalTax ( 1 ) || $mysoc -> useLocalTax ( 2 )) {
2019-11-13 19:35:02 +01:00
$title .= ' - ' . $langs -> trans ( " PDFLocaltax " , $locales );
2019-10-11 14:42:55 +02:00
}
2017-08-30 14:36:00 +02:00
2021-05-04 00:17:47 +02:00
2019-10-11 14:42:55 +02:00
print load_fiche_titre ( $title , '' , '' );
2017-08-30 14:36:00 +02:00
2019-11-05 21:24:41 +01:00
print '<table summary="more" class="noborder centpercent">' ;
2022-11-12 23:16:06 +01:00
print '<tr class="liste_titre"><td>' . $langs -> trans ( " Parameter " ) . '</td><td></td></tr>' ;
2017-09-08 10:09:22 +02:00
2019-10-11 14:42:55 +02:00
// Hide any information on Sale tax / VAT
2018-04-30 09:28:24 +02:00
2019-10-11 14:42:55 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " HideAnyVATInformationOnPDF " ) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT' , getDolGlobalInt ( 'MAIN_GENERATE_DOCUMENTS_WITHOUT_VAT' ), 1 );
2021-05-03 22:28:40 +02:00
}
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
2018-04-30 09:28:24 +02:00
2019-10-11 14:42:55 +02:00
// Locataxes
print $text ;
2018-04-30 09:28:24 +02:00
2019-10-11 14:42:55 +02:00
print '</table>' ;
print '<br>' ;
2018-04-30 09:28:24 +02:00
2019-10-11 14:42:55 +02:00
// Other
2022-11-12 23:16:06 +01:00
2019-10-11 14:42:55 +02:00
print load_fiche_titre ( $langs -> trans ( " Other " ), '' , '' );
2017-08-30 14:36:00 +02:00
2019-10-11 14:42:55 +02:00
print '<div class="div-table-responsive-no-min">' ;
2019-11-05 21:24:41 +01:00
print '<table summary="more" class="noborder centpercent">' ;
2025-01-24 13:12:48 +01:00
print '<tr class="liste_titre"><td>' . $langs -> trans ( " Parameter " ) . '</td><td></td></tr>' ;
2017-08-30 14:36:00 +02:00
2021-08-17 18:18:08 +02:00
// Use 2 languages into PDF
2022-11-12 23:16:06 +01:00
print '<tr class="oddeven"><td>' ;
print $form -> textwithpicto ( $langs -> trans ( " PDFIn2Languages " ), $langs -> trans ( " PDF_USE_ALSO_LANGUAGE_CODE " ));
print '</td><td>' ;
2024-05-09 14:55:50 +02:00
$selected = GETPOSTISSET ( 'PDF_USE_ALSO_LANGUAGE_CODE' ) ? GETPOST ( 'PDF_USE_ALSO_LANGUAGE_CODE' ) : getDolGlobalString ( 'PDF_USE_ALSO_LANGUAGE_CODE' );
2024-09-18 03:27:25 +02:00
print $formadmin -> select_language ( $selected , 'PDF_USE_ALSO_LANGUAGE_CODE' , 0 , array (), 1 );
2021-08-17 18:18:08 +02:00
print '</td></tr>' ;
2021-08-11 16:24:11 +02:00
// Height of logo
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_DOCUMENTS_LOGO_HEIGHT " ) . '</td><td>' ;
2024-05-09 14:55:50 +02:00
print '<input type="text" class="maxwidth50" name="MAIN_DOCUMENTS_LOGO_HEIGHT" value="' . getDolGlobalInt ( 'MAIN_DOCUMENTS_LOGO_HEIGHT' , 20 ) . '">' ;
2021-08-11 16:24:11 +02:00
print '</td></tr>' ;
2017-09-08 10:09:22 +02:00
2024-10-04 09:13:44 +02:00
// Frame corner radius
print '<tr class="oddeven"><td>' ;
print $form -> textwithpicto ( $langs -> trans ( " PDFBoxFrameRoundedCorners " ), $langs -> trans ( " MAIN_PDF_FRAME_CORNER_RADIUS " ));
print '</td><td>' ;
$arrval = array ( '0' , '1' , '2' , '3' );
print $form -> selectarray ( " MAIN_PDF_FRAME_CORNER_RADIUS " , $arrval , getDolGlobalInt ( 'MAIN_PDF_FRAME_CORNER_RADIUS' , 0 ));
print '</td></tr>' ;
2021-08-11 16:24:11 +02:00
// Show project
2022-08-27 19:43:19 +02:00
if ( isModEnabled ( 'project' )) {
2021-04-01 13:04:24 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " PDF_SHOW_PROJECT " ) . '</td><td>' ;
$tmparray = array ( 'no' => 'No' , 'showprojectref' => 'RefProject' , 'showprojectlabel' => 'ShowProjectLabel' );
2023-10-24 17:00:13 +02:00
$showprojectref = ! getDolGlobalString ( 'PDF_SHOW_PROJECT' ) ? ( ! getDolGlobalString ( 'PDF_SHOW_PROJECT_TITLE' ) ? 'no' : 'showprojectlabel' ) : 'showprojectref' ;
2021-04-01 13:04:24 +02:00
print $form -> selectarray ( 'PDF_SHOW_PROJECT_REF_OR_LABEL' , $tmparray , $showprojectref , 0 , 0 , 0 , '' , 1 );
print '</td></tr>' ;
}
2017-09-08 10:09:22 +02:00
2024-10-04 09:13:44 +02:00
// Hide customer code
2021-08-11 16:18:16 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_HIDE_CUSTOMER_CODE " );
2021-08-10 09:38:07 +02:00
print '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
2021-08-17 16:55:56 +02:00
print ajax_constantonoff ( 'MAIN_PDF_HIDE_CUSTOMER_CODE' );
2021-05-03 22:28:40 +02:00
} else {
2021-08-10 09:38:07 +02:00
$arrval = array ( '0' => $langs -> trans ( " No " ), '1' => $langs -> trans ( " Yes " ));
2024-05-09 14:55:50 +02:00
print $form -> selectarray ( " MAIN_PDF_HIDE_CUSTOMER_CODE " , $arrval , getDolGlobalString ( 'MAIN_PDF_HIDE_CUSTOMER_CODE' ));
2021-05-03 22:28:40 +02:00
}
2019-10-11 14:42:55 +02:00
print '</td></tr>' ;
2017-09-08 10:09:22 +02:00
2024-10-25 13:43:35 +02:00
// Hide accounting customer code
print '<tr class="oddeven"><td>' . $langs -> trans ( " MAIN_PDF_HIDE_CUSTOMER_ACCOUNTING_CODE " );
print '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_PDF_HIDE_CUSTOMER_ACCOUNTING_CODE' );
} else {
$arrval = array ( '0' => $langs -> trans ( " No " ), '1' => $langs -> trans ( " Yes " ));
print $form -> selectarray ( " MAIN_PDF_HIDE_CUSTOMER_ACCOUNTING_CODE " , $arrval , getDolGlobalString ( 'MAIN_PDF_HIDE_CUSTOMER_ACCOUNTING_CODE' ));
}
print '</td></tr>' ;
2021-04-01 13:02:44 +02:00
2024-10-25 13:43:35 +02:00
// Hide Ref
2021-07-04 19:23:04 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " HideRefOnPDF " ) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
2021-07-04 19:23:04 +02:00
print ajax_constantonoff ( 'MAIN_GENERATE_DOCUMENTS_HIDE_REF' );
2021-05-03 22:28:40 +02:00
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_GENERATE_DOCUMENTS_HIDE_REF' , getDolGlobalInt ( 'MAIN_GENERATE_DOCUMENTS_HIDE_REF' ), 1 );
2021-05-03 22:28:40 +02:00
}
2021-04-01 13:02:44 +02:00
print '</td></tr>' ;
2023-10-30 03:13:12 +01:00
// Barcode
if ( isModEnabled ( 'barcode' )) {
print '<tr class="oddeven"><td>' . $langs -> trans ( " ShowProductBarcodeOnPDF " ) . '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'MAIN_GENERATE_DOCUMENTS_SHOW_PRODUCT_BARCODE' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_GENERATE_DOCUMENTS_SHOW_PRODUCT_BARCODE' , getDolGlobalInt ( 'MAIN_GENERATE_DOCUMENTS_SHOW_PRODUCT_BARCODE' ), 1 );
2023-10-30 03:13:12 +01:00
}
print '</td></tr>' ;
}
2022-02-04 12:17:38 +01:00
// Desc
print '<tr class="oddeven"><td>' . $langs -> trans ( " HideDescOnPDF " ) . '</td><td>' ;
2021-11-28 14:40:15 +01:00
if ( $conf -> use_javascript_ajax ) {
2022-02-04 12:17:38 +01:00
print ajax_constantonoff ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DESC' );
2021-11-28 14:40:15 +01:00
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DESC' , getDolGlobalInt ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DESC' ), 1 );
2021-11-28 14:40:15 +01:00
}
print '</td></tr>' ;
2022-02-04 12:17:38 +01:00
// Details
print '<tr class="oddeven"><td>' . $langs -> trans ( " HideDetailsOnPDF " ) . '</td><td>' ;
2021-11-28 14:40:15 +01:00
if ( $conf -> use_javascript_ajax ) {
2022-02-04 12:17:38 +01:00
print ajax_constantonoff ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS' );
2021-11-28 14:40:15 +01:00
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS' , getDolGlobalInt ( 'MAIN_GENERATE_DOCUMENTS_HIDE_DETAILS' ), 1 );
2021-11-28 14:40:15 +01:00
}
print '</td></tr>' ;
2024-01-11 09:59:52 +01:00
// Switch in Bold
2021-04-01 13:02:44 +02:00
2022-02-04 12:17:38 +01:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " BoldLabelOnPDF " ) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
2022-02-04 12:17:38 +01:00
print ajax_constantonoff ( 'PDF_BOLD_PRODUCT_LABEL' );
2021-05-03 22:28:40 +02:00
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'PDF_BOLD_PRODUCT_LABEL' , getDolGlobalInt ( 'PDF_BOLD_PRODUCT_LABEL' ), 1 );
2021-05-03 22:28:40 +02:00
}
2021-04-01 13:02:44 +02:00
print '</td></tr>' ;
2024-01-11 09:59:52 +01:00
// Switch in Bold
2021-04-01 13:02:44 +02:00
2022-02-04 12:17:38 +01:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " BoldRefAndPeriodOnPDF " ) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
2022-02-04 12:17:38 +01:00
print ajax_constantonoff ( 'PDF_BOLD_PRODUCT_REF_AND_PERIOD' );
2021-05-03 22:28:40 +02:00
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'PDF_BOLD_PRODUCT_REF_AND_PERIOD' , getDolGlobalInt ( 'PDF_BOLD_PRODUCT_REF_AND_PERIOD' ), 1 );
2021-05-03 22:28:40 +02:00
}
2021-04-01 13:02:44 +02:00
print '</td></tr>' ;
2020-12-09 17:35:02 +01:00
// SHOW_SUBPRODUCT_REF_IN_PDF - Option to show the detail of product ref for kits.
2021-04-01 13:02:44 +02:00
2020-12-09 17:35:02 +01:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " SHOW_SUBPRODUCT_REF_IN_PDF " , $langs -> transnoentitiesnoconv ( " AssociatedProductsAbility " ), $langs -> transnoentitiesnoconv ( " Products " )) . '</td><td>' ;
2021-05-03 22:28:40 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'SHOW_SUBPRODUCT_REF_IN_PDF' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'SHOW_SUBPRODUCT_REF_IN_PDF' , getDolGlobalInt ( 'SHOW_SUBPRODUCT_REF_IN_PDF' ), 1 );
2021-05-03 22:28:40 +02:00
}
2020-12-09 17:35:02 +01:00
print '</td></tr>' ;
2020-02-11 16:01:32 +01:00
2021-04-01 13:02:44 +02:00
// Show more details in footer
print '<tr class="oddeven"><td>' . $langs -> trans ( " ShowDetailsInPDFPageFoot " ) . '</td><td>' ;
2024-05-09 14:55:50 +02:00
print $form -> selectarray ( 'MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS' , $arraydetailsforpdffoot , getDolGlobalString ( 'MAIN_GENERATE_DOCUMENTS_SHOW_FOOT_DETAILS' , '0' ));
2021-04-01 13:02:44 +02:00
print '</td></tr>' ;
2022-08-23 01:58:07 +02:00
// Show the first sales representative
2021-05-06 23:04:27 +02:00
2021-08-11 12:10:17 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " DOC_SHOW_FIRST_SALES_REP " );
print ' <span class="opacitymedium">(' . $langs -> trans ( " SalesRepresentativeInfo " ) . ')</span>' ;
print '</td><td>' ;
2021-05-06 23:04:27 +02:00
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'DOC_SHOW_FIRST_SALES_REP' );
} else {
$arrval = array ( '0' => $langs -> trans ( " No " ), '1' => $langs -> trans ( " Yes " ));
2024-05-09 14:55:50 +02:00
print $form -> selectarray ( " DOC_SHOW_FIRST_SALES_REP " , $arrval , getDolGlobalString ( 'DOC_SHOW_FIRST_SALES_REP' ));
2022-08-23 01:58:07 +02:00
}
2021-08-31 12:29:14 +02:00
// Show online payment link on invoices
print '<tr class="oddeven"><td>' . $langs -> trans ( " PDF_SHOW_LINK_TO_ONLINE_PAYMENT " ) . '</td><td>' ;
if ( $conf -> use_javascript_ajax ) {
print ajax_constantonoff ( 'PDF_SHOW_LINK_TO_ONLINE_PAYMENT' );
} else {
2024-05-09 14:55:50 +02:00
print $form -> selectyesno ( 'PDF_SHOW_LINK_TO_ONLINE_PAYMENT' , getDolGlobalInt ( 'PDF_SHOW_LINK_TO_ONLINE_PAYMENT' ), 1 );
2021-08-31 12:29:14 +02:00
}
print '</td></tr>' ;
2021-10-16 19:03:20 +02:00
print '<tr class="oddeven"><td>' . $langs -> trans ( " PDF_USE_A " ) . '</td><td>' ;
2024-09-25 23:52:19 +02:00
2024-09-25 12:48:23 +02:00
//$pdfa = false; // PDF default version
2024-09-26 04:37:44 +02:00
$pdfa = getDolGlobalInt ( 'PDF_USE_A' , 0 ); // PDF/A-1 ou PDF/A-3
2024-09-25 23:52:19 +02:00
2024-09-25 12:48:23 +02:00
print $form -> selectarray ( 'PDF_USE_A' , $arraylistofpdfformat , $pdfa );
2021-10-15 11:59:12 +02:00
print '</td></tr>' ;
2019-10-11 14:42:55 +02:00
print '</table>' ;
print '</div>' ;
2017-09-08 10:09:22 +02:00
2021-08-20 14:41:30 +02:00
print $form -> buttonsSaveCancel ( " Save " , '' );
2012-12-19 13:06:45 +01:00
2019-10-11 14:42:55 +02:00
print '</form>' ;
2012-12-19 13:06:45 +01:00
2011-08-11 01:48:09 +02:00
2018-07-28 18:03:14 +02:00
// End of page
2011-08-27 16:24:16 +02:00
llxFooter ();
2012-12-19 13:06:45 +01:00
$db -> close ();