33 global $langs, $conf, $db;
36 $extrafields->fetch_name_optionals_label(
'recruitment_recruitmentjobposition');
37 $extrafields->fetch_name_optionals_label(
'recruitment_recruitmentcandidature');
39 $langs->load(
"recruitment");
44 $head[$h][0] = DOL_URL_ROOT .
'/recruitment/admin/setup.php';
45 $head[$h][1] = $langs->trans(
"JobPositions");
46 $head[$h][2] =
'settings';
49 $head[$h][0] = DOL_URL_ROOT .
'/recruitment/admin/setup_candidatures.php';
50 $head[$h][1] = $langs->trans(
"RecruitmentCandidatures");
51 $head[$h][2] =
'settings_candidatures';
54 $head[$h][0] = DOL_URL_ROOT .
'/recruitment/admin/public_interface.php';
55 $head[$h][1] = $langs->trans(
"PublicUrl");
56 $head[$h][2] =
'publicurl';
59 $head[$h][0] = DOL_URL_ROOT .
'/recruitment/admin/jobposition_extrafields.php';
60 $head[$h][1] = $langs->trans(
"ExtrafieldsJobPosition");
61 $nbExtrafields = $extrafields->attributes[
'recruitment_recruitmentjobposition'][
'count'];
62 if ($nbExtrafields > 0) {
63 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
65 $head[$h][2] =
'jobposition_extrafields';
68 $head[$h][0] = DOL_URL_ROOT .
'/recruitment/admin/candidature_extrafields.php';
69 $head[$h][1] = $langs->trans(
"ExtrafieldsApplication");
70 $nbExtrafields = $extrafields->attributes[
'recruitment_recruitmentcandidature'][
'count'];
71 if ($nbExtrafields > 0) {
72 $head[$h][1] .=
'<span class="badge marginleftonlyshort">' . $nbExtrafields .
'</span>';
74 $head[$h][2] =
'candidature_extrafields';
complete_head_from_modules($conf, $langs, $object, &$head, &$h, $type, $mode='add', $filterorigmodule='')
Complete or removed entries into a head array (used to build tabs).