@@ -101,8 +101,8 @@ |
||
101 | 101 | |
102 | 102 | |
103 | 103 | // List of targets fields |
104 | -$headerlinefields = array(); // Array of fields (label to show) |
|
105 | -$contentlinevalues = array(); // Array of example values |
|
104 | +$headerlinefields = array(); // Array of fields (label to show) |
|
105 | +$contentlinevalues = array(); // Array of example values |
|
106 | 106 | $i = 0; |
107 | 107 | foreach ($fieldstarget as $code => $label) { |
108 | 108 | $withoutstar = preg_replace('/\*/', '', $fieldstarget[$code]); |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $endatlinenb = (GETPOST('endatlinenb') ? GETPOST('endatlinenb') : ''); |
144 | 144 | $updatekeys = (GETPOST('updatekeys', 'array') ? GETPOST('updatekeys', 'array') : array()); |
145 | 145 | $separator = (GETPOST('separator', 'alphanohtml') ? GETPOST('separator', 'alphanohtml', 3) : ''); |
146 | -$enclosure = (GETPOST('enclosure', 'nohtml') ? GETPOST('enclosure', 'nohtml') : '"'); // We must use 'nohtml' and not 'alphanohtml' because we must accept " |
|
146 | +$enclosure = (GETPOST('enclosure', 'nohtml') ? GETPOST('enclosure', 'nohtml') : '"'); // We must use 'nohtml' and not 'alphanohtml' because we must accept " |
|
147 | 147 | $charset = GETPOST('charset', 'aZ09'); |
148 | 148 | $separator_used = str_replace('\t', "\t", $separator); |
149 | 149 | |
@@ -643,7 +643,7 @@ discard block |
||
643 | 643 | $maxfilesizearray = getMaxFileSizeArray(); |
644 | 644 | $maxmin = $maxfilesizearray['maxmin']; |
645 | 645 | if ($maxmin > 0) { |
646 | - print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
646 | + print '<input type="hidden" name="MAX_FILE_SIZE" value="' . ($maxmin * 1024) . '">'; // MAX_FILE_SIZE must precede the field type=file |
|
647 | 647 | } |
648 | 648 | print '<input type="file" name="userfile" size="20" maxlength="80"> '; |
649 | 649 | $out = (!getDolGlobalString('MAIN_UPLOAD_DOC') ? ' disabled' : ''); |
@@ -762,7 +762,7 @@ discard block |
||
762 | 762 | //var_dump($_SESSION["dol_array_match_file_to_database_select"]); |
763 | 763 | $serialized_array_match_file_to_database = isset($_SESSION["dol_array_match_file_to_database_select"]) ? $_SESSION["dol_array_match_file_to_database_select"] : ''; |
764 | 764 | $fieldsarray = explode(',', $serialized_array_match_file_to_database); |
765 | - $array_match_file_to_database = array(); // Same than $fieldsarray but with mapped value only (col1 => 's.fielda', col2 => 's.fieldb'...) |
|
765 | + $array_match_file_to_database = array(); // Same than $fieldsarray but with mapped value only (col1 => 's.fielda', col2 => 's.fieldb'...) |
|
766 | 766 | foreach ($fieldsarray as $elem) { |
767 | 767 | $tabelem = explode('=', $elem, 2); |
768 | 768 | $key = $tabelem[0]; |
@@ -1116,7 +1116,7 @@ discard block |
||
1116 | 1116 | foreach ($fieldstarget as $code => $line) { |
1117 | 1117 | //var_dump($line); |
1118 | 1118 | |
1119 | - $tmparray = explode('|', $line["label"]); // If label of field is several translation keys separated with | |
|
1119 | + $tmparray = explode('|', $line["label"]); // If label of field is several translation keys separated with | |
|
1120 | 1120 | $labeltoshow = ''; |
1121 | 1121 | foreach ($tmparray as $tmpkey => $tmpval) { |
1122 | 1122 | $labeltoshow .= ($labeltoshow ? ' ' . $langs->trans('or') . ' ' : '') . $langs->transnoentities($tmpval); |
@@ -1146,7 +1146,7 @@ discard block |
||
1146 | 1146 | //var_dump($fieldssource); |
1147 | 1147 | //var_dump($fieldstarget); |
1148 | 1148 | |
1149 | - $modetoautofillmapping = 'session'; // Use setup in session |
|
1149 | + $modetoautofillmapping = 'session'; // Use setup in session |
|
1150 | 1150 | if ($initialloadofstep4) { |
1151 | 1151 | $modetoautofillmapping = 'guess'; |
1152 | 1152 | } |
@@ -1358,7 +1358,7 @@ discard block |
||
1358 | 1358 | // - Then we set to disabled all fields that are selected |
1359 | 1359 | print 'function setOptionsToDisabled() {' . "\n"; |
1360 | 1360 | print ' console.log("Remove the disabled flag everywhere");' . "\n"; |
1361 | - print ' $("select.targetselectchange").not($( this )).find(\'option\').prop("disabled", false);' . "\n"; // Enable all options |
|
1361 | + print ' $("select.targetselectchange").not($( this )).find(\'option\').prop("disabled", false);' . "\n"; // Enable all options |
|
1362 | 1362 | print ' arrayofselectedvalues = [];' . "\n"; |
1363 | 1363 | |
1364 | 1364 | print ' $("select.targetselectchange").each(function(){' . "\n"; |
@@ -1375,7 +1375,7 @@ discard block |
||
1375 | 1375 | print ' $.each(arrayofselectedvalues, function(key, value) {' . "\n"; // Loop on each selected value |
1376 | 1376 | print ' if (value != -1) {' . "\n"; |
1377 | 1377 | print ' console.log("Process key="+key+" value="+value+" to disable.");' . "\n"; |
1378 | - print ' $("select.targetselectchange").find(\'option[value="\'+value+\'"]:not(:selected)\').prop("disabled", true);' . "\n"; // Set to disabled except if currently selected |
|
1378 | + print ' $("select.targetselectchange").find(\'option[value="\'+value+\'"]:not(:selected)\').prop("disabled", true);' . "\n"; // Set to disabled except if currently selected |
|
1379 | 1379 | print ' }' . "\n"; |
1380 | 1380 | print ' });' . "\n"; |
1381 | 1381 | print '}' . "\n"; |
@@ -353,7 +353,7 @@ discard block |
||
353 | 353 | // Output page |
354 | 354 | // -------------------------------------------------------------------- |
355 | 355 | |
356 | -llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
356 | +llxHeader('', $title, $help_url, '', 0, 0, $morejs, $morecss, '', 'bodyforlist'); // Can use also classforhorizontalscrolloftabs instead of bodyforlist for no horizontal scroll |
|
357 | 357 | |
358 | 358 | $arrayofselected = is_array($toselect) ? $toselect : array(); |
359 | 359 | |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | $userstatic->login = $obj->login; |
643 | 643 | $userstatic->email = $obj->email; |
644 | 644 | $userstatic->socid = $obj->fk_soc; |
645 | - $userstatic->statut = $obj->status; // deprecated |
|
645 | + $userstatic->statut = $obj->status; // deprecated |
|
646 | 646 | $userstatic->status = $obj->status; |
647 | 647 | $userstatic->photo = $obj->photo; |
648 | 648 |
@@ -55,7 +55,7 @@ |
||
55 | 55 | dol_print_error($db, 'Failed to get payment id ' . $id); |
56 | 56 | } |
57 | 57 | } |
58 | -restrictedArea($user, 'salaries', $object->fk_salary, 'salary', ''); // $object is payment of salary |
|
58 | +restrictedArea($user, 'salaries', $object->fk_salary, 'salary', ''); // $object is payment of salary |
|
59 | 59 | |
60 | 60 | |
61 | 61 | /* |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | // Create a line of payments |
301 | 301 | $paiement = new PaymentSalary($db); |
302 | 302 | $paiement->fk_salary = $object->id; |
303 | - $paiement->chid = $object->id; // deprecated |
|
303 | + $paiement->chid = $object->id; // deprecated |
|
304 | 304 | $paiement->datep = $datep; |
305 | 305 | $paiement->datev = $datev; |
306 | 306 | $paiement->amounts = array($object->id => $amount); // Tableau de montant |
@@ -621,7 +621,7 @@ discard block |
||
621 | 621 | |
622 | 622 | // Auto create payment |
623 | 623 | print '<tr><td><label for="auto_create_paiement">' . $langs->trans('AutomaticCreationPayment') . '</label></td>'; |
624 | - print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_paiement) ? '' : 'checked="checked"') . ' value="1"></td></tr>' . "\n"; // Date payment |
|
624 | + print '<td><input id="auto_create_paiement" name="auto_create_paiement" type="checkbox" ' . (empty($auto_create_paiement) ? '' : 'checked="checked"') . ' value="1"></td></tr>' . "\n"; // Date payment |
|
625 | 625 | |
626 | 626 | // Bank |
627 | 627 | if (isModEnabled("bank")) { |
@@ -108,7 +108,7 @@ |
||
108 | 108 | // Create a line of payments |
109 | 109 | $paiement = new PaymentSalary($db); |
110 | 110 | $paiement->fk_salary = $id; |
111 | - $paiement->chid = $id; // deprecated |
|
111 | + $paiement->chid = $id; // deprecated |
|
112 | 112 | $paiement->datep = $datepaye; |
113 | 113 | $paiement->amounts = $amounts; // Tableau de montant |
114 | 114 | $paiement->fk_typepayment = GETPOSTINT("paiementtype"); |
@@ -152,7 +152,7 @@ |
||
152 | 152 | $sql .= " WHERE t.fk_pays = c.rowid AND c.code = '" . $db->escape($mysoc->country_code) . "'"; |
153 | 153 | $sql .= " AND t.taux = " . ((float) $tva_tx) . " AND t.active = 1"; |
154 | 154 | $sql .= " AND t.code = '" . $db->escape($vatratecode) . "'"; |
155 | - $sql .= " AND t.type_vat IN (0, 1)"; // Use only VAT rates type all or i.e. the sales type VAT rates. |
|
155 | + $sql .= " AND t.type_vat IN (0, 1)"; // Use only VAT rates type all or i.e. the sales type VAT rates. |
|
156 | 156 | $sql .= " AND t.entity IN (" . getEntity('c_tva') . ")"; |
157 | 157 | $resql = $db->query($sql); |
158 | 158 | if ($resql) { |
@@ -845,7 +845,7 @@ discard block |
||
845 | 845 | if (isModEnabled('category') && $user->hasRight($rightskey, 'creer')) { |
846 | 846 | $arrayofmassactions['preaffecttag'] = img_picto('', 'category', 'class="pictofixedwidth"') . $langs->trans("AffectTag"); |
847 | 847 | } |
848 | -if (in_array($massaction, array('presend', 'predelete','preaffecttag', 'edit_extrafields', 'preupdateprice'))) { |
|
848 | +if (in_array($massaction, array('presend', 'predelete', 'preaffecttag', 'edit_extrafields', 'preupdateprice'))) { |
|
849 | 849 | $arrayofmassactions = array(); |
850 | 850 | } |
851 | 851 | if ($user->hasRight($rightskey, 'supprimer')) { |
@@ -1928,10 +1928,10 @@ discard block |
||
1928 | 1928 | |
1929 | 1929 | // Multiprices |
1930 | 1930 | if (getDolGlobalString('PRODUIT_MULTIPRICES')) { |
1931 | - if (! isset($productpricescache)) { |
|
1931 | + if (!isset($productpricescache)) { |
|
1932 | 1932 | $productpricescache = array(); |
1933 | 1933 | } |
1934 | - if (! isset($productpricescache[$obj->rowid])) { |
|
1934 | + if (!isset($productpricescache[$obj->rowid])) { |
|
1935 | 1935 | $productpricescache[$obj->rowid] = array(); |
1936 | 1936 | } |
1937 | 1937 |
@@ -158,7 +158,7 @@ |
||
158 | 158 | )); |
159 | 159 | |
160 | 160 | // Retrieve all extrafields if not already not know (should not happen) |
161 | - if (! is_object($extrafields)) { |
|
161 | + if (!is_object($extrafields)) { |
|
162 | 162 | $extrafields = new ExtraFields($this->db); |
163 | 163 | $extrafields->fetch_name_optionals_label($product->table_element); |
164 | 164 | } |