; Configuración de la base de datos. ; $Id$ obtener_datos_perfil = " SELECT p.id_perfil, p.desc_perfil, p.responsable FROM samurai.perfil as p " obtener_datos_perfil2 = " WHERE p.id_perfil = ? " obtener_datos_perfil3 = " WHERE p.desc_perfil = ?" obtener_id_perfiles = " SELECT ps.id_perfil FROM samurai.perfil_sist as ps, samurai.perfil as p WHERE ps.id_perfil = p.id_perfil " obtener_id_perfiles3 = " AND ps.id_sistema = ? " obtener_id_perfiles2 = " AND p.desc_perfil like '%##FILTRO##%'" borrar_perfil = " DELETE FROM samurai.perfil as p " obtener_permisos = " SELECT id_permiso, observaciones FROM samurai.perm_perfil_sist WHERE id_perfil = ? AND id_sistema = ?" borrar_permisos = " DELETE FROM samurai.perm_perfil_sist WHERE id_perfil = ? AND id_sistema = ?" borrar_perfil_sist = " DELETE FROM samurai.perfil_sist WHERE id_perfil = ? AND id_sistema = ?" borrar_perfil = " DELETE FROM samurai.perfil WHERE id_perfil = ?" ;VERIFICACIONES verificar_asociacion = " SELECT ps.id_perfil, ps.tipo_perfil FROM samurai.perfil_sist as ps WHERE ps.id_perfil = ? AND ps.id_sistema = ?" verif_perfil_sist_usuario = "SELECT IF(0,0,count(*)) as cuenta FROM samurai.perfil_sist_usuario WHERE id_perfil = ? AND id_sistema = ? " verif_perfil_sist = "SELECT IF(0,0,count(*)) as cuenta FROM samurai.perfil_sist WHERE id_perfil = ? " verif_perm_perfil_sist = "SELECT id_sistema, id_perfil, id_permiso, observaciones FROM samurai.perm_perfil_sist WHERE id_sistema = ? ORDER BY id_perfil"