@@ -176,7 +176,7 @@ |
||
176 | 176 | // $this->menu->liste is top menu |
177 | 177 | //var_dump($this->menu->liste);exit; |
178 | 178 | $lastlevel = array(); |
179 | - $showmenu = true; // Is current menu shown - define here to keep static code checker happy |
|
179 | + $showmenu = true; // Is current menu shown - define here to keep static code checker happy |
|
180 | 180 | print '<!-- Generate menu list from menu handler ' . $this->name . ' -->' . "\n"; |
181 | 181 | foreach ($this->menu->liste as $key => $val) { // $val['url','titre','level','enabled'=0|1|2,'target','mainmenu','leftmenu' |
182 | 182 | print '<ul class="ulmenu" data-inset="true">'; |
@@ -176,7 +176,7 @@ |
||
176 | 176 | // $this->menu->liste is top menu |
177 | 177 | //var_dump($this->menu->liste);exit; |
178 | 178 | $lastlevel = array(); |
179 | - $showmenu = true; // Is current menu shown - define here to keep static code checker happy |
|
179 | + $showmenu = true; // Is current menu shown - define here to keep static code checker happy |
|
180 | 180 | print '<!-- Generate menu list from menu handler ' . $this->name . ' -->' . "\n"; |
181 | 181 | foreach ($this->menu->liste as $key => $val) { // $val['url','titre','level','enabled'=0|1|2,'target','mainmenu','leftmenu' |
182 | 182 | print '<ul class="ulmenu" data-inset="true">'; |
@@ -57,7 +57,7 @@ |
||
57 | 57 | $mode_search = 2; // Search on a foreign key int |
58 | 58 | } |
59 | 59 | if (in_array($typ, array('sellist')) && !is_numeric($crit)) { |
60 | - $mode_search = 0;// Search on a foreign key string |
|
60 | + $mode_search = 0; // Search on a foreign key string |
|
61 | 61 | } |
62 | 62 | if (in_array($typ, array('chkbxlst', 'checkbox', 'select'))) { |
63 | 63 | $mode_search = 4; // Search on a multiselect field with sql type = text |
@@ -198,7 +198,7 @@ |
||
198 | 198 | // we need to fetch product associated to line for some test |
199 | 199 | if ($object->element == 'propal' || $object->element == 'order' || $object->element == 'facture' || $object->element == 'propal_supplier' || $object->element == 'supplier_proposal' || $object->element == 'commande') { |
200 | 200 | $res = $line->fetch_product(); |
201 | - if ($res > 0) { |
|
201 | + if ($res > 0) { |
|
202 | 202 | if ($line->product->isService() && $line->product->isMandatoryPeriod()) { |
203 | 203 | print '<div><span class="clearboth nowraponall warning">' . $langs->trans("mandatoryPeriodNeedTobeSet") . '</span></div>'; |
204 | 204 | } |
@@ -189,7 +189,7 @@ discard block |
||
189 | 189 | $result = $objecttmp->fetch($toselectid); |
190 | 190 | if ($result > 0) { |
191 | 191 | $listofselectedid[$toselectid] = $toselectid; |
192 | - $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ... |
|
192 | + $thirdpartyid = ($objecttmp->fk_soc ? $objecttmp->fk_soc : $objecttmp->socid); // For proposal, order, invoice, conferenceorbooth, ... |
|
193 | 193 | if (in_array($objecttmp->element, array('societe', 'conferenceorboothattendee'))) { |
194 | 194 | $thirdpartyid = $objecttmp->id; |
195 | 195 | } elseif ($objecttmp->element == 'contact') { |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | $formmail->withfile = 0; |
271 | 271 | $formmail->withmaindocfile = 0; // Add a checkbox "Attach also main document" |
272 | 272 | } else { |
273 | - $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action |
|
273 | + $formmail->withfile = 1; // $formmail->withfile = 2 to allow to upload files is not yet supported in mass action |
|
274 | 274 | // Add a checkbox "Attach also main document" |
275 | 275 | if (isset($withmaindocfilemail)) { |
276 | 276 | $formmail->withmaindocfile = $withmaindocfilemail; |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | |
308 | 308 | // Tableau des parameters complementaires du post |
309 | 309 | $formmail->param['action'] = $action; |
310 | - $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested. |
|
310 | + $formmail->param['models'] = $modelmail; // the filter to know which kind of template emails to show. 'none' means no template suggested. |
|
311 | 311 | $formmail->param['models_id'] = GETPOSTINT('modelmailselected') ? GETPOSTINT('modelmailselected') : '-1'; |
312 | 312 | $formmail->param['id'] = implode(',', $arrayofselected); |
313 | 313 | // $formmail->param['returnurl']=$_SERVER["PHP_SELF"].'?id='.$object->id; |
@@ -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'); |
@@ -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">'; |