X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/22d1ae1aa6bfee6df20dfa9544e14feaecc9fbf4..0b3baffebc472d0116c7259abb3d64abf64674ae:/sistema/www/perfiles/perfiles-abm.php diff --git a/sistema/www/perfiles/perfiles-abm.php b/sistema/www/perfiles/perfiles-abm.php index cf7fb66..42dcacb 100644 --- a/sistema/www/perfiles/perfiles-abm.php +++ b/sistema/www/perfiles/perfiles-abm.php @@ -23,6 +23,7 @@ // REQUIRE_ONCE {{{ require_once 'MECON/HTML/QuickForm.php'; require_once 'MECON/HTML/Tabla.php'; + require_once 'MECON/HTML/Error.php'; require_once 'SAMURAI/Perfil.php'; require_once 'SAMURAI/Permiso.php'; require_once 'SAMURAI/Sistema.php'; @@ -140,9 +141,7 @@ $res = $PERFIL->guardarDatos($aceptar->getValue()); if (PEAR::isError($res)) { - $TABLA = new Tabla ('cellspacing=0'); - $row = array (''.$res->getMessage().''); - $TABLA->addRow($row,'align=left'); + $ERROR = new MECON_HTML_Error($res->getMessage()); if ($aceptar->getValue() == 'Eliminar') { $FORM->freeze(); } @@ -162,8 +161,8 @@ $MARCO = new Marco ('../../conf/confSecciones.php'); $MARCO->addTitle('ABM Perfil'); $MARCO->addBody($TABLA3); - if (isset($TABLA)) { - $MARCO->addBody($TABLA); + if (isset($ERROR)) { + $MARCO->addBody($ERROR); } $MARCO->addBody($FORM); $MARCO->display();