4 include_once(
"./Services/Form/classes/class.ilDateTimeInputGUI.php");
22 if (isset($a_values[$this->
getPostVar()][
"date"]) && 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 elseif(is_array($a_values[$this->
getPostVar()]) && 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)
96 if (!checkdate((
int)$dt[
'mon'], (
int)$dt[
'mday'], (
int)$dt[
'year']))
99 $this->
setAlert($lng->txt(
"exc_date_not_valid"));
117 $tpl =
new ilTemplate(
"tpl.prop_datetime.html",
true,
true,
"Services/Form");
118 if (is_object($this->
getDate()))
131 $lng->loadLanguageModule(
"jscalendar");
132 require_once(
"./Services/Calendar/classes/class.ilCalendarUtil.php");
137 $tpl->setCurrentBlock(
'prop_date_activation');
139 $tpl->setVariable(
'TXT_DATE_ENABLED',$this->activation_title);
140 $tpl->setVariable(
'CHECKED_ENABLED',$this->activation_checked ?
'checked="checked"' :
'');
141 $tpl->setVariable(
'CHECKED_DISABLED',$this->
getDisabled() ?
'disabled="disabled" ' :
'');
142 $tpl->parseCurrentBlock();
147 $tpl->setCurrentBlock(
"prop_date");
149 $tpl->setVariable(
"TXT_DATE_CALENDAR", $lng->txt(
"open_calendar"));
151 $tpl->setVariable(
"INPUT_FIELDS_DATE", $this->
getPostVar().
"[date]");
152 include_once
'./Services/Calendar/classes/class.ilCalendarUserSettings.php';
154 $tpl->setVariable(
"DATE_SELECT",
157 $tpl->parseCurrentBlock();