+<?php
+/* vim: set expandtab tabstop=4 shiftwidth=4: */
+// +----------------------------------------------------------------------+
+// | PHP Version 4 |
+// +----------------------------------------------------------------------+
+// | Copyright (c) 1997-2003 The PHP Group |
+// +----------------------------------------------------------------------+
+// | This source file is subject to version 2.0 of the PHP license, |
+// | that is bundled with this package in the file LICENSE, and is |
+// | available at through the world-wide-web at |
+// | http://www.php.net/license/2_02.txt. |
+// | If you did not receive a copy of the PHP license and are unable to |
+// | obtain it through the world-wide-web, please send a note to |
+// | license@php.net so we can mail you a copy immediately. |
+// +----------------------------------------------------------------------+
+// | Authors: Martin Marrese
+// | Date: jue jun 5 17:59:44 ART 2003
+// +----------------------------------------------------------------------+
+//
+// $Id$
+//
+// $Author$
+// $URL$
+// $Date$
+// $Rev$
+//
+
+
+
+require_once('HTML/QuickForm/date.php');
+
+/**
+ * Class to dynamically create HTML Select elements from a date
+ * Modificado para que cumpla con los requisitos de mecon
+ *
+ */
+class HTML_QuickForm_mdate extends HTML_QuickForm_date
+{
+ // {{{ constructor
+
+ /**
+ * Class constructor
+ *
+ * @param string $elementName (optional)Input field name attribute
+ * @param string $value (optional)Input field value
+ * @param mixed $attributes (optional)Either a typical HTML attribute string
+ * or an associative array. Date format is passed along the attributes.
+ * @access public
+ * @return void
+ */
+ function HTML_QuickForm_date($elementName=null, $elementLabel=null, $options=array(), $attributes=null)
+ {
+ foreach ($this->_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
+?>