From 878d056b4564378d002b6675772860a275faef05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mart=C3=ADn=20Marrese?= Date: Thu, 5 Jun 2003 21:08:13 +0000 Subject: [PATCH] - Se agrego la clase mdate que hereda de HTML_QuickForm_date. - Agrega la opcion de ingresar un valor no fecha --- HTML/php/QuickForm/mdate.php | 83 ++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 HTML/php/QuickForm/mdate.php diff --git a/HTML/php/QuickForm/mdate.php b/HTML/php/QuickForm/mdate.php new file mode 100644 index 0000000..d7b7538 --- /dev/null +++ b/HTML/php/QuickForm/mdate.php @@ -0,0 +1,83 @@ +_options as $opts) { + foreach ($opts as $opp) { + array_push($op,'--'); + } + } + parent::HTML_QuickForm_date($elementName, $elementLabel, $options, $attributes); + } //end constructor + + // }}} + // {{{ _createNumericOptionList() + + /** + * Creates a numeric option list based on a start number and end number + * + * @param int $start The start number + * @param int $end The end number + * + * @access public + * @return array An array of numeric options. + */ + function _createNumericOptionList($start, $end) + { + $options = array(); + for ($i = $start; $i <= $end; $i++) { + $options[$i] = sprintf('%02d', $i); + } + array_push($options,'--'); + return $options; + + } // end func _createNumericOptionList +?> -- 2.43.0