]> git.llucax.com Git - mecon/meconlib.git/blob - lib/MECON/HTML/QuickForm.php
560ad607edbcaa77cd017a4f2b2f212dbe110abe
[mecon/meconlib.git] / lib / MECON / HTML / QuickForm.php
1 <?php
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.                                           |
8 // |                                                                    |
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.                    |
13 // |                                                                    |
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.                           |
18 // |                                                                    |
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 // +--------------------------------------------------------------------+
26 //
27 // $Id$
28 //
29
30 require_once 'HTML/QuickForm.php';
31
32 /**
33  * QuickForm de uso general del MECON.
34  */
35 class MECON_HTML_QuickForm extends HTML_QuickForm {
36     function MECON_HTML_QuickForm($formName='', $method='post', $action='', $target='_self', $attributes=null)
37     {
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');
42     }
43     function addRule($element, $message, $type, $format='', $validation='client', $reset = false, $force = false)
44     {
45         parent::addRule($element, $message, $type, $format, $validation, $reset, $force);
46     }
47     function addGroupRule($group, $arg1, $type='', $format='', $howmany=0, $validation = 'client')
48     {
49         parent::addGroupRule($group, $arg1, $type, $format, $howmany, $validation);
50     }
51 }
52
53 ?>