2 // vim: set expandtab tabstop=4 shiftwidth=4:
3 // +--------------------------------------------------------------------+
4 // | Ministerio de EconomÃa |
5 // | QuickForm Tabla Renderer |
6 // +--------------------------------------------------------------------+
7 // | This file is part of AI. |
9 // | This program is free software; you can redistribute it and/or |
10 // | modify it under the terms of the GNU General Public License as |
11 // | published by the Free Software Foundation; either version 2 of the |
12 // | License, or (at your option) any later version. |
14 // | This program is distributed in the hope that it will be useful, |
15 // | but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 // | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 // | General Public License for more details. |
19 // | You should have received a copy of the GNU General Public License |
20 // | along with Hooks; if not, write to the Free Software Foundation, |
21 // | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 // +--------------------------------------------------------------------+
23 // | Creado: Tue Jun 24 16:22:07 2003 |
24 // | Autor: Leandro Lucarella <llucar@mecon.gov.ar> |
25 // +--------------------------------------------------------------------+
30 require_once 'HTML/QuickForm.php';
33 * QuickForm de uso general del MECON.
35 class MECON_HTML_QuickForm extends HTML_QuickForm {
36 function MECON_HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null)
38 parent::HTML_QuickForm($formName, $method, $action, $target, $attributes);
39 $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'HTML_QuickForm_mdate');
40 $this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate');
41 $this->setRequiredNote('<FONT color="red">*</FONT> indica un campo obligatorio');