<?php
//activamos almacenamiento en el buffer
//ob_start();
//session_start();
if (!isset($_SESSION['nombre'])) {
  header("Location: login.html");
}else{

if ($_SESSION['reporte']==1) {

 ?>
   <style>
      #tbllistado tfoot input{
        width: 100% !important;
      }
      #tbllistado tfoot {
        display: table-header-group !important;
      }
</style>
    <!-- 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 Retención IVA - Contribuyentes Especiales</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-3 col-md-3 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-3 col-md-3 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>
              <div class="form-inline col-lg-3 col-md-3 col-sm-6 col-xs-12">
                <label>Proveedor</label>
                <select name="idcliente" id="idcliente" class="form-control selectpicker" data-live-search="true" required></select>
                    
              </div>
              <!-- <div class="form-group col-lg-3 col-md-3 col-sm-6 col-xs-12">
                
                <br>
                  <button class="btn btn-success" onclick="listar()"> Mostrar</button>
              </div> -->
              <div class="form-group col-lg-12 col-md-12 col-sm-12 col-xs-12">
                
                
              </div>
                <table id="tbllistado" class="table table-striped table-bordered table-condensed table-hover">
                  <thead>
                    <th style="width:50px">Fecha</th>
                   <!--  <th>Usuario</th> -->
                    <th>Proveedor</th>
                    <th style="width:50px">N# Factura</th>
                    <th style="width:50px">Total Documento</th>
                    <th style="width:50px">Base Imponible</th>
                    <th style="width:50px">Porcentaje</th>
                    <th style="width:150px">Retención</th>
                    <th style="width:150px">Imprimir</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> -->   
                  <tfoot>
                    <th></th>
                    <th></th> 
                    <th></th>
                    <th></th>
                    <th></th>
                    <th></th>
                    <th></th>
                    <th></th>
                  </tfoot> 
                </table>
              </div>

              

            <!--fin centro-->
          </div>
        </div>
      </div>
      <!-- /.box -->

    </section>
    <!-- /.content -->
  </div>
  <?php 
  }else{
    require 'vistas/contenidos/noacceso-view.php';
  }
 ?>
  <!-- Main Footer -->
  <?php include "vistas/modulos/mainfooter.php";?>
  </div>
  <!-- ./wrapper -->
  <!-- REQUIRED JS SCRIPTS -->
  <?php include "vistas/modulos/script.php";?>
  <script src="vistas/scripts/retencioniva.js"></script>
  </body>
  </html> 
<?php 
}

ob_end_flush();
  ?>
