public function showDetailsJuridico($denuncia, $empresa, $representante) { $res = dameDirecciones(1); $denunciad = new DenunciaJuridicaDAO(); $motivos = $denunciad->getMotivos($denuncia); //datos del denunciado /* $cedper = $denuncia->__GET('id_denunciado'); $nomper = $denuncia->__GET('nombre_denunciado'); $apeper = $denuncia->__GET('apellido_denunciado'); //$telden = $denuncia->__GET('telefono_habitacion'); //$dirper = $persona->__GET('direccionCiudadano'); //datos del denunciado */ //datos de la empresa $numpat = $empresa->__GET('id_fisc_empresa'); $rifemp = $empresa->__GET('rif_fisc_empresa'); $nomemp = $empresa->__GET('nombre_fisc_empresa'); $diremp = $empresa->__GET('direccion_fisc_empresa'); $telemp = $empresa->__GET('telefono_fisc_empresa'); $mailemp = $empresa->__GET('email_fisc_empresa'); $refemp = $empresa->__GET('punto_ref_fisc_empresa'); //datos de la empresa //datos de representante empresa $cedrep = $representante->__GET('clv_representante'); $nomrep = $representante->__GET('str_nombres'); $aperep = $representante->__GET('str_apellidos'); $telrep = $representante->__GET('str_telefono1'); $tel2rep = $representante->__GET('str_telefono2'); $mailrep = $representante->__GET('str_email'); //datos de representante empresa //datos de la denuncia $id_den = $denuncia->__GET('id_denuncia'); $fecden = $denuncia->__GET('fecha_denuncia'); $stsden = $denuncia->__GET('estatus_denuncia'); $stsdenuncia = $stsden; $stsden = $this->sts_denuncia[$stsden]['DESCRIPCION']; $desden = $denuncia->__GET('descripcion_denuncia'); $resp = $denuncia->__GET('responsable_denuncia'); $resden = dameresponsable($resp)[0]['NOMBRE']; $creado = $denuncia->__GET('creador'); $asignada = $denuncia->__GET('asignada'); $denuncia->__SET('motivo_denuncia', $motivos); //$fecha_cierre = $denuncia->__GET('fecha_cierre'); //$cerrada = 1; if ($asignada == 1) { $direcciones = dameDireccionesAsignacionQueja($id_den); //var_dump($direcciones); exit(); $asignadopor = $denuncia->__GET('asignadopor'); } if ($stsdenuncia == 2) { $fecha_cierre_queja = $denuncia->__GET('fecha_cierre'); $descripcion_estatus_queja = $denuncia->__GET('descripcion_estatus'); $cerrada = 1; //var_dump($fecha_cierre_queja,$cerrada); exit(); $cerradopor = $denuncia->__GET('cerradopor'); } //datos de la denuncia require 'view_denuncia_juridica_details.php'; require 'bottomView.tpl.php'; }
$estatus = $denuncia->__GET('estatus_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); $nombre_empresa = $empresa->__GET('nombre_fisc_empresa'); $id_reprersentante = $empresa->__GET('id_representante'); $modelo_representante = new RepresentanteDAO(); $representante_empressa = $modelo_representante->queryByIC($id_reprersentante); $clv_representante = $representante_empressa->__GET('clv_representante'); $representante = $representante_empressa->__GET('str_nombres') . " " . $representante_empressa->__GET('str_apellidos'); //$denunciante = $ciudadano->__GET('apellidos'). " ".$ciudadano->__GET('nombres'); //$cedula_denunciante = $ciudadano->__GET('id_ciudadano'); $motivos = $modelo_denuncia->getMotivos($denuncia); $fecha_denuncia = $denuncia->__GET('fecha_denuncia'); $funcionario = $_SESSION['USUARIO']['codigo_usuario']; $id_estado = $_SESSION['USUARIO']['estado']; $estado = dameEstadoById($id_estado); $direccion = $estado[0]['NOMBRE_ESTADO']; $pdf = new FPDF('P'); $pdf->AddPage(); $pdf->Image('../../public_html/imagenes/logoclaro.png', 40, 60, 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'));