4 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
22 if (is_array($a_values[$this->
getPostVar()][
"date"]))
24 if (@checkdate($a_values[$this->
getPostVar()][
"date"][
'm'], $a_values[$this->
getPostVar()][
"date"][
'd'], $a_values[$this->
getPostVar()][
"date"][
'y']))
30 else if (isset($a_values[$this->
getPostVar()][
"date"]) && !is_array($a_values[$this->
getPostVar()][
"date"]))
47 $item->setValueByArray($a_values);
83 if ($dt[
'year'] == 0 && $dt[
'mon'] == 0 && $dt[
'mday'] == 0 && $this->
getRequired())
86 $this->
setAlert($lng->txt(
"msg_input_is_required"));
89 else if ($dt[
'year'] == 0 && $dt[
'mon'] == 0 && $dt[
'mday'] == 0)
95 if (!checkdate((
int)$dt[
'mon'], (
int)$dt[
'mday'], (
int)$dt[
'year']))
98 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
116 $tpl =
new ilTemplate(
"tpl.prop_datetime.html",
true,
true,
"Services/Form");
117 if (is_object($this->
getDate()))
130 $lng->loadLanguageModule(
"jscalendar");
131 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
136 $tpl->setCurrentBlock(
'prop_date_activation');
138 $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
139 $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ?
'checked="checked"' :
'');
140 $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ?
'disabled="disabled" ' :
'');
141 $tpl->parseCurrentBlock();
146 $tpl->setCurrentBlock(
"prop_date");
148 $tpl->setVariable(
"TXT_DATE_CALENDAR", $lng->txt(
"open_calendar"));
150 $tpl->setVariable(
"INPUT_FIELDS_DATE", $this->
getPostVar().
"[date]");
151 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
153 $tpl->setVariable(
"DATE_SELECT",
156 $tpl->parseCurrentBlock();