36 global $langs, $conf, $db;
41 $extrafields->fetch_name_optionals_label(
'hrm_evaluation');
42 $extrafields->fetch_name_optionals_label(
'hrm_job');
43 $extrafields->fetch_name_optionals_label(
'hrm_skill');
47 $head[$h][0] = DOL_URL_ROOT .
"/admin/hrm.php";
48 $head[$h][1] = $langs->trans(
"Settings");
49 $head[$h][2] =
'settings';
52 $head[$h][0] = DOL_URL_ROOT.
'/hrm/admin/admin_establishment.php';
53 $head[$h][1] = $langs->trans(
"Establishments");
54 $head[$h][2] =
'establishments';
57 $head[$h][0] = DOL_URL_ROOT .
'/hrm/admin/skill_extrafields.php';
58 $head[$h][1] = $langs->trans(
"SkillsExtraFields");
59 $nbExtrafields = $extrafields->attributes[
'hrm_skill'][
'count'];
60 if ($nbExtrafields > 0) {
61 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
63 $head[$h][2] =
'skillsAttributes';
66 $head[$h][0] = DOL_URL_ROOT .
'/hrm/admin/job_extrafields.php';
67 $head[$h][1] = $langs->trans(
"JobsExtraFields");
68 $nbExtrafields = $extrafields->attributes[
'hrm_job'][
'count'];
69 if ($nbExtrafields > 0) {
70 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
72 $head[$h][2] =
'jobsAttributes';
75 $head[$h][0] = DOL_URL_ROOT .
'/hrm/admin/evaluation_extrafields.php';
76 $head[$h][1] = $langs->trans(
"EvaluationsExtraFields");
77 $nbExtrafields = $extrafields->attributes[
'hrm_evaluation'][
'count'];
78 if ($nbExtrafields > 0) {
79 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
81 $head[$h][2] =
'evaluationsAttributes';
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).