-$SAMURAI_PERM->chequear(SAMURAI_ALTA_PERFIL,SAMURAI_BAJA_PERFIL,SAMURAI_MODI_PERFIL, SAMURAI_DEVELOPER);
+$SAMURAI_PERM->chequear(SAMURAI_PERM_PERFIL_ALTA,SAMURAI_PERM_PERFIL_BAJA,SAMURAI_PERM_PERFIL_MODIF, SAMURAI_PERM_DEVELOPER);
$FORM->addElement ('hidden', 'desc_ant' , $descripcion);
$FORM->addElement ('static', 'desc_perfil', 'Descripcion', $descripcion);
$FORM->addElement ('select', 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'true'));
$FORM->addElement ('hidden', 'desc_ant' , $descripcion);
$FORM->addElement ('static', 'desc_perfil', 'Descripcion', $descripcion);
$FORM->addElement ('select', 'permisos' , 'Permisos' , $PERMISOS, array('size' => '5', 'multiple' => 'true'));
- if ($SAMURAI_PERM->tiene(SAMURAI_TIPO_PERFIL)) {
- $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');
$group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location=\'perfiles\';return false;'));
$FORM->addElement ('hidden', 'responsable', $responsable);
$group[] = HTML_QuickForm::createElement('submit', 'aceptar' , 'Grabar');
$group[] = HTML_QuickForm::createElement('submit', 'cancelar', 'Cancelar', array ('onClick' => 'javascript:window.location=\'perfiles\';return false;'));
$id_perfil =& $FORM->getElement ('id_perfil' );
$desc_perfil =& $FORM->getElement ('desc_perfil');
$permisos =& $FORM->getElement ('permisos' );
$id_perfil =& $FORM->getElement ('id_perfil' );
$desc_perfil =& $FORM->getElement ('desc_perfil');
$permisos =& $FORM->getElement ('permisos' );
$responsable =& $FORM->getElement ('responsable');
$group =& $FORM->getElement ('botones' );
$group =& $group->getElements('aceptar' );
$responsable =& $FORM->getElement ('responsable');
$group =& $FORM->getElement ('botones' );
$group =& $group->getElements('aceptar' );
$id_perfil =& $FORM->getElement ('id_perfil' );
$desc_perfil =& $FORM->getElement ('desc_perfil');
$permisos =& $FORM->getElement ('permisos' );
$id_perfil =& $FORM->getElement ('id_perfil' );
$desc_perfil =& $FORM->getElement ('desc_perfil');
$permisos =& $FORM->getElement ('permisos' );
$responsable =& $FORM->getElement ('responsable');
$group =& $FORM->getElement ('botones' );
$group =& $group->getElements('aceptar' );
$responsable =& $FORM->getElement ('responsable');
$group =& $FORM->getElement ('botones' );
$group =& $group->getElements('aceptar' );
$PERFIL->setResponsable($responsable->getValue());
$PERFIL->setPermisos ($permisos->getSelected()); //Le asigno al perfil los permisos seleccionados
$PERFIL->setResponsable($responsable->getValue());
$PERFIL->setPermisos ($permisos->getSelected()); //Le asigno al perfil los permisos seleccionados