$SISTEMA = new SAMURAI_Sistema ($DB, $_SESSION['samurai']['id_sistema']);
$PERFIL = new SAMURAI_Perfil ($DB, $id_perfil,
$_SESSION['samurai']['id_sistema']);
$SISTEMA = new SAMURAI_Sistema ($DB, $_SESSION['samurai']['id_sistema']);
$PERFIL = new SAMURAI_Perfil ($DB, $id_perfil,
$_SESSION['samurai']['id_sistema']);
$FORM->addElement ('static', 'desc_perfil', 'Descripción', $descripcion);
$FORM->addElement ('select', 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'true'));
$FORM->addElement ('hidden', 'responsable', $responsable);
$FORM->addElement ('static', 'desc_perfil', 'Descripción', $descripcion);
$FORM->addElement ('select', 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'true'));
$FORM->addElement ('hidden', 'responsable', $responsable);
- $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar');
+ $FORM->addElement ('hidden', 'accion', $accion);
+ $group[] = HTML_QuickForm::createElement('submit', 'aceptar' , $b_accion);
$group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location=\'perfiles\';return false;'));
$FORM->addGroup($group,'botones');
}
$group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location=\'perfiles\';return false;'));
$FORM->addGroup($group,'botones');
}