24 include_once(
'Services/Calendar/classes/class.ilDate.php');
25 include_once(
'Services/Calendar/classes/class.ilCalendarHeaderNavigationGUI.php');
26 include_once(
'Services/Calendar/classes/class.ilCalendarUserSettings.php');
27 include_once(
'Services/Calendar/classes/class.ilCalendarAppointmentColors.php');
28 include_once(
'./Services/Calendar/classes/class.ilCalendarSchedule.php');
64 $this->seed = $seed_date;
69 $this->tabs_gui = $ilTabs;
74 $this->timezone = $ilUser->getTimeZone();
87 $next_class = $ilCtrl->getNextClass();
90 case 'ilcalendarappointmentgui':
91 $this->ctrl->setReturn($this,
'');
92 $this->tabs_gui->setSubTabActive(
$_SESSION[
'cal_last_tab']);
94 include_once(
'./Services/Calendar/classes/class.ilCalendarAppointmentGUI.php');
96 $this->ctrl->forwardCommand($app);
100 $cmd = $this->ctrl->getCmd(
"inbox");
102 $tpl->setContent($this->tpl->get());
119 $this->tpl =
new ilTemplate(
'tpl.inbox.html',
true,
true,
'Services/Calendar');
122 include_once(
'./Services/Calendar/classes/class.ilCalendarInboxSharedTableGUI.php');
123 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
130 $this->tpl->setVariable(
'SHARED_CAL_TABLE',$table->getHTML());
135 if(isset(
$_GET[
'changed']))
137 $title = $this->lng->txt(
'cal_changed_events_header');
138 $events = $schedule->getChangedEvents(
true);
140 $ilCtrl->setParameter($this,
'changed', 1);
145 $title = $this->lng->txt(
'cal_upcoming_events_header');
146 $events = $schedule->getEvents();
149 include_once(
'./Services/Calendar/classes/class.ilCalendarChangedAppointmentsTableGUI.php');
152 $table_gui->setTitle(
$title);
153 $table_gui->setAppointments($events);
155 $this->tpl->setVariable(
'CHANGED_TABLE',$table_gui->getHTML());
176 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
179 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
180 foreach(
$_POST[
'cal_ids'] as $calendar_id)
188 $status->accept($calendar_id);
193 $this->ctrl->redirect($this,
'inbox');
214 include_once(
'./Services/Calendar/classes/class.ilCalendarSharedStatus.php');
217 include_once(
'./Services/Calendar/classes/class.ilCalendarShared.php');
218 foreach(
$_POST[
'cal_ids'] as $calendar_id)
226 $status->decline($calendar_id);