Exemple #1
0
<?php

session_start();
if (!array_key_exists("usuario", $_SESSION)) {
    header("location: ../vis/visSalir.php");
}
require_once "../clases/claBautismo.php";
require_once "../clases/claPersonas.php";
require_once "../clases/claPadrinos.php";
require_once "../clases/clsFuncionesGlobales.php";
$loFuncion = new clsFunciones();
$loPadrinos = new claPadrinos();
$loBautismo = new claBautismo();
$loPersona = new claPersonas();
$loBautismo->asReferenciaInfante = $_POST["RefInfanteBuscar"];
$lsOperacion = $_POST["txtOperacion"];
$paramGive = $_POST["lsRepresentados"];
$paramTive = $_POST["lsRepresenNumeros"];
$lsDatosRepre = $loFuncion->DameCIyNaci($_POST["f_cedulaRepre"]);
$lsNacionalidadRepre = $lsDatosRepre["0"];
$lsCedulaRepre = $lsDatosRepre["1"];
$lsDatosMama = $loFuncion->DameCIyNaci($_POST["f_cedulamama"]);
$lsNacionalidadMama = $lsDatosMama["0"];
$lsCeduMama = $lsDatosMama["1"];
$lsDatosPapa = $loFuncion->DameCIyNaci($_POST["f_cedulapapa"]);
$lsNacionalidadPapa = $lsDatosPapa["0"];
$lsCedulaPapa = $lsDatosPapa["1"];
$lsRepreCanti = $_POST["lsRepresenCanti"];
$lsNombreRepre = $_POST["lsNombreRepre"];
$lsApellidoRepre = $_POST["lsApellidoRepre"];
$lsProxEscolarMama = $_POST["lsProxEscolarMama"];
Exemple #2
0
                        break;
                    case "1":
                        $estadoIMG = "img/info_bautizado.png";
                        break;
                }
                $this->SetFont('Arial', '', 8);
                $this->Cell($w[0], 7, $this->CompletaCaracteres($data[$z]['ReferenciaInfante']), 1, 0, 'C');
                $this->Cell($w[1], 7, $loFuncion->fDameFechaEscrita(substr($data[$z]['FechaBautizo'], 0, 10)), 1, 0, 'C');
                $this->Cell($w[3], 7, $this->CompletaCaracteres($data[$z]['NombresBau'] . " " . $data[$z]['ApellidosBau']), 1, 0, 'C');
                $this->Cell($w[4], 7, $this->CompletaCaracteres($data[$z]['SexoBauDescrip']), 1, 0, 'C');
                $this->Cell($w[2], 7, $this->CompletaCaracteres($data[$z]['NombreFullRepre']), 1, 0, 'C');
                $da = $this->getY();
                $this->Cell($w[5], 7, $this->Image($estadoIMG, 171.3, $da + 0.6, 0, 0, '', '../bautismo.php?bautiRef=' . $data[$z]['ReferenciaInfante']), 1, 0, 'C');
                $this->Ln(7);
            }
        }
        $this->Ln(10);
        $this->SetFont('Arial', 'I', 8);
        $this->setX(20);
        $this->Cell(40, 10, 'Usuario: ' . $_SESSION["nombreUsuario"] . " (" . $_SESSION["rolNombre"] . ")", 0, 0, 'L');
    }
}
$objC = new claBautismo();
$objC->asFechaInicioR = $_POST["f_Inicio"];
$objC->asFechaFinR = $_POST["f_Fin"];
$arregloCl = $objC->faListarBautizos();
$header = array('Ref', ' Fecha Bautizo', ' Infante', 'Sexo', 'Representante', 'Estado');
$pdf = new PDF();
$pdf->AddPage();
$pdf->BasicTable($header, $arregloCl);
$pdf->Output();
        $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres($Bauti->asNumero_registro, 12)), 0, 0, 'L');
        $this->ln();
        $this->ln();
        $this->Cell(15);
        $this->MultiCell(38, 5, utf8_decode($this->CompletaCaracteres($Bauti->asNotaMarginal, 135)), 0, 'L');
        $this->SetY(174);
        $this->Cell(15);
        $this->MultiCell(37, 5, utf8_decode($this->CompletaCaracteres($Bauti->asPrefectuDe, 30)), 0, 'L');
        $this->SetY(194);
        $this->Cell(15);
        $this->Cell(10, 5, utf8_decode($loFuncion->fDameFechaEscrita($Bauti->asPresentadoEl)), 0, 0, 'L');
        $this->SetY(204);
        $this->Cell(15);
        $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres($Bauti->asNumPartidaNac, 19)), 0, 0, 'L');
        $this->ln();
    }
}
$loPadrinos = new claPadrinos();
$objC = new claBautismo();
$objC->asReferenciaInfante = $_GET["ReFinfante"];
$objC->fbBuscarBauti();
if ($objC->asEstatusBau == 1) {
    $header = array('Ref', ' Fecha Bautizo', ' Infante', 'Sexo', 'Representante', 'Estado');
    $pdf = new PDF();
    $pdf->AddPage();
    $pdf->BasicTable($header, $objC, $loPadrinos);
    $pdf->Output();
} else {
    $_SESSION["message"] = "No se pudo imprimir el Certificado.";
    header("location: ../../index.php");
}