robotec/vistas/comprasfecha.php
2024-11-21 18:53:54 -06:00

89 lines
1.9 KiB
PHP

<?php
//activamos almacenamiento en el buffer
ob_start();
session_start();
if (!isset($_SESSION['nombre'])) {
header("Location: login.html");
}else{
require 'header.php';
if ($_SESSION['consultac']==1) {
?>
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<!-- Default box -->
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header with-border">
<h1 class="box-title">Consulta de Ingresos por Fecha</h1>
<div class="box-tools pull-right">
</div>
</div>
<!--box-header-->
<!--centro-->
<div class="panel-body table-responsive" id="listadoregistros">
<div class="form-group col-lg-6 col-md-6 col-sm-6 col-xs-12">
<label>Fecha Inicio</label>
<input type="date" class="form-control" name="fecha_inicio" id="fecha_inicio" value="<?php echo date("Y-m-d"); ?>">
</div>
<div class="form-group col-lg-6 col-md-6 col-sm-6 col-xs-12">
<label>Fecha Fin</label>
<input type="date" class="form-control" name="fecha_fin" id="fecha_fin" value="<?php echo date("Y-m-d"); ?>">
</div>
<table id="tbllistado" class="table table-striped table-bordered table-condensed table-hover">
<thead>
<th>Fecha</th>
<th>Usuario</th>
<th>Proveedor</th>
<th>Comprobante</th>
<th>Número</th>
<th>Total Compra</th>
<th>Impuesto</th>
<th>Estado</th>
</thead>
<tbody>
</tbody>
<tfoot>
<th>Fecha</th>
<th>Usuario</th>
<th>Proveedor</th>
<th>Comprobante</th>
<th>Número</th>
<th>Total Compra</th>
<th>Impuesto</th>
<th>Estado</th>
</tfoot>
</table>
</div>
<!--fin centro-->
</div>
</div>
</div>
<!-- /.box -->
</section>
<!-- /.content -->
</div>
<?php
}else{
require 'noacceso.php';
}
require 'footer.php';
?>
<script src="scripts/comprasfecha.js"></script>
<?php
}
ob_end_flush();
?>