//CREO LOS OBJETO NECESARIOS {{{
$FORM = new MECON_HTML_QuickForm ('permisos_abm','post','permisos-abm');
// }}}
//CREO LOS OBJETO NECESARIOS {{{
$FORM = new MECON_HTML_QuickForm ('permisos_abm','post','permisos-abm');
// }}}
$FORM->addElement ('text' , 'desc_permiso', 'Descripcion', array('size'=>'50'));
$FORM->addElement ('static', 'responsable' , 'Responsable', $_SESSION['samurai']['login']);
$group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar');
$FORM->addElement ('text' , 'desc_permiso', 'Descripcion', array('size'=>'50'));
$FORM->addElement ('static', 'responsable' , 'Responsable', $_SESSION['samurai']['login']);
$group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar');
$FORM->addGroup($group,'botones');
// }}}
//AGREGO LAS REGLAS DE VALIDACION DE LOS ELEMENTOS {{{
$FORM->addGroup($group,'botones');
// }}}
//AGREGO LAS REGLAS DE VALIDACION DE LOS ELEMENTOS {{{
$desc_permiso =& $FORM->getElement ('desc_permiso');
$responsable =& $FORM->getElement ('responsable' );
$group =& $FORM->getElement ('botones' );
$desc_permiso =& $FORM->getElement ('desc_permiso');
$responsable =& $FORM->getElement ('responsable' );
$group =& $FORM->getElement ('botones' );
- $TABLA = new Tabla ('cellspacing=0');
- $row = array ('<font color="red"><b>'.$res->getMessage().'</b></font>');
- $TABLA->addRow($row,'align=left');
+ $ERROR = new MECON_HTML_Error($res->getMessage());