<?php session_start(); if (!array_key_exists("usuario", $_SESSION)) { header("location: visSalir.php"); } if (empty($_GET["RPrefMatri"]) && !isset($_GET["RPrefMatri"])) { $_SESSION["message"] = "No se pudo mostrar el reporte"; header("location: ../../index.php"); } require_once "../../clases/claMatrimonio.php"; require_once "../../clases/clsFuncionesGlobales.php"; $loMatrimo = new claMatrimonio(); $loFuncion = new clsFunciones(); $loMatrimo->fpSetRefMatrimonio($_GET["RPrefMatri"]); $lbEnc = $loMatrimo->fbBuscarMatrimonio($varMoF, "uno"); if ($lbEnc and $varMoF != 4) { $laMatrizPadres = $loMatrimo->fsGetDatosPadres(); if ($laMatrizPadres[0]["Nombres"] == "" || $laMatrizPadres[1]["Nombres"] == "" || $laMatrizPadres[2]["Nombres"] == "" || $laMatrizPadres[3]["Nombres"] == "") { $_SESSION["message"] = "No se pudo mostrar el reporte, debe registrar los padres de la novia y de el novio."; header("location: ../../index.php"); } $lsIDmatrimonio = $loMatrimo->fpGetIDTmatrimonio(); $lsFechaInscri = $loMatrimo->fpGetFechaInscri(); $lsFechaHoraMatrimonio = $loMatrimo->fsGetFechaMatrimonio(); $lsFechaMatrimonio = $loFuncion->fDameFechaEscrita(substr($lsFechaHoraMatrimonio, 0, 10)); $lsIDsacerdote = $loMatrimo->fsGetIDsacerdote(); $lsNacionovia = $loMatrimo->fsGetNacionovia(); $lscedunovia = $loMatrimo->fsGetCInovia(); $lsNombreNovia = $loMatrimo->fsGetNombnovia(); $lsEstadonovia = $loMatrimo->fsGetEstadonovia();
$this->Cell(10, 5, utf8_decode($this->CompletaCaracteres($Matrimo->fsGetNombnovio(), 40)), 0, 0, 'C'); $this->SetY(184); $this->Cell(92); $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres('ACARIGUA, VENEZUELA', 40)), 0, 0, 'C'); $this->SetY(199); $this->Cell(92); $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres('LA IGLESIA SAN ROQUE', 40)), 0, 0, 'C'); $this->SetY(213); $this->Cell(92); $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres($Matrimo->fsGetNombSacerdote(), 40)), 0, 0, 'C'); $this->SetY(234); $this->Cell(62); $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres($laMatrizPadri[0]["Nombres"] . ' ' . $laMatrizPadri[0]["Apellidos"], 40)), 0, 0, 'C'); $this->Cell(50); $this->Cell(10, 5, utf8_decode($this->CompletaCaracteres($laMatrizPadri[1]["Nombres"] . ' ' . $laMatrizPadri[1]["Apellidos"], 40)), 0, 0, 'C'); } } $loPadrinos = new claPadrinos(); $objC = new claMatrimonio(); $objC->fpSetRefMatrimonio($_GET["ReFmatrimonio"]); $objC->fbBuscarMatrimonio(1, "uno"); if ($objC->fsGetEstadoMatrimonio() == 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"); }