24 include_once(
'Services/Calendar/classes/class.ilCalendarUtil.php');
62 $this->seed = clone
$seed;
63 $this->increment = $a_increment;
76 $this->tpl =
new ilTemplate(
'tpl.navigation_header.html',
true,
true,
'Services/Calendar');
78 $this->seed->increment($this->increment,-2);
82 switch($this->increment)
89 $this->tpl->setVariable(
'NAV_NAME_'.++$num,$this->lng->txt(
'week').
' '.$this->seed->get(
IL_CAL_FKT_DATE,
'W'));
95 $this->tpl->setVariable(
'NAV_NAME_'.++$num,
96 $this->lng->txt(
'month_'.$this->seed->get(
IL_CAL_FKT_DATE,
'm').
'_long').
101 $this->tpl->setVariable(
'NAV_NAME_'.++$num,$this->lng->txt(
'month_'.$this->seed->get(
IL_CAL_FKT_DATE,
'm').
'_long'));
105 $this->ctrl->setParameterByClass(get_class($this->cmdClass),
'seed',$this->seed->get(
IL_CAL_DATE));
106 $this->tpl->setVariable(
'NAV_LINK_'.$num,$this->ctrl->getLinkTarget($this->cmdClass,
''));
107 $this->ctrl->clearParametersByClass(get_class($this->cmdClass));
108 $this->seed->increment($this->increment,1);
112 switch ($this->increment)
115 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_day_selection"));
116 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_day_overview"));
120 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_week_selection"));
121 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_week_overview"));
125 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_month_selection"));
126 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_month_overview"));
129 $this->tpl->setVariable(
'TXT_SELECTED', $lng->txt(
"stat_selected"));
131 return $this->tpl->get();