X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/2a767add127bcb217dcc2ce2ca242f703b5022a0..1ecc9798cbde319c7c4168c14f613670accb9982:/sistema/www/perfiles/perfiles-abm.php?ds=inline diff --git a/sistema/www/perfiles/perfiles-abm.php b/sistema/www/perfiles/perfiles-abm.php index 6624d61..17534e2 100644 --- a/sistema/www/perfiles/perfiles-abm.php +++ b/sistema/www/perfiles/perfiles-abm.php @@ -78,7 +78,7 @@ $FORM->addElement ('select', 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'true')); $FORM->addElement ('select', 'tipo_perfil', 'Tipo Perfil', array('E' => 'Externo', 'I' => 'Interno', 'D' => 'Dios'), array ('size' => '1')); $FORM->addElement ('hidden', 'responsable', $responsable); - $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar', array ('onClick' => 'javascript:if(confirm(\'¿Esta Seguro?\')) return true; return false;')); + $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar'); $group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location=\'perfiles\';return false;')); $FORM->addGroup($group,'botones'); } @@ -114,6 +114,7 @@ //ELIMINACION -> modifico el valor del boton if ($_GET['accion'] == 'e') { $aceptar->setValue('Eliminar'); + $aceptar->updateAttributes(array ('onClick' => 'javascript:if (confirm(\'¿Esta Seguro?\')) return true;return false;')); $FORM->freeze(); } } @@ -164,7 +165,6 @@ $TABLA3 = new Tabla ('cellspacing=0'); $TABLA3->addRow($row,'align=left'); - $MARCO = new Marco ('../../conf/confSecciones.php'); $MARCO->addTitle('ABM Perfil'); $MARCO->addBody($TABLA3); if (isset($ERROR)) {