@@ -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']++; |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | $limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit; |
50 | 50 | $sortfield = GETPOST('sortfield', 'aZ09comma'); |
51 | 51 | $sortorder = GETPOST('sortorder', 'aZ09comma'); |
52 | -$toselect = GETPOST('toselect', 'array'); // Array of ids of elements selected into a list |
|
52 | +$toselect = GETPOST('toselect', 'array'); // Array of ids of elements selected into a list |
|
53 | 53 | $confirm = GETPOST('confirm', 'alpha'); |
54 | 54 | |
55 | 55 | $page = GETPOSTISSET('pageplusone') ? (GETPOSTINT('pageplusone') - 1) : GETPOSTINT("page"); |
@@ -267,12 +267,12 @@ discard block |
||
267 | 267 | foreach ($typeleaves as $key => $val) { |
268 | 268 | $labeltypes[$val['id']] = ($langs->trans($val['code']) != $val['code']) ? $langs->trans($val['code']) : $langs->trans($val['label']); |
269 | 269 | } |
270 | - $formquestion [] = array( 'type' => 'other', |
|
270 | + $formquestion [] = array('type' => 'other', |
|
271 | 271 | 'name' => 'typeofholiday', |
272 | 272 | 'label' => $langs->trans("Type"), |
273 | 273 | 'value' => $form->selectarray('typeholiday', $labeltypes, GETPOST('typeholiday', 'alpha'), 1) |
274 | 274 | ); |
275 | - $formquestion [] = array( 'type' => 'other', |
|
275 | + $formquestion [] = array('type' => 'other', |
|
276 | 276 | 'name' => 'nbdaysholydays', |
277 | 277 | 'label' => $langs->trans("NumberDayAddMass"), |
278 | 278 | 'value' => '<input name="nbdaysholidays" class="maxwidth75" id="nbdaysholidays" value="' . GETPOSTINT('nbdaysholidays') . '">' |
@@ -505,7 +505,7 @@ discard block |
||
505 | 505 | |
506 | 506 | // option to warn the validator in case of too short delay |
507 | 507 | if (!getDolGlobalString('HOLIDAY_HIDE_APPROVER_ABOUT_TOO_LOW_DELAY')) { |
508 | - $delayForRequest = 0; // TODO Set delay depending of holiday leave type |
|
508 | + $delayForRequest = 0; // TODO Set delay depending of holiday leave type |
|
509 | 509 | if ($delayForRequest) { |
510 | 510 | $nowplusdelay = dol_time_plus_duree($now, $delayForRequest, 'd'); |
511 | 511 | |
@@ -1213,7 +1213,7 @@ discard block |
||
1213 | 1213 | $result = $object->fetch($id, $ref); |
1214 | 1214 | |
1215 | 1215 | $approverexpected = new User($db); |
1216 | - $approverexpected->fetch($object->fk_validator); // Use that should be the approver |
|
1216 | + $approverexpected->fetch($object->fk_validator); // Use that should be the approver |
|
1217 | 1217 | |
1218 | 1218 | $userRequest = new User($db); |
1219 | 1219 | $userRequest->fetch($object->fk_user); |
@@ -1448,7 +1448,7 @@ discard block |
||
1448 | 1448 | print '</tr>'; |
1449 | 1449 | } else { |
1450 | 1450 | print '<tr>'; |
1451 | - print '<td class="titlefield">' . $langs->trans('ReviewedByCP') . '</td>'; // Will be approved by |
|
1451 | + print '<td class="titlefield">' . $langs->trans('ReviewedByCP') . '</td>'; // Will be approved by |
|
1452 | 1452 | print '<td>'; |
1453 | 1453 | $include_users = $object->fetch_users_approver_holiday(); |
1454 | 1454 | if (!in_array($object->fk_validator, $include_users)) { // Add the current validator to the list to not lose it when editing. |
@@ -165,8 +165,8 @@ discard block |
||
165 | 165 | } |
166 | 166 | |
167 | 167 | if (!$error) { |
168 | - $users = GETPOST('users', 'array'); |
|
169 | - $groups = GETPOST('groups', 'array'); |
|
168 | + $users = GETPOST('users', 'array'); |
|
169 | + $groups = GETPOST('groups', 'array'); |
|
170 | 170 | |
171 | 171 | $date_debut = dol_mktime(0, 0, 0, GETPOST('date_debut_month'), GETPOST('date_debut_day'), GETPOST('date_debut_year')); |
172 | 172 | $date_fin = dol_mktime(0, 0, 0, GETPOST('date_fin_month'), GETPOST('date_fin_day'), GETPOST('date_fin_year')); |
@@ -732,7 +732,7 @@ discard block |
||
732 | 732 | |
733 | 733 | // option to warn the validator in case of too short delay |
734 | 734 | if (!getDolGlobalString('HOLIDAY_HIDE_APPROVER_ABOUT_TOO_LOW_DELAY')) { |
735 | - $delayForRequest = 0; // TODO Set delay depending of holiday leave type |
|
735 | + $delayForRequest = 0; // TODO Set delay depending of holiday leave type |
|
736 | 736 | if ($delayForRequest) { |
737 | 737 | $nowplusdelay = dol_time_plus_duree($now, $delayForRequest, 'd'); |
738 | 738 |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | } |
587 | 587 | |
588 | 588 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
589 | -$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
589 | +$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
590 | 590 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
591 | 591 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
592 | 592 | |
@@ -877,7 +877,7 @@ discard block |
||
877 | 877 | $starthalfday = ($obj->halfday == -1 || $obj->halfday == 2) ? 'afternoon' : 'morning'; |
878 | 878 | $endhalfday = ($obj->halfday == 1 || $obj->halfday == 2) ? 'morning' : 'afternoon'; |
879 | 879 | |
880 | - $nbopenedday = num_open_day($db->jdate($obj->date_debut, 1), $db->jdate($obj->date_fin, 1), 0, 1, $obj->halfday); // user jdate(..., 1) because num_open_day need UTC dates |
|
880 | + $nbopenedday = num_open_day($db->jdate($obj->date_debut, 1), $db->jdate($obj->date_fin, 1), 0, 1, $obj->halfday); // user jdate(..., 1) because num_open_day need UTC dates |
|
881 | 881 | $totalduration += $nbopenedday; |
882 | 882 | |
883 | 883 | if ($mode == 'kanban') { |
@@ -451,7 +451,7 @@ |
||
451 | 451 | $this->date_fin_gmt = $this->db->jdate($obj->date_fin, 1); |
452 | 452 | $this->halfday = $obj->halfday; |
453 | 453 | $this->status = $obj->status; |
454 | - $this->statut = $obj->status; // deprecated |
|
454 | + $this->statut = $obj->status; // deprecated |
|
455 | 455 | $this->fk_validator = $obj->fk_validator; |
456 | 456 | $this->date_valid = $this->db->jdate($obj->date_valid); |
457 | 457 | $this->fk_user_valid = $obj->fk_user_valid; |
@@ -160,7 +160,7 @@ |
||
160 | 160 | $sql .= " AND cp.statut = " . Holiday::STATUS_APPROVED; |
161 | 161 | $sql .= " AND ("; |
162 | 162 | $sql .= " (date_format(cp.date_debut, '%Y-%m') = '" . $db->escape($year_month) . "' OR date_format(cp.date_fin, '%Y-%m') = '" . $db->escape($year_month) . "')"; |
163 | -$sql .= " OR"; // For leave over several months |
|
163 | +$sql .= " OR"; // For leave over several months |
|
164 | 164 | $sql .= " (date_format(cp.date_debut, '%Y-%m') < '" . $db->escape($year_month) . "' AND date_format(cp.date_fin, '%Y-%m') > '" . $db->escape($year_month) . "') "; |
165 | 165 | $sql .= " )"; |
166 | 166 | if (!empty($search_ref)) { |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | $action = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ... |
44 | 44 | $massaction = GETPOST('massaction', 'alpha'); // The bulk action (combo box choice into lists) |
45 | -$mode = GETPOST('mode', 'alpha'); |
|
45 | +$mode = GETPOST('mode', 'alpha'); |
|
46 | 46 | $show_files = GETPOSTINT('show_files'); // Show files area generated by bulk actions ? |
47 | 47 | $confirm = GETPOST('confirm', 'alpha'); // Result of a confirmation |
48 | 48 | $cancel = GETPOST('cancel', 'alpha'); // We click on a Cancel button |
@@ -315,7 +315,7 @@ discard block |
||
315 | 315 | $include = ''; |
316 | 316 | |
317 | 317 | $varpage = empty($contextpage) ? $_SERVER["PHP_SELF"] : $contextpage; |
318 | -$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
318 | +$htmlofselectarray = $form->multiSelectArrayWithCheckbox('selectedfields', $arrayfields, $varpage, getDolGlobalString('MAIN_CHECKBOX_LEFT_COLUMN')); // This also change content of $arrayfields with user setup |
|
319 | 319 | $selectedfields = ($mode != 'kanban' ? $htmlofselectarray : ''); |
320 | 320 | $selectedfields .= (count($arrayofmassactions) ? $form->showCheckAddButtons('checkforselect', 1) : ''); |
321 | 321 |