X-Git-Url: https://git.llucax.com/mecon/samurai.git/blobdiff_plain/22d1ae1aa6bfee6df20dfa9544e14feaecc9fbf4..2a767add127bcb217dcc2ce2ca242f703b5022a0:/sistema/www/sistemas/sistemas-abm.php diff --git a/sistema/www/sistemas/sistemas-abm.php b/sistema/www/sistemas/sistemas-abm.php index 6b46103..1110161 100644 --- a/sistema/www/sistemas/sistemas-abm.php +++ b/sistema/www/sistemas/sistemas-abm.php @@ -48,8 +48,8 @@ $FORM->addElement ('textarea', 'contacto' , 'Contacto' , array('rows' => '2','cols'=>'50')); $FORM->addElement ('select' , 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'multiple')); $FORM->addElement ('hidden' , 'responsable' , $_SESSION['samurai']['login']); - $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar'); - $group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar'); + $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar', array ('onClick' => 'javascript:if (confirm(\'¿Esta Seguro?\')) return true;return false;')); + $group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location = ->\'sistemas\';return false;')); $FORM->addGroup($group,'botones'); // }}} //AGREGO LAS REGLAS DE VALIDACION DE LOS ELEMENTOS {{{