36 $langs->load(
"agenda");
41 $head[$h][0] = DOL_URL_ROOT .
'/bookcal/calendar_card.php?id=' .
$object->id;
42 $head[$h][1] = $langs->trans(
"Calendar");
43 $head[$h][2] =
'card';
47 $head[$h][0] = DOL_URL_ROOT .
'/bookcal/booking_list.php?id=' .
$object->id;
48 $head[$h][1] = $langs->trans(
"Bookings");
49 $head[$h][2] =
'booking';
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_URL_ROOT .
'/bookcal/calendar_note.php?id=' .
$object->id;
67 $head[$h][1] = $langs->trans(
'Notes');
69 $head[$h][1] .= (!
getDolGlobalInt(
'MAIN_OPTIMIZEFORTEXTBROWSER') ?
'<span class="badge marginleftonlyshort">' . $nbNote .
'</span>' :
'');
71 $head[$h][2] =
'note';
88 $head[$h][0] = DOL_URL_ROOT .
'/bookcal/calendar_agenda.php?id=' .
$object->id;
89 $head[$h][1] = $langs->trans(
"Events");
90 $head[$h][2] =
'agenda';
if(! $sortfield) if(! $sortorder) $object
calendarPrepareHead($object)
Prepare array of tabs for Calendar.
getDolGlobalInt($key, $default=0)
Return a Dolibarr global constant int value.
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).