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');
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',
'');
117 switch ($this->increment)
120 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_day_selection"));
121 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_day_overview"));
125 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_week_selection"));
126 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_week_overview"));
130 $this->tpl->setVariable(
'TXT_SELECT_TITLE', $lng->txt(
"cal_month_selection"));
131 $this->tpl->setVariable(
'TXT_VIEW_HEAD', $lng->txt(
"cal_month_overview"));
134 $this->tpl->setVariable(
'TXT_SELECTED', $lng->txt(
"stat_selected"));
136 return $this->tpl->get();
141 switch($this->increment)
148 $this->seed->increment(
IL_CAL_DAY, (31 - $day) * -1);
151 $this->seed->increment($this->increment,$a_count);