65 $this->activation_title = $a_title;
66 $this->activation_post_var = $a_postvar;
67 $this->activation_checked = $a_checked;
78 $this->toggle_fulltime_txt = $a_title;
79 $this->toggle_fulltime_checked = $a_checked;
80 $this->toggle_fulltime =
true;
116 $this->start = $a_date;
126 $this->start_text = $a_txt;
145 $this->end_text = $a_txt;
180 $this->end = $a_date;
200 $this->showdate = $a_showdate;
210 return $this->showdate;
220 $this->show_empty = $a_empty;
241 $this->showtime = $a_showtime;
251 return $this->showtime;
270 $this->startyear = $a_year;
280 return $this->startyear;
293 $this->minute_step_size = $a_step_size;
317 if(isset($a_values[$this->
getPostVar()][
'start'][
"time"]))
324 if (isset($a_values[$this->
getPostVar()][
'start'][
"date"]))
330 if(isset($a_values[$this->
getPostVar()][
'end'][
"time"]))
337 if (isset($a_values[$this->
getPostVar()][
'end'][
"date"]))
345 $item->setValueByArray($a_values);
406 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
410 #$_POST[$this->getPostVar()]['start']['date'] = $date->get(IL_CAL_FKT_DATE,'Y-m-d',$ilUser->getTimeZone());
411 #$_POST[$this->getPostVar()]['start']['time'] = $date->get(IL_CAL_FKT_DATE,'H:i:s',$ilUser->getTimeZone());
449 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
453 #$_POST[$this->getPostVar()]['end']['date'] = $date->get(IL_CAL_FKT_DATE,'Y-m-d',$ilUser->getTimeZone());
454 #$_POST[$this->getPostVar()]['end']['time'] = $date->get(IL_CAL_FKT_DATE,'H:i:s',$ilUser->getTimeZone());
469 $tpl =
new ilTemplate(
"tpl.prop_datetime_duration.html",
true,
true,
"Services/Form");
472 if(is_a($this->
getStart(),
'ilDate'))
476 elseif(is_a($this->
getStart(),
'ilDateTime'))
486 if(is_a($this->
getEnd(),
'ilDate'))
490 elseif(is_a($this->
getEnd(),
'ilDateTime'))
500 $lng->loadLanguageModule(
"jscalendar");
501 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
506 $tpl->setCurrentBlock(
'prop_date_activation');
508 $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
509 $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ?
'checked="checked"' :
'');
510 $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ?
'disabled="disabled" ' :
'');
511 $tpl->parseCurrentBlock();
526 $tpl->setCurrentBlock(
'toggle_fullday');
528 $tpl->setVariable(
'FULLDAY_TOGGLE_NAME',$this->
getPostVar().
'[fulltime]');
529 $tpl->setVariable(
'FULLDAY_TOGGLE_CHECKED',$this->toggle_fulltime_checked ?
'checked="checked"' :
'');
530 $tpl->setVariable(
'FULLDAY_TOGGLE_DISABLED',$this->
getDisabled() ?
'disabled="disabled"' :
'');
531 $tpl->setVariable(
'TXT_TOGGLE_FULLDAY',$this->toggle_fulltime_txt);
532 $tpl->parseCurrentBlock();
540 $tpl->setVariable(
"TXT_START_CALENDAR", $lng->txt(
"open_calendar"));
544 $tpl->setVariable(
"INPUT_FIELDS_START", $this->
getPostVar().
"[start][date]");
545 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
547 $tpl->setVariable(
"START_SELECT",
550 $start_info[
'year'], $start_info[
'mon'], $start_info[
'mday'],
555 'select_attributes' => array(
'onchange' =>
'ilUpdateEndDate();')
560 $tpl->setVariable(
"TXT_END_CALENDAR", $lng->txt(
"open_calendar"));
563 $tpl->setVariable(
"INPUT_FIELDS_END", $this->
getPostVar().
"[end][date]");
564 $tpl->setVariable(
"END_SELECT",
567 $end_info[
'year'], $end_info[
'mon'], $end_info[
'mday'],
577 $tpl->setCurrentBlock(
"show_start_time");
578 $tpl->setVariable(
"START_TIME_SELECT",
582 $start_info[
'hours'], $start_info[
'minutes'], $start_info[
'seconds'],
587 'select_attributes' => array(
'onchange' =>
'ilUpdateEndDate();')
592 ?
"(".$lng->txt(
"hh_mm_ss").
")"
593 :
"(".$lng->txt(
"hh_mm").
")");
594 $tpl->parseCurrentBlock();
596 $tpl->setCurrentBlock(
"show_end_time");
597 $tpl->setVariable(
"END_TIME_SELECT",
599 $end_info[
'hours'], $end_info[
'minutes'], $end_info[
'seconds'],
604 ?
"(".$lng->txt(
"hh_mm_ss").
")"
605 :
"(".$lng->txt(
"hh_mm").
")");
606 $tpl->parseCurrentBlock();
611 $tpl->setVariable(
"DELIM",
"<br />");
626 $a_tpl->setCurrentBlock(
"prop_generic");
627 $a_tpl->setVariable(
"PROP_GENERIC", $html);
628 $a_tpl->parseCurrentBlock();