0) { $plus = 1; if ($match[1]=="-") { $plus = -1; } $input["default"] = date("d M Y", WT_TIMESTAMP + $plus*60*60*24*$match[2]); } else { $input["default"] = $attrs["default"]; } } } if (isset($attrs["options"])) { $input["options"] = $attrs["options"]; } } function InputEHandler() { global $report_array, $text, $input; $input["value"] = $text; if (!isset($report_array["inputs"])) { $report_array["inputs"] = array(); } $report_array["inputs"][] = $input; $text = ""; }