Exemplo n.º 1
0
<?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();
Exemplo n.º 2
0
                    case "2":
                        $estadoIMG = "img/info_suspendido.png";
                        break;
                    case "3":
                        $estadoIMG = "img/info_anulado.png";
                        break;
                }
                $this->SetFont('Arial', '', 8);
                $this->Cell($w[0], 7, $this->CompletaCaracteres($data[$z]['ReferenciaMatrimonio']), 1, 0, 'C');
                $this->Cell($w[1], 7, $loFuncion->fDameFechaEscrita(substr($data[$z]['FechaMatrimonio'], 0, 10)), 1, 0, 'C');
                $this->Cell($w[2], 7, $this->CompletaCaracteres($data[$z]['Nombnovia'] . " " . $data[$z]['Apellnovia']), 1, 0, 'C');
                $this->Cell($w[3], 7, $this->CompletaCaracteres($data[$z]['Nombnovio'] . " " . $data[$z]['Apellnovio']), 1, 0, 'C');
                $this->Cell($w[4], 7, $this->CompletaCaracteres($data[$z]['Motivo']), 1, 0, 'C');
                $da = $this->getY();
                $this->Cell($w[5], 7, $this->Image($estadoIMG, 171.3, $da + 0.6, 0, 0, '', '../matrimonio.php?matriRef=' . $data[$z]['ReferenciaMatrimonio']), 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 claMatrimonio();
$arregloCl = $objC->faListarMatrimonios();
$header = array('Ref', ' Fecha', ' Novia', 'Novio', 'Motivo', 'Estado');
$pdf = new PDF();
$pdf->AddPage();
$pdf->BasicTable($header, $arregloCl);
$pdf->Output();
Exemplo n.º 3
0
<?php

session_start();
if (!array_key_exists("usuario", $_SESSION)) {
    header("location: visSalir.php");
}
require_once "../clases/claMatrimonio.php";
require_once "../clases/claPersonas.php";
require_once "../clases/claPadrinos.php";
$loMatrimo = new claMatrimonio();
$loPersonas = new claPersonas();
$loPadrinos = new claPadrinos();
$loMatrimo->fpSetCInovia($_POST["f_cedunovia"]);
$loMatrimo->fpSetCInovio($_POST["f_cedunovio"]);
$lsCednovia = "";
$lsCednovio = "";
$lsFila = $_POST["txtFila"];
$varMoF = 4;
if (!empty($_POST["f_cedunovia"]) and empty($_POST["f_cedunovio"])) {
    $loPersonas->fpSetCedula($_POST["f_cedunovia"]);
    $varMoF = 0;
} elseif (empty($_POST["f_cedunovia"]) and !empty($_POST["f_cedunovio"])) {
    $loPersonas->fpSetCedula($_POST["f_cedunovio"]);
    $varMoF = 1;
} elseif (!empty($_POST["f_cedunovia"]) and !empty($_POST["f_cedunovio"])) {
    $loPersonas->fpSetCedula($_POST["f_cedunovio"]);
    $varMoF = 2;
} else {
    $varMoF = 4;
}
$lsOperacion = $_POST["txtOperacion"];
Exemplo n.º 4
0
    function BasicTable($header, $data)
    {
        $loMatrimo = new claMatrimonio();
        $loFuncion = new clsFunciones();
        $lscedunovia = $_GET["RPNovia"];
        $lscedunovio = $_GET["RPNovio"];
        $varMoF = 4;
        if (!empty($lscedunovia) and !empty($lscedunovio)) {
            $loMatrimo->fpSetCInovia($lscedunovia);
            $varMoF = 0;
        } elseif (empty($lscedunovia) and !empty($lscedunovio)) {
            $loMatrimo->fpSetCInovio($lscedunovio);
            $varMoF = 1;
        } elseif (!empty($lscedunovia) and empty($lscedunovio)) {
            $loMatrimo->fpSetCInovia($lscedunovia);
            $varMoF = 0;
        }
        $lbEnc = $loMatrimo->fbBuscarMatrimonio($varMoF);
        if ($lbEnc and $varMoF != 4) {
            $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();
            $lsCiudadnovia = $loMatrimo->fsGetCiudadnovia();
            $lsMunicipionovia = $loMatrimo->fsGetMunicipionovia();
            $lsParroquianovia = $loMatrimo->fsGetParroquianovia();
            $lsEstadonovio = $loMatrimo->fsGetEstadonovio();
            $lsCiudadnovio = $loMatrimo->fsGetCiudadnovio();
            $lsMunicipionovio = $loMatrimo->fsGetMunicipionovio();
            $lsParroquianovio = $loMatrimo->fsGetParroquianovio();
            $lsNacionovio = $loMatrimo->fsGetNacionovio();
            $lscedunovio = $loMatrimo->fsGetCInovio();
            $lsNombreNovio = $loMatrimo->fsGetNombnovio();
            $lsFechaHoraProclamaUno = $loMatrimo->fsGetFechaProclamaUno();
            $lsFechaHoraProclamaDos = $loMatrimo->fsGetFechaProclamaDos();
            $lsFechaHoraProclamaTres = $loMatrimo->fsGetFechaProclamaTres();
            $lsFechaProclamaUno = $loFuncion->fDameFechaEscrita(substr($lsFechaHoraProclamaUno, 0, 10));
            $lsFechaProclamaDos = $loFuncion->fDameFechaEscrita(substr($lsFechaHoraProclamaDos, 0, 10));
            $lsFechaProclamaTres = $loFuncion->fDameFechaEscrita(substr($lsFechaHoraProclamaTres, 0, 10));
            $lsHoraProclamaUno = $loFuncion->fDameHoraEstandar(substr($lsFechaHoraProclamaUno, 11, 8));
            $lsHoraProclamaDos = $loFuncion->fDameHoraEstandar(substr($lsFechaHoraProclamaDos, 11, 8));
            $lsHoraProclamaTres = $loFuncion->fDameHoraEstandar(substr($lsFechaHoraProclamaTres, 11, 8));
            $lsEstadoMatrimonio = $loMatrimo->fsGetEstadoMatrimonio();
            $laMatrizPadres = $loMatrimo->fsGetDatosPadres();
            $lsFechanaciNovia = $loMatrimo->fsGetFechaNaciNovia();
            $lsFechanaciNovio = $loMatrimo->fsGetFechaNaciNovio();
            $lsEdadNovio = $loFuncion->fDameEdad($lsFechanaciNovia);
            $lsEdadNovia = $loFuncion->fDameEdad($lsFechanaciNovio);
        } else {
            $_SESSION["message"] = "No se encontro ningun matrimonio";
            header("location: ../../index.php");
        }
        $this->SetFont('Arial', 'B', 10);
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(80, 10, utf8_decode($lsNombreNovio), 0, 0, 'L');
        $this->SetFont('Arial', '', 10);
        $this->Cell(30, 10, utf8_decode('de'), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($lsEdadNovio), 0, 0, 'L');
        $this->SetFont('Arial', '', 10);
        $this->Cell(30, 10, utf8_decode(' años de edad '), 0, 0, 'L');
        $this->Ln(10);
        $this->SetFont('Arial', '', 10);
        $this->Cell(80, 10, utf8_decode(' hijo de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($laMatrizPadres[3]["Nombres"]), 0, 0, 'L');
        $this->SetFont('Arial', '', 10);
        $this->Cell(30, 10, utf8_decode(' y de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($laMatrizPadres[2]["Nombres"]), 0, 0, 'L');
        $this->Ln(10);
        $this->SetFont('Arial', '', 10);
        $this->Cell(80, 10, utf8_decode(' natural de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($lsCiudadnovio . ', Estado ' . $lsEstadonovio . ','), 0, 0, 'L');
        $this->Ln(10);
        $this->SetFont('Arial', '', 10);
        $this->Cell(80, 10, utf8_decode(' Con '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($lsNombreNovia), 0, 0, 'L');
        $this->SetFont('Arial', '', 10);
        $this->Cell(30, 10, utf8_decode(' de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($lsEdadNovia), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode(' años de edad '), 0, 0, 'L');
        $this->Ln(10);
        $this->SetFont('Arial', '', 10);
        $this->Cell(80, 10, utf8_decode(' hija de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($laMatrizPadres[1]["Nombres"]), 0, 0, 'L');
        $this->SetFont('Arial', '', 10);
        $this->Cell(30, 10, utf8_decode(' y de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($laMatrizPadres[0]["Nombres"]), 0, 0, 'L');
        $this->Ln(10);
        $this->SetFont('Arial', '', 10);
        $this->Cell(80, 10, utf8_decode(' natural de '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($lsCiudadnovia . ', Estado ' . $lsEstadonovia . ','), 0, 0, 'L');
        $this->Ln(10);
        $this->SetFont('Arial', '', 10);
        $this->Cell(80, 10, utf8_decode(' El matrimonio se realizará el '), 0, 0, 'L');
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(30, 10, utf8_decode($lsFechaMatrimonio), 0, 0, 'L');
        $this->Ln(15);
        $this->SetFont('Arial', 'B', 10);
        $this->Cell(120, 10, utf8_decode(' Primera Proclama: '), 0, 0, 'L');
        $this->Cell(30, 10, utf8_decode(' Hora: '), 0, 0, 'L');
        $this->Ln(10);
        $this->Cell(120, 10, utf8_decode(' Segunda Proclama: '), 0, 0, 'L');
        $this->Cell(30, 10, utf8_decode(' Hora: '), 0, 0, 'L');
        $this->Ln(10);
        $this->Cell(120, 10, utf8_decode(' Tercera Proclama: '), 0, 0, 'L');
        $this->Cell(30, 10, utf8_decode(' Hora: '), 0, 0, 'L');
        $this->Ln(10);
        $this->Cell(80);
        $this->SetFont('Arial', 'B', 11);
        $this->Cell(30, 10, utf8_decode(' Quien(es) conozca(n) algún impedimento que pueda hacer inválido este matrimonio '), 0, 0, 'C');
        $this->Ln(10);
        $this->Cell(30);
        $this->Cell(30, 10, utf8_decode(' tiene(n) la obligación de manifestarlo al Párroco. '), 0, 0, 'C');
        $this->Ln(10);
        $html = utf8_decode('

 <b></b>



<center><table style="width:800px;">
				<tr>
					<td colspan="2"><font style="text-align: justify; font-size:204px; line-height: 2.5em;">
					<strong>' . $lsNombreNovio . '</strong> de <strong>' . $lsEdadNovio . '</strong> años de edad, hijo de <strong>' . $laMatrizPadres[3]["Nombres"] . '</strong> y de <strong>' . $laMatrizPadres[2]["Nombres"] . '</strong>,
					 natural de ' . $lsCiudadnovio . ', Estado ' . $lsEstadonovio . ' Con <strong>' . $lsNombreNovia . '</strong> de <strong>' . $lsEdadNovia . '</strong> años de edad,
					hija de <strong>' . $laMatrizPadres[1]["Nombres"] . '</strong> y de <strong>' . $laMatrizPadres[0]["Nombres"] . '</strong>, natural de ' . $lsCiudadnovia . ', Estado ' . $lsEstadonovia . '
					El matrimonio se realizará el <strong>' . $lsFechaMatrimonio . '.</strong>
					</font></td>
				</tr>
				</table></center>
				<br><br>
			<center><table style="width:600px;">
				<tr align="left">
					<td style="width:500px;"><strong>Primera proclama: ' . $lsFechaProclamaUno . '</strong></td>
					<td style="width:400px;" align="center"><strong>Hora: ' . $lsHoraProclamaUno . '</strong></td>
				</tr>
				<tr align="left">
					<td style="width:500px;"><strong>Segunda proclama: ' . $lsFechaProclamaDos . '</strong></td>
					<td style="width:400px;" align="center"><strong>Hora: ' . $lsHoraProclamaDos . '</strong></td>
				</tr>
				<tr align="left">
					<td style="width:500px;"><strong>Tercera proclama: ' . $lsFechaProclamaTres . '</strong></td>
					<td style="width:400px;" align="center"><strong>Hora: ' . $lsHoraProclamaTres . '</strong></td>
				</tr>
				 <tr>
				 	<td colspan="10" align="center"><button type="button" onclick="history.go(-1);" id="volver">Volver</button><button type="button" onclick="imprimir()" id="impri">Imprimir</button></td>
				 </tr>
			</table></center><br><br><br><br><b>
			<center><div style="width:800px;">Quien(es) conozca(n) algún impedimento que pueda hacer inválido este matrimonio tiene(n) la obligación de manifestarlo al Párroco.</div></center>
			<br><br><br><br><br><div align="center">_____________________________&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;_____________________________</div>
			<div align="center">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Los contrayentes&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

	<br><br><br><br><div align="center" style="float:right; margin-right:100px;">_____________________________<br>
			Párroco</div>
			
			<div id="usuario">Elaborado por:
				' . $_SESSION["nombreUsuario"] . '
			</div>
		</div>
	</body>
	</html>');
        $this->WriteHTML($html);
    }
Exemplo n.º 5
0
        $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");
}
Exemplo n.º 6
0
<?php

session_start();
if (!array_key_exists("usuario", $_SESSION)) {
    header("location: visSalir.php");
}
require_once "../clases/claMatrimonio.php";
require_once "../clases/claPersonas.php";
require_once "../clases/claPadrinos.php";
require_once "../clases/clsFuncionesGlobales.php";
$loMatrimo = new claMatrimonio();
$loPersonas = new claPersonas();
$loPadrinos = new claPadrinos();
$loFuncion = new clsFunciones();
$lsCIyNaci = $loFuncion->DameCIyNaci($_POST["f_cedunovia"]);
$lsNacionalidadNovia = $lsCIyNaci["0"];
$lscedunovia = $lsCIyNaci["1"];
$lsCIyNaci = $loFuncion->DameCIyNaci($_POST["f_cedunovio"]);
$lsNacionalidadNovio = $lsCIyNaci["0"];
$lscedunovio = $lsCIyNaci["1"];
$loMatrimo->asRefMatrimonio = $_POST["f_refMatrimonio"];
$lsIDnovia = "";
$lsIDnovio = "";
$lsFila = $_POST["txtFila"];
$lsMatriS = $_POST["f_refMatrimonio"];
$varMoF = 4;
$laotraCI = "";
if (!empty($lscedunovia) and empty($lscedunovio)) {
    $loPersonas->asNacionalidad = $lsNacionalidadNovia;
    $loPersonas->asCedula = $lscedunovia;
    $varMoF = 0;