24 include_once(
'Services/Calendar/classes/class.ilCalendarUtil.php');
63 $this->seed = clone
$seed;
64 $this->increment = $a_increment;
78 $this->tpl =
new ilTemplate(
'tpl.navigation_header.html',
true,
true,
'Services/Calendar');
80 $this->seed->increment($this->increment,-2);
84 switch($this->increment)
91 $this->tpl->setVariable(
'NAV_NAME_'.++$num,$this->lng->txt(
'week').
' '.$this->seed->get(
IL_CAL_FKT_DATE,
'W'));
97 $this->tpl->setVariable(
'NAV_NAME_'.++$num,
98 $this->lng->txt(
'month_'.$this->seed->get(
IL_CAL_FKT_DATE,
'm').
'_long').
103 $this->tpl->setVariable(
'NAV_NAME_'.++$num,$this->lng->txt(
'month_'.$this->seed->get(
IL_CAL_FKT_DATE,
'm').
'_long'));
107 $this->ctrl->setParameterByClass(get_class($this->cmdClass),
'seed',$this->seed->get(
IL_CAL_DATE));
108 $this->tpl->setVariable(
'NAV_LINK_'.$num,$this->ctrl->getLinkTarget($this->cmdClass,$this->cmd));
110 $this->ctrl->setParameterByClass(get_class($this->cmdClass),
'seed',
'');
111 $this->seed->increment($this->increment,1);
115 switch ($this->increment)
118 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_day_selection"));
119 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_day_overview"));
123 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_week_selection"));
124 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_week_overview"));
128 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_month_selection"));
129 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_month_overview"));
132 $this->tpl->setVariable(
'TXT_SELECTED', $lng->txt(
"stat_selected"));
134 return $this->tpl->get();