X-Git-Url: https://git.llucax.com/mecon/meconlib.git/blobdiff_plain/15c32314cf6a6eadf7d2d24ff2827c3db9bd8950..06cd54ffd3f4a2641a10db316fb08d42c3b8b5ea:/lib/MECON/HTML/QuickFormSimple.php?ds=sidebyside diff --git a/lib/MECON/HTML/QuickFormSimple.php b/lib/MECON/HTML/QuickFormSimple.php index fb94486..b3e2427 100644 --- a/lib/MECON/HTML/QuickFormSimple.php +++ b/lib/MECON/HTML/QuickFormSimple.php @@ -34,8 +34,9 @@ class MECON_HTML_QuickFormSimple extends HTML_QuickForm { function MECON_HTML_QuickFormSimple($formName='', $method='post', $action='', $target='_self', $attributes=null) { parent::HTML_QuickForm($formName, $method, $action, $target, $attributes); - $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'HTML_QuickForm_mdate'); - $this->registerRule('fecha', 'function', 'validate', 'HTML_QuickForm_mdate'); + $this->registerElementType('mdate', 'MECON/HTML/QuickForm/mdate.php', 'MECON_HTML_QuickForm_mdate'); + $this->registerRule('fecha', 'function', 'validate', 'MECON_HTML_QuickForm_mdate'); + $this->registerElementType('caritas', 'MECON/HTML/QuickForm/caritas.php', 'MECON_HTML_QuickForm_caritas'); $this->setRequiredNote('* indica un campo obligatorio'); $this->setJsWarnings('Hay errores en el formulario:', 'Por favor corríjalos antes de continuar.'); } @@ -65,7 +66,7 @@ class MECON_HTML_QuickFormSimple extends HTML_QuickForm { * @access public */ function getBegin() { - $attrs = $this->getAttributesString(); + $attrs = $this->getAttributes(true); return ""; } @@ -81,4 +82,4 @@ class MECON_HTML_QuickFormSimple extends HTML_QuickForm { } -?> \ No newline at end of file +?>