@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | $title = $langs->trans("Search"); |
104 | 104 | |
105 | 105 | // URL http://mydolibarr/core/search_page?dol_use_jmobile=1 can be used for tests |
106 | -$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page |
|
106 | +$head = '<!-- Quick access -->' . "\n"; // This is used by DoliDroid to know page is a search page |
|
107 | 107 | $arrayofjs = array(); |
108 | 108 | $arrayofcss = array(); |
109 | 109 | top_htmlhead($head, $title, 0, 0, $arrayofjs, $arrayofcss); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | |
144 | 144 | $accesskey = ''; |
145 | 145 | if (empty($accesskeyalreadyassigned[$val['label'][0]])) { |
146 | - $accesskey = $val['label'][0]; // First char of string |
|
146 | + $accesskey = $val['label'][0]; // First char of string |
|
147 | 147 | $accesskeyalreadyassigned[$accesskey] = $accesskey; |
148 | 148 | } |
149 | 149 |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | $search_date_endday = GETPOSTINT('search_date_endday'); |
81 | 81 | $search_date_endmonth = GETPOSTINT('search_date_endmonth'); |
82 | 82 | $search_date_endyear = GETPOSTINT('search_date_endyear'); |
83 | -$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
83 | +$search_date_start = dol_mktime(0, 0, 0, $search_date_startmonth, $search_date_startday, $search_date_startyear); // Use tzserver |
|
84 | 84 | $search_date_end = dol_mktime(23, 59, 59, $search_date_endmonth, $search_date_endday, $search_date_endyear); |
85 | 85 | $search_date_valid_startday = GETPOSTINT('search_date_valid_startday'); |
86 | 86 | $search_date_valid_startmonth = GETPOSTINT('search_date_valid_startmonth'); |
@@ -88,7 +88,7 @@ discard block |
||
88 | 88 | $search_date_valid_endday = GETPOSTINT('search_date_valid_endday'); |
89 | 89 | $search_date_valid_endmonth = GETPOSTINT('search_date_valid_endmonth'); |
90 | 90 | $search_date_valid_endyear = GETPOSTINT('search_date_valid_endyear'); |
91 | -$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear); // Use tzserver |
|
91 | +$search_date_valid_start = dol_mktime(0, 0, 0, $search_date_valid_startmonth, $search_date_valid_startday, $search_date_valid_startyear); // Use tzserver |
|
92 | 92 | $search_date_valid_end = dol_mktime(23, 59, 59, $search_date_valid_endmonth, $search_date_valid_endday, $search_date_valid_endyear); |
93 | 93 | $search_type_thirdparty = GETPOST("search_type_thirdparty", 'intcomma'); |
94 | 94 | $search_montant_ht = GETPOST('search_montant_ht', 'alpha'); |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | |
199 | 199 | $object->fields = dol_sort_array($object->fields, 'position'); |
200 | 200 | $arrayfields = dol_sort_array($arrayfields, 'position'); |
201 | -'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
201 | +'@phan-var-force array<string,array{label:string,checked?:int<0,1>,position?:int,help?:string}> $arrayfields'; // dol_sort_array looses type for Phan |
|
202 | 202 | |
203 | 203 | if (!$user->hasRight('societe', 'client', 'voir')) { |
204 | 204 | $search_sale = $user->id; |
@@ -68,7 +68,7 @@ |
||
68 | 68 | // Parameters |
69 | 69 | $action = GETPOST('action', 'aZ09'); |
70 | 70 | $backtopage = GETPOST('backtopage', 'alpha'); |
71 | -$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
71 | +$modulepart = GETPOST('modulepart', 'aZ09'); // Used by actions_setmoduleoptions.inc.php |
|
72 | 72 | |
73 | 73 | $value = GETPOST('value', 'alpha'); |
74 | 74 | $label = GETPOST('label', 'alpha'); |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | |
179 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
179 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
180 | 180 | /** |
181 | 181 | * Function to build pdf onto disk |
182 | 182 | * |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | */ |
191 | 191 | public function write_file($object, $outputlangs, $srctemplatepath = '', $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
192 | 192 | { |
193 | - // phpcs:enable |
|
193 | + // phpcs:enable |
|
194 | 194 | global $user, $langs, $conf, $mysoc, $db, $hookmanager, $nblines; |
195 | 195 | global $action; |
196 | 196 | |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | } |
644 | 644 | } |
645 | 645 | |
646 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
646 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
647 | 647 | /** |
648 | 648 | * Return list of active generation modules |
649 | 649 | * |
@@ -653,11 +653,11 @@ discard block |
||
653 | 653 | */ |
654 | 654 | public static function liste_modeles($db, $maxfilenamelength = 0) |
655 | 655 | { |
656 | - // phpcs:enable |
|
656 | + // phpcs:enable |
|
657 | 657 | return parent::liste_modeles($db, $maxfilenamelength); // TODO: Change the autogenerated stub |
658 | 658 | } |
659 | 659 | |
660 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
660 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
661 | 661 | /** |
662 | 662 | * Show table for lines |
663 | 663 | * |
@@ -709,7 +709,7 @@ discard block |
||
709 | 709 | } |
710 | 710 | } |
711 | 711 | |
712 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
712 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
713 | 713 | /** |
714 | 714 | * Show top header of page. |
715 | 715 | * |
@@ -951,7 +951,7 @@ discard block |
||
951 | 951 | return $top_shift; |
952 | 952 | } |
953 | 953 | |
954 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
954 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore |
|
955 | 955 | /** |
956 | 956 | * Show footer of page. Need this->emetteur object |
957 | 957 | * |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | return $texte; |
207 | 207 | } |
208 | 208 | |
209 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
209 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
210 | 210 | /** |
211 | 211 | * Function to build a document on disk using the generic odt module. |
212 | 212 | * |
@@ -220,7 +220,7 @@ discard block |
||
220 | 220 | */ |
221 | 221 | public function write_file($object, $outputlangs, $srctemplatepath, $hidedetails = 0, $hidedesc = 0, $hideref = 0) |
222 | 222 | { |
223 | - // phpcs:enable |
|
223 | + // phpcs:enable |
|
224 | 224 | global $user, $langs, $conf, $mysoc, $hookmanager; |
225 | 225 | global $action; |
226 | 226 |
@@ -188,7 +188,7 @@ |
||
188 | 188 | $maxfilesizearray = getMaxFileSizeArray(); |
189 | 189 | $maxmin = $maxfilesizearray['maxmin']; |
190 | 190 | if ($maxmin > 0) { |
191 | - $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
191 | + $texte .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
192 | 192 | } |
193 | 193 | $texte .= ' <input type="file" name="uploadfile">'; |
194 | 194 | $texte .= '<input type="hidden" value="RECRUITMENT_RECRUITMENTJOBPOSITION_ADDON_PDF_ODT_PATH" name="keyforuploaddir">'; |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | $object = new RecruitmentCandidature($db); |
68 | 68 | $extrafields = new ExtraFields($db); |
69 | 69 | $diroutputmassaction = $conf->recruitment->dir_output . '/temp/massgeneration/' . $user->id; |
70 | -$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes |
|
70 | +$hookmanager->initHooks(array($contextpage)); // Note that conf->hooks_modules contains array of activated contexes |
|
71 | 71 | |
72 | 72 | // Fetch optionals attributes and labels |
73 | 73 | $extrafields->fetch_name_optionals_label($object->table_element); |
@@ -698,7 +698,7 @@ discard block |
||
698 | 698 | } elseif (in_array($val['type'], array('double(24,8)', 'double(6,3)', 'integer', 'real', 'price')) && !in_array($key, array('id', 'rowid', 'ref', 'status')) && $val['label'] != 'TechnicalID' && empty($val['arrayofkeyval'])) { |
699 | 699 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
700 | 700 | } |
701 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
701 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
702 | 702 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
703 | 703 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : ''), 0, (empty($val['helplist']) ? '' : $val['helplist'])) . "\n"; |
704 | 704 | $totalarray['nbfield']++; |
@@ -256,7 +256,7 @@ discard block |
||
256 | 256 | print '<datalist id="pcg_type_datalist">'; |
257 | 257 | $sql = "SELECT DISTINCT pcg_type FROM " . MAIN_DB_PREFIX . "accounting_account"; |
258 | 258 | $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'"; |
259 | - $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
259 | + $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
260 | 260 | $sql .= ' LIMIT 50000'; // just as a sanity check |
261 | 261 | $resql = $db->query($sql); |
262 | 262 | if ($resql) { |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | print '<datalist id="pcg_type_datalist">'; |
334 | 334 | $sql = 'SELECT DISTINCT pcg_type FROM ' . MAIN_DB_PREFIX . 'accounting_account'; |
335 | 335 | $sql .= " WHERE fk_pcg_version = '" . $db->escape($accountsystem->ref) . "'"; |
336 | - $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
336 | + $sql .= ' AND entity in (' . getEntity('accounting_account', 0) . ')'; // Always limit to current entity. No sharing in accountancy. |
|
337 | 337 | $sql .= ' LIMIT 50000'; // just as a sanity check |
338 | 338 | $resql = $db->query($sql); |
339 | 339 | if ($resql) { |
@@ -461,7 +461,7 @@ |
||
461 | 461 | print '<br>'; |
462 | 462 | |
463 | 463 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
464 | - $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
464 | + $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
465 | 465 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
466 | 466 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
467 | 467 |
@@ -335,7 +335,7 @@ |
||
335 | 335 | print '<div class="info">' . $langs->trans("WarningCreateSubAccounts") . '</div>'; |
336 | 336 | |
337 | 337 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
338 | - $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
338 | + $htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
339 | 339 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
340 | 340 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
341 | 341 |