Ejemplo n.º 1
0
     $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 = new DenunciaJuridica();
         $modelo = new DenunciaJuridicaDAO();
         $id = $_POST['id'];
         $denuncia = $modelo->getByID($id);
         $modelo_empresa = new FiscEmpresaDAO();
         $empresa = $modelo_empresa->queryByFisc($denuncia->__GET('fisc_empresa'));
         $modelo_representante = new RepresentanteDAO();
         $representante = $modelo_representante->queryByIC($empresa->__GET('id_representante'));
         $detalles = new Visualizer();
         $detalles->showDetailsJuridico($denuncia, $empresa, $representante);
     } else {
         if ($op == "registrar") {
             //Datos del ciudadano
             $ciudadano = new FiscCiudadano();
             $idc = $_POST['idc'];
             $nombres = htmlentities($_POST['nombre']);
             $apellidos = htmlentities($_POST['apellido']);
             $estado = htmlentities($_POST['estado']);
             $municipio = htmlentities($_POST['municipio']);
             $parroquia = htmlentities($_POST['localidad']);
             $calle = htmlentities($_POST['calleper']);
             $edificio = htmlentities($_POST['edifper']);
include '../mod_ciudadanos/Models/class_fisc_ciudadanoDAO.php';
include '../mod_empresas/Models/class_fisc_empresa.php';
include '../mod_empresas/Models/class_fisc_empresaDAO.php';
$id_denuncia = $_GET['id_denuncia'];
$modelo_denuncia = new DenunciaJuridicaDAO();
$denuncia = $modelo_denuncia->getByID($id_denuncia);
$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);