35 global $db, $langs, $conf;
42 $head[$h][0] = DOL_URL_ROOT.
"/hrm/job_card.php?id=".$object->id;
43 $head[$h][1] = $langs->trans(
"JobPosition");
44 $head[$h][2] =
'job_card';
47 $head[$h][0] = DOL_URL_ROOT.
"/hrm/skill_tab.php?id=".$object->id.
'&objecttype=job';
48 $head[$h][1] = $langs->trans(
"RequiredSkills");
49 $head[$h][2] =
'skill_tab';
52 $head[$h][0] = DOL_URL_ROOT.
"/hrm/position.php?fk_job=".$object->id;
53 $head[$h][1] = $langs->trans(
"EmployeesInThisPosition");
54 $head[$h][2] =
'position';
58 if (isset($object->fields[
'note_public']) || isset($object->fields[
'note_private'])) {
60 if (!empty($object->note_private)) {
63 if (!empty($object->note_public)) {
66 $head[$h][0] =
dol_buildpath(
'/hrm/job_note.php', 1).
'?id='.$object->id;
67 $head[$h][1] = $langs->trans(
'Notes');
69 $head[$h][1] .= (empty($conf->global->MAIN_OPTIMIZEFORTEXTBROWSER) ?
'<span class="badge marginleftonlyshort">'.$nbNote.
'</span>' :
'');
71 $head[$h][2] =
'note';
75 require_once DOL_DOCUMENT_ROOT.
'/core/lib/files.lib.php';
76 require_once DOL_DOCUMENT_ROOT.
'/core/class/link.class.php';
78 $nbFiles = count(
dol_dir_list($upload_dir,
'files', 0,
'',
'(\.meta|_preview.*\.png)$'));
79 $nbLinks =
Link::count($db, $object->element, $object->id);
80 $head[$h][0] =
dol_buildpath(
"/hrm/job_document.php", 1).
'?id='.$object->id;
81 $head[$h][1] = $langs->trans(
'Documents');
82 if (($nbFiles + $nbLinks) > 0) {
83 $head[$h][1] .=
'<span class="badge marginleftonlyshort">'.($nbFiles + $nbLinks).
'</span>';
85 $head[$h][2] =
'document';
88 $head[$h][0] =
dol_buildpath(
"/hrm/job_agenda.php", 1).
'?id='.$object->id;
89 $head[$h][1] = $langs->trans(
"Events");
90 $head[$h][2] =
'agenda';