$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');
}
//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();
}
}
$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)) {