66 if(isset(self::$instance) and self::$instance)
87 $this->tpl =
new ilTemplate(
'tpl.appointment_panel.html',
true,
true,
'Services/Calendar');
90 $this->tpl->setVariable(
'PANEL_NUM',self::$counter);
91 $this->tpl->setVariable(
'PANEL_TITLE',$a_app[
'event']->getPresentationTitle());
92 $this->tpl->setVariable(
'PANEL_DETAILS',$this->lng->txt(
'cal_details'));
93 $this->tpl->setVariable(
'PANEL_TXT_DATE',$this->lng->txt(
'date'));
107 if($a_app[
'event']->getLocation())
109 $this->tpl->setVariable(
'PANEL_TXT_WHERE',$this->lng->txt(
'cal_where'));
110 $this->tpl->setVariable(
'PANEL_WHERE',$a_app[
'event']->getLocation());
112 if($a_app[
'event']->getDescription())
114 $this->tpl->setVariable(
'PANEL_TXT_DESC',$this->lng->txt(
'description'));
115 $this->tpl->setVariable(
'PANEL_DESC',nl2br($a_app[
'event']->getDescription()));
118 include_once(
'./Services/Calendar/classes/class.ilCalendarCategoryAssignments.php');
122 $this->tpl->setVariable(
'PANEL_TXT_CAL_TYPE',$this->lng->txt(
'cal_cal_type'));
123 switch($cat_info[
'type'])
126 $this->tpl->setVariable(
'PANEL_CAL_TYPE',$this->lng->txt(
'cal_type_system'));
130 $this->tpl->setVariable(
'PANEL_CAL_TYPE',$this->lng->txt(
'cal_type_personal'));
135 $this->tpl->setVariable(
'PANEL_CAL_TYPE',$this->lng->txt(
'cal_type_'.$type));
139 $this->tpl->setVariable(
'PANEL_TXT_CAL_NAME',$this->lng->txt(
'cal_calendar_name'));
140 $this->tpl->setVariable(
'PANEL_CAL_NAME',$cat_info[
'title']);
143 if($cat_info[
'editable'] and !$a_app[
'event']->isAutoGenerated())
145 $this->tpl->setCurrentBlock(
'panel_edit_link');
146 $this->tpl->setVariable(
'TXT_PANEL_EDIT',$this->lng->txt(
'edit'));
148 $this->ctrl->clearParametersByClass(
'ilcalendarappointmentgui');
149 $this->ctrl->setParameterByClass(
'ilcalendarappointmentgui',
'app_id',$a_app[
'event']->getEntryId());
150 $this->tpl->setVariable(
'PANEL_EDIT_HREF',$this->ctrl->getLinkTargetByClass(
'ilcalendarappointmentgui',
'edit'));
151 $this->tpl->parseCurrentBlock();
153 include_once(
'./Services/Calendar/classes/class.ilCalendarCategory.php');
158 include_once(
'classes/class.ilLink.php');
160 $parent = $tree->getParentId(current($refs));
162 $this->tpl->setVariable(
'PANEL_TXT_LINK',$this->lng->txt(
'ext_link'));
163 $this->tpl->setVariable(
'PANEL_LINK_HREF',$href);
165 $this->tpl->setVariable(
'PANEL_PARENT',$parent_title);
168 return $this->tpl->get();