<?php include_once "../login/check.php"; if (!empty($_GET)) { include_once "pdf.php"; include_once "../funciones.php"; include_once "../class/pago.php"; include_once "../class/gasto.php"; include_once "../class/arrendatario.php"; $gasto = new gasto(); $pago = new pago(); $arrendatario = new arrendatario(); $fechaInicio = $_GET['FechaInicio']; $fechaFin = $_GET['FechaFin']; class PDF extends PPDF { function Cabecera() { } } $titulo = "Reporte General"; $pdf = new PDF("P", "mm", "letter"); //$pdf=new FPDF("L","mm",array(306,396)); $borde = 0; $pdf->AddPage(); $totalpagos = 0; $totalgastos = 0; foreach (rangoFechas($fechaInicio, $fechaFin, "+ 1 month", 1) as $rfechas) { $mespagos = 0; $mesgastos = 0; $mes = date("m", strtotime($rfechas));
<?php include_once "../login/check.php"; if (!empty($_POST)) { include_once "../class/pago.php"; include_once "../class/arrendatario.php"; include_once "fpdf/fpdf.php"; include_once "funciones.php"; $cod = $_POST['CodArrendatario']; $codpago = $_POST['CodPago']; $proximoMes = $_POST['proximoMes']; $montoPendiente = $_POST['pendiente']; $arrendatario = new arrendatario(); $pago = new pago(); $valorConcepto = array(); $valorImporte = array(); $arren = array_shift($arrendatario->mostrarTodo(1, "CodArrendatario={$cod}")); $pagoTotal = 0; $i = 0; foreach ($codpago as $cpago) { $i++; $p = array_shift($pago->mostrarTodo(0, "CodPago=" . $cpago)); if ($p['Monto'] == $arren['Monto']) { array_push($valorConcepto, "Alquiler mes de " . mb_strtoupper(strftime("%B", strtotime($p['FechaPago']))) . " de " . $p['Anio'] . " | Cancelado: " . date("d/m/Y", strtotime($p['FechaCancelado']))); array_push($valorImporte, $p['Monto'] . " Bs."); $pagoTotal += $p['Monto']; } else { if ($p['Monto'] < $arren['Monto']) { array_push($valorConcepto, "Adelanto alquiler mes de " . mb_strtoupper(strftime("%B", strtotime($p['FechaPago']))) . " de " . $p['Anio'] . " | Cancelado: " . date("d/m/Y", strtotime($p['FechaCancelado']))); array_push($valorImporte, $p['Monto'] . " Bs."); $pagoTotal += $p['Monto'];
<?php include_once "../login/check.php"; $folder = "../"; $titulo = "Listado de Arrendatarios Recibo"; include_once "../cabecerahtml.php"; include_once "../class/arrendatario.php"; $arrendatario = new arrendatario(); ?> </head> <body> <?php include_once "../cabecera.php"; ?> <div class="container_12" id="cuerpo"> <div class="prefix_1 grid_10 suffix_1"> <div class="titulo">Listado de Arrendatarios - Recibo</div> <div class="cuerpo"> <table class="tabla"> <tr class="cabecera"><td>Nombre Esposo</td><td>Nombre Esposa</td><td>Monto</td><td>Fecha de Cancelación</td></tr> <?php foreach ($arrendatario->mostrarTodo() as $arren) { ?> <tr class="contenido"><td><?php echo $arren['NombreEsposo']; ?> </td><td><?php echo $arren['NombreEsposa']; ?> </td><td><?php echo $arren['Monto'];
<?php include_once "../login/check.php"; if (!empty($_POST)) { include_once "../class/arrendatario.php"; $arrendatario = new arrendatario(); $cod = $_POST['CodArrendatario']; $values = array("Activo" => 0); $arrendatario->actualizarArrendatario($values, $cod); }
<?php include_once "../login/check.php"; if (!empty($_POST)) { extract($_POST); include_once "../class/arrendatario.php"; $arrendatario = new arrendatario(); $fechaRegistro = date("Y-m-d"); $horaRegistro = date("H:i:s"); $values = array("NombreEsposo" => "'{$nombreEsposo}'", "CiEsposo" => "'{$ciEsposo}'", "NombreEsposa" => "'{$nombreEsposa}'", "CiEsposa" => "'{$ciEsposa}'", "NombreGarante" => "'{$nombreGarante}'", "CiGarante" => "'{$ciGarante}'", "FechaIngreso" => "'{$fechaIngreso}'", "Monto" => "'{$monto}'", "FechaCancela" => "'{$fechaCancela}'", "TiempoContrato" => "'{$tiempoContrato}'", "Observaciones" => "'{$observaciones}'"); $arrendatario->actualizarArrendatario($values, $CodArrendatario); header("Location:../index.php"); }
<?php include_once "../login/check.php"; if (!empty($_POST)) { extract($_POST); include_once "../class/arrendatario.php"; $arrendatario = new arrendatario(); $fechaRegistro = date("Y-m-d"); $horaRegistro = date("H:i:s"); $values = array("CodArrendatario" => "NULL", "NombreEsposo" => "'{$nombreEsposo}'", "CiEsposo" => "'{$ciEsposo}'", "NombreEsposa" => "'{$nombreEsposa}'", "CiEsposa" => "'{$ciEsposa}'", "NombreGarante" => "'{$nombreGarante}'", "CiGarante" => "'{$ciGarante}'", "FechaIngreso" => "'{$fechaIngreso}'", "Monto" => "'{$monto}'", "FechaCancela" => "'{$fechaCancela}'", "TiempoContrato" => "'{$tiempoContrato}'", "Observaciones" => "'{$observaciones}'", "FechaRegistro" => "'{$fechaRegistro}'", "HoraRegistro" => "'{$horaRegistro}'", "Activo" => "'1'"); $arrendatario->insertarArrendatario($values); header("Location:../index.php"); }