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']))
43 $item->setValueByArray($a_values);
79 if ($dt[
'year'] == 0 && $dt[
'mon'] == 0 && $dt[
'mday'] == 0 && $this->
getRequired())
82 $this->
setAlert($lng->txt(
"msg_input_is_required"));
85 else if ($dt[
'year'] == 0 && $dt[
'mon'] == 0 && $dt[
'mday'] == 0)
91 if (!checkdate((
int)$dt[
'mon'], (
int)$dt[
'mday'], (
int)$dt[
'year']))
94 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
112 $tpl =
new ilTemplate(
"tpl.prop_datetime.html",
true,
true,
"Services/Form");
113 if (is_object($this->
getDate()))
126 $lng->loadLanguageModule(
"jscalendar");
127 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
132 $tpl->setCurrentBlock(
'prop_date_activation');
134 $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
135 $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ?
'checked="checked"' :
'');
136 $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ?
'disabled="disabled" ' :
'');
137 $tpl->parseCurrentBlock();
142 $tpl->setCurrentBlock(
"prop_date");
144 $tpl->setVariable(
"TXT_DATE_CALENDAR", $lng->txt(
"open_calendar"));
146 $tpl->setVariable(
"INPUT_FIELDS_DATE", $this->
getPostVar().
"[date]");
147 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
149 $tpl->setVariable(
"DATE_SELECT",
152 $tpl->parseCurrentBlock();