Esempio n. 1
0
<?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));
Esempio n. 2
0
<?php

include_once "../login/check.php";
if (!empty($_POST)) {
    include_once "../class/gasto.php";
    extract($_POST);
    $gasto = new gasto();
    $values = array("Detalle" => "'{$detalle}'", "Monto" => "'{$monto}'", "FechaGasto" => "'{$fecha}'", "Observaciones" => "'{$observaciones}'");
    $gasto->actualizarGasto($values, $CodGasto);
    header("Location:../index.php");
}
Esempio n. 3
0
<?php

include_once "../login/check.php";
if (!empty($_POST)) {
    include_once "../class/gasto.php";
    extract($_POST);
    $gasto = new gasto();
    $fechaRegistro = date("Y-m-d");
    $horaRegistro = date("H:i:s");
    $values = array("CodGasto" => "NULL", "Detalle" => "'{$detalle}'", "Monto" => "'{$monto}'", "FechaGasto" => "'{$fecha}'", "Observaciones" => "'{$observaciones}'", "FechaRegistro" => "'{$fechaRegistro}'", "HoraRegistro" => "'{$horaRegistro}'", "Activo" => 1);
    $gasto->insertarGasto($values);
    header("Location:../index.php");
}
Esempio n. 4
0
<?php

include_once "../login/check.php";
$folder = "../";
$titulo = "Registrar Gastos";
include_once "../cabecerahtml.php";
include_once "../class/gasto.php";
$gasto = new gasto();
?>
<script language="javascript" type="text/javascript" src="../js/gasto.js"></script>
</head>
<body>
<?php 
include_once "../cabecera.php";
?>
<div class="container_12" id="cuerpo">
<div class="prefix_2 grid_8 suffix_2">
	<div class="titulo">Lista de Gastos</div>
	<div class="cuerpo">
		<table class="tabla">
        	<tr class="cabecera"><td>Detalle</td><td>Monto</td><td>Fecha</td><td>Observaciones</td></tr>
            <?php 
foreach ($gasto->mostrarTodo() as $ga) {
    ?>
            <tr class="contenido"><td><?php 
    echo $ga['Detalle'];
    ?>
</td><td><?php 
    echo $ga['Monto'];
    ?>
</td><td><?php 
Esempio n. 5
0
<?php

include_once "../login/check.php";
if (!empty($_POST)) {
    include_once "../class/gasto.php";
    $gasto = new gasto();
    $cod = $_POST['CodGasto'];
    $values = array("Activo" => 0);
    $gasto->actualizarGasto($values, $cod);
}
Esempio n. 6
0
<?php

include_once "../login/check.php";
if (!empty($_GET)) {
    $folder = "../";
    include_once "../class/gasto.php";
    $gasto = new gasto();
    $cod = $_GET['CodGasto'];
    $titulo = "Modificar Gastos";
    $g = array_shift($gasto->mostrarTodo(0, "CodGasto={$cod}"));
    include_once "../cabecerahtml.php";
    ?>
</head>
<body>
<?php 
    include_once "../cabecera.php";
    ?>
<div class="container_12" id="cuerpo">
<div class="prefix_2 grid_8 suffix_2">
	<div class="titulo">Modificar Gasto</div>
	<div class="cuerpo">
		<form action="guardarmodificacion.php" autocomplete="off" method="post"><input type="hidden" name="CodGasto" value="<?php 
    echo $cod;
    ?>
">
        <table>
        <tr><td>Detalle del Gasto:</td><td><input type="text" name="detalle" size="50" value="<?php 
    echo $g['Detalle'];
    ?>
"/></td></tr>
        <tr><td>Monto Gasto:</td><td><input type="number" name="monto" autocomplete="off" min="0" step="1" class="der" value="<?php