@@ -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']++; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | |
38 | 38 | |
39 | 39 | // Load translation files required by the page |
40 | -$langs->loadLangs(array('hrm', 'other', 'products')); // why products? |
|
40 | +$langs->loadLangs(array('hrm', 'other', 'products')); // why products? |
|
41 | 41 | |
42 | 42 | // Get parameters |
43 | 43 | $id = GETPOSTINT('id'); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'skillcard'; // To manage different context of search |
49 | 49 | $backtopage = GETPOST('backtopage', 'alpha'); |
50 | 50 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
51 | -$lineid = GETPOSTINT('lineid'); |
|
51 | +$lineid = GETPOSTINT('lineid'); |
|
52 | 52 | |
53 | 53 | // Initialize technical objects |
54 | 54 | $object = new Skill($db); |
@@ -533,7 +533,7 @@ discard block |
||
533 | 533 | |
534 | 534 | // Default sort order (if not yet defined by previous GETPOST) |
535 | 535 | if (!$sortfield) { |
536 | - reset($objectline->fields); // Reset is required to avoid key() to return null. |
|
536 | + reset($objectline->fields); // Reset is required to avoid key() to return null. |
|
537 | 537 | $sortfield = "t." . key($objectline->fields); // Set here default search field. By default 1st field in definition. |
538 | 538 | } |
539 | 539 | if (!$sortorder) { |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | |
42 | 42 | |
43 | 43 | // Load translation files required by the page |
44 | -$langs->loadLangs(array('hrm', 'other', 'products')); // why products? |
|
44 | +$langs->loadLangs(array('hrm', 'other', 'products')); // why products? |
|
45 | 45 | |
46 | 46 | // Get parameters |
47 | 47 | $id = GETPOSTINT('id'); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'evaluationcard'; // To manage different context of search |
53 | 53 | $backtopage = GETPOST('backtopage', 'alpha'); |
54 | 54 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
55 | -$lineid = GETPOSTINT('lineid'); |
|
55 | +$lineid = GETPOSTINT('lineid'); |
|
56 | 56 | |
57 | 57 | // Initialize technical objects |
58 | 58 | $object = new Evaluation($db); |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | |
84 | 84 | // Default sort order (if not yet defined by previous GETPOST) |
85 | 85 | if (!$sortfield) { |
86 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
86 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
87 | 87 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
88 | 88 | } |
89 | 89 | if (!$sortorder) { |
@@ -560,7 +560,7 @@ discard block |
||
560 | 560 | } 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'])) { |
561 | 561 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
562 | 562 | } |
563 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
563 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
564 | 564 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
565 | 565 | print getTitleFieldOfList($arrayfields['t.' . $key]['label'], 0, $_SERVER['PHP_SELF'], 't.' . $key, '', $param, ($cssforfield ? 'class="' . $cssforfield . '"' : ''), $sortfield, $sortorder, ($cssforfield ? $cssforfield . ' ' : '')) . "\n"; |
566 | 566 | $totalarray['nbfield']++; |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | require_once DOL_DOCUMENT_ROOT . '/hrm/class/skillrank.class.php'; |
38 | 38 | |
39 | 39 | // Load translation files required by the page |
40 | -$langs->loadLangs(array('hrm', 'other', 'products')); // why products? |
|
40 | +$langs->loadLangs(array('hrm', 'other', 'products')); // why products? |
|
41 | 41 | |
42 | 42 | // Get parameters |
43 | 43 | $id = GETPOSTINT('id'); |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | $contextpage = GETPOST('contextpage', 'aZ') ? GETPOST('contextpage', 'aZ') : 'jobcard'; // To manage different context of search |
49 | 49 | $backtopage = GETPOST('backtopage', 'alpha'); |
50 | 50 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
51 | -$lineid = GETPOSTINT('lineid'); |
|
51 | +$lineid = GETPOSTINT('lineid'); |
|
52 | 52 | |
53 | 53 | // Initialize technical objects |
54 | 54 | $object = new Job($db); |
@@ -62,7 +62,7 @@ |
||
62 | 62 | |
63 | 63 | // Permissions |
64 | 64 | $permissionnote = $user->hasRight('hrm', 'evaluation', 'write'); // Used by the include of actions_setnotes.inc.php |
65 | -$permissiontoread = $user->hasRight('hrm', 'evaluation', 'read'); // Used by the include of actions_addupdatedelete.inc.php |
|
65 | +$permissiontoread = $user->hasRight('hrm', 'evaluation', 'read'); // Used by the include of actions_addupdatedelete.inc.php |
|
66 | 66 | |
67 | 67 | // Security check (enable the most restrictive one) |
68 | 68 | //if ($user->socid > 0) accessforbidden(); |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $optioncss = GETPOST('optioncss', 'aZ'); // Option for the css output (always '' except when 'print') |
56 | 56 | $mode = GETPOST('mode', 'alpha'); // for mode view result |
57 | 57 | |
58 | -$id = GETPOSTINT('id'); |
|
58 | +$id = GETPOSTINT('id'); |
|
59 | 59 | |
60 | 60 | // Load variable for pagination |
61 | 61 | $limit = GETPOSTINT('limit') ? GETPOSTINT('limit') : $conf->liste_limit; |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | // Default sort order (if not yet defined by previous GETPOST) |
86 | 86 | if (!$sortfield) { |
87 | - reset($object->fields); // Reset is required to avoid key() to return null. |
|
87 | + reset($object->fields); // Reset is required to avoid key() to return null. |
|
88 | 88 | $sortfield = "t." . key($object->fields); // Set here default search field. By default 1st field in definition. |
89 | 89 | } |
90 | 90 | if (!$sortorder) { |
@@ -575,7 +575,7 @@ discard block |
||
575 | 575 | } 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'])) { |
576 | 576 | $cssforfield .= ($cssforfield ? ' ' : '') . 'right'; |
577 | 577 | } |
578 | - $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
578 | + $cssforfield = preg_replace('/small\s*/', '', $cssforfield); // the 'small' css must not be used for the title label |
|
579 | 579 | if (!empty($arrayfields['t.' . $key]['checked'])) { |
580 | 580 | 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"; |
581 | 581 | $totalarray['nbfield']++; |
@@ -41,7 +41,7 @@ |
||
41 | 41 | $action = GETPOST('action', 'aZ09') ? GETPOST('action', 'aZ09') : 'view'; // The action 'add', 'create', 'edit', 'update', 'view', ... |
42 | 42 | $backtopage = GETPOST('backtopage', 'alpha'); |
43 | 43 | $backtopageforcancel = GETPOST('backtopageforcancel', 'alpha'); |
44 | -$id = GETPOSTINT('id'); |
|
44 | +$id = GETPOSTINT('id'); |
|
45 | 45 | |
46 | 46 | // Initialize technical objects |
47 | 47 | $form = new Form($db); |