]> git.llucax.com Git - mecon/meconlib.git/blobdiff - lib/MECON/HTML/QuickForm/mdate.php
Termine de armar el nuevo renderer
[mecon/meconlib.git] / lib / MECON / HTML / QuickForm / mdate.php
index f0886f9ddebb56840e894ad141ce95726f650d01..6e5a8d3c1c66f5df0ab5e81279adcb2cbe7218d4 100644 (file)
@@ -1,31 +1,28 @@
-<?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$
-//
+<?php /* vim: set binary expandtab tabstop=4 shiftwidth=4 textwidth=80:
+-------------------------------------------------------------------------------
+                             Ministerio de Economía
+                                    meconlib
+-------------------------------------------------------------------------------
+This file is part of meconlib.
 
 
+meconlib is free software; you can redistribute it and/or modify it under
+the terms of the GNU General Public License as published by the Free
+Software Foundation; either version 2 of the License, or (at your option)
+any later version.
 
 
+meconlib is distributed in the hope that it will be useful, but WITHOUT
+ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
+You should have received a copy of the GNU General Public License; if not,
+write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
+Boston, MA  02111-1307  USA
+-------------------------------------------------------------------------------
+Creado: jue jun  5 17:59:44 ART 2003
+Autor:  Martin Marrese <mmarre@mecon.gov.ar>
+-------------------------------------------------------------------------------
+$Id$
+-----------------------------------------------------------------------------*/
 
 require_once 'HTML/QuickForm/date.php';
 require_once 'Date.php';
 
 require_once 'HTML/QuickForm/date.php';
 require_once 'Date.php';
@@ -60,7 +57,9 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
                                 )
                         );
                         
                                 )
                         );
                         
-        parent::HTML_QuickForm_date($elementName, $elementLabel, $options, $attributes);
+        parent::HTML_QuickForm_date($elementName, $elementLabel,
+            array_merge(array('language'=>'es','format'=>'d F Y'), $options),
+            $attributes);
     } //end constructor
 
     // }}}
     } //end constructor
 
     // }}}
@@ -99,7 +98,7 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
      */
     function &getValue()
     {
      */
     function &getValue()
     {
-        if ($this->_selectedDate['Y'] != 00) {
+        if ($this->_selectedDate['Y']) {
             return new Date (sprintf("%04d-%02d-%02d 00:00:00",$this->_selectedDate['Y'],$this->_selectedDate['F'],$this->_selectedDate['d']));
         } 
         else {
             return new Date (sprintf("%04d-%02d-%02d 00:00:00",$this->_selectedDate['Y'],$this->_selectedDate['F'],$this->_selectedDate['d']));
         } 
         else {
@@ -131,4 +130,5 @@ class HTML_QuickForm_mdate extends HTML_QuickForm_date
         }
     } // end func validate
 }
         }
     } // end func validate
 }
+
 ?>
 ?>