37 global $langs,
$conf, $db;
42 $extrafields->fetch_name_optionals_label(
'hrm_evaluation');
43 $extrafields->fetch_name_optionals_label(
'hrm_job');
44 $extrafields->fetch_name_optionals_label(
'hrm_skill');
48 $head[$h][0] = DOL_URL_ROOT .
"/admin/hrm.php";
49 $head[$h][1] = $langs->trans(
"Settings");
50 $head[$h][2] =
'settings';
53 $head[$h][0] = DOL_URL_ROOT.
'/hrm/admin/admin_establishment.php';
54 $head[$h][1] = $langs->trans(
"Establishments");
55 $head[$h][2] =
'establishments';
58 $head[$h][0] = DOL_URL_ROOT .
'/hrm/admin/skill_extrafields.php';
59 $head[$h][1] = $langs->trans(
"SkillsExtraFields");
60 $nbExtrafields = $extrafields->attributes[
'hrm_skill'][
'count'];
61 if ($nbExtrafields > 0) {
62 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
64 $head[$h][2] =
'skillsAttributes';
67 $head[$h][0] = DOL_URL_ROOT .
'/hrm/admin/job_extrafields.php';
68 $head[$h][1] = $langs->trans(
"JobsExtraFields");
69 $nbExtrafields = $extrafields->attributes[
'hrm_job'][
'count'];
70 if ($nbExtrafields > 0) {
71 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
73 $head[$h][2] =
'jobsAttributes';
76 $head[$h][0] = DOL_URL_ROOT .
'/hrm/admin/evaluation_extrafields.php';
77 $head[$h][1] = $langs->trans(
"EvaluationsExtraFields");
78 $nbExtrafields = $extrafields->attributes[
'hrm_evaluation'][
'count'];
79 if ($nbExtrafields > 0) {
80 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.$nbExtrafields.
'</span>';
82 $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).