From: Martín Marrese Date: Thu, 5 Jun 2003 21:08:13 +0000 (+0000) Subject: - Se agrego la clase mdate que hereda de HTML_QuickForm_date. X-Git-Tag: svn_import~507 X-Git-Url: https://git.llucax.com/mecon/meconlib.git/commitdiff_plain/878d056b4564378d002b6675772860a275faef05?ds=sidebyside - Se agrego la clase mdate que hereda de HTML_QuickForm_date. - Agrega la opcion de ingresar un valor no fecha --- 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 +?>