} else { $mensaje = new Visualizer("DEN", "ERR"); $mensaje->showMensaje(); } } else { if ($op == "details") { $ciudadano = new FiscCiudadano(); $ciudadanod = new FiscCiudadanoDAO(); $denuncia = new Denuncia(); $denunciad = new DenunciaDAO(); $modelo_empresa = new FiscEmpresaDAO(); $modelo_apoderado = new ApoderadoDAO(); $id = $_POST['id']; $denuncia = $denunciad->getByID($id); //var_dump($denuncia); exit(); $motivos = $denunciad->getMotivos($denuncia); $documentos = $denunciad->getDocumentos($denuncia); $denuncia->__SET('motivo_denuncia', $motivos); $denuncia->__SET('documentos', $documentos); $ciudadano = $ciudadanod->getById($denuncia->__GET('id_ciudadano')); $id_empresa = $denuncia->__GET('id_empresa'); $fisc_empresa = $denuncia->__GET('fisc_empresa'); $empresa = $modelo_empresa->queryByFisc($fisc_empresa); $id_apoderado = $denuncia->__GET('apoderado'); $apoderado = $modelo_apoderado->queryByIC($id_apoderado); $detalles = new Visualizer(); $detalles->showDetails($ciudadano, $empresa, $denuncia, $apoderado); } else { if ($op == "details_juridicos") { include "../Models/class_denuncia_juridica.php"; include "../Models/class_denuncia_juridica_dao.php";
$denuncia = $modelo1->getByID($id_denuncia); $estatus = $denuncia->__GET('estatus_denuncia'); $fecha = $denuncia->__GET('fecha_denuncia'); $descripcion_estatus = $denuncia->__GET('descripcion_estatus'); $modelo_ciudadano = new FiscCiudadanoDAO(); $ciudadano = $modelo_ciudadano->getById($denuncia->__GET('id_ciudadano')); $modelo_empresa = new FiscEmpresaDAO(); $id_empresa = $denuncia->__GET('id_empresa'); $empresa = $modelo_empresa->queryByPatrono($id_empresa); $funcionario = $_SESSION['USUARIO']['codigo_usuario']; $id_estado = $_SESSION['USUARIO']['estado']; $estado = dameEstadoById($id_estado); $direccion = $estado[0]['NOMBRE_ESTADO']; $denunciante = $ciudadano->__GET('apellidos') . " " . $ciudadano->__GET('nombres'); $cedula_denunciante = $ciudadano->__GET('id_ciudadano'); $motivos = $modelo1->getMotivos($denuncia); $nombre_empresa = $empresa->__GET('nombre_fisc_empresa'); //echo $descripcion_estatus; //$DescripDenuncia = $descripcion_estatus; //$motivo = ($denuncia->__GET('motivo_denuncia')); //$motivo_denuncia = $motivos[$motivo]['DESCRIPCION']; $pdf = new FPDF('P'); $pdf->AddPage(); $pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 50, 120); $pdf->SetTitle("Notificación al denunciante", true); $pdf->Image('../../public_html/imagenes/logoivss.png', 20, 7, 13); $pdf->SetFont('Arial', '', 6); $pdf->Text(40, 10, utf8_decode('REPÚBLICA BOLIVARIANA DE VENEZUELA')); $pdf->Text(40, 13, utf8_decode('MINISTERIO DEL PODER POPULAR PARA EL PROCESO SOCIAL DE TRABAJO')); $pdf->Text(40, 16, utf8_decode('INSTITUTO VENEZOLANO DE LOS SEGUROS SOCIALES')); $pdf->Text(40, 19, utf8_decode('DIRECCIÓN GENERAL DE FISCALIZACIÓN'));