68 $this->activation_title = $a_title;
69 $this->activation_post_var = $a_postvar;
70 $this->activation_checked = $a_checked;
97 $this->date = $a_date;
117 $this->showdate = $a_showdate;
137 $this->showtime = $a_showtime;
160 $this->minute_step_size = $a_step_size;
183 $this->showseconds = $a_showseconds;
205 if(isset($a_values[$this->
getPostVar()][
"time"]))
217 $item->setValueByArray($a_values);
247 $dt[
'year'] = (int) $_POST[$this->
getPostVar()][
'date'][
'y'];
248 $dt[
'mon'] = (int) $_POST[$this->
getPostVar()][
'date'][
'm'];
249 $dt[
'mday'] = (int) $_POST[$this->
getPostVar()][
'date'][
'd'];
250 $dt[
'hours'] = (int) $_POST[$this->
getPostVar()][
'time'][
'h'];
251 $dt[
'minutes'] = (int) $_POST[$this->
getPostVar()][
'time'][
'm'];
252 $dt[
'seconds'] = (int) $_POST[$this->
getPostVar()][
'time'][
's'];
259 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
289 if(is_a($this->
getDate(),
'ilDate'))
293 elseif(is_a($this->
getDate(),
'ilDateTime'))
304 $lng->loadLanguageModule(
"jscalendar");
305 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
310 $a_tpl->setCurrentBlock(
'prop_date_activation');
312 $a_tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
313 $a_tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ?
'checked="checked"' :
'');
314 $a_tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ?
'disabled="disabled" ' :
'');
315 $a_tpl->parseCurrentBlock();
320 $a_tpl->setCurrentBlock(
"prop_date");
322 $a_tpl->setVariable(
"TXT_DATE_CALENDAR", $lng->txt(
"open_calendar"));
323 $a_tpl->setVariable(
"DATE_ID", $this->
getPostVar());
324 $a_tpl->setVariable(
"INPUT_FIELDS_DATE", $this->
getPostVar().
"[date]");
325 $a_tpl->setVariable(
"DATE_SELECT",
327 '',
true,array(
'disabled' => $this->
getDisabled())));
328 $a_tpl->parseCurrentBlock();
333 $a_tpl->setCurrentBlock(
"prop_time");
334 #$time = explode(":", $this->getTime());
335 $a_tpl->setVariable(
"TIME_SELECT",
337 $date_info[
'hours'], $date_info[
'minutes'], $date_info[
'seconds'],
343 ?
"(".$lng->txt(
"hh_mm_ss").
")"
344 :
"(".$lng->txt(
"hh_mm").
")");
345 $a_tpl->parseCurrentBlock();
347 $a_tpl->setCurrentBlock(
"prop_datetime");
350 $a_tpl->setVariable(
"DELIM",
"<br />");
352 $a_tpl->parseCurrentBlock();