<?php

if(!isset($_COOKIE["sesion"])){
  echo '<meta http-equiv="refresh" content="0;url=./" />';
  die();
}

?>

<!DOCTYPE html>
<html lang="en">
<?php include("style.php"); ?>

<style>
  .fileimport
  {
    opacity: 0;
    position: absolute;
    left: 0;
    right: 0;
    top: -12px;
    bottom: 6px;
  }
  .swal2-content2 {
   font-size: medium !important;color: crimson !important;
}
.swal2-show {
    width: 60% !important;
}

</style>
<title>Cotizador - MYPSA CASEWORK</title>
<body class="hold-transition sidebar-mini layout-fixed">
  <div class="wrapper">
    <?php include("menu.php") ?>
    <div class="content-wrapper"><br>.
      <section class="content" style="text-align: center;">
        <div class="form-group row">
          <div class="col-2">
            <button class="btn btn-success btn-block btn-flat btn-sm" id="exportButton" style="margin-top: 32.5px !important;">
              <i class="fa fa-plus"></i>
              Exportar a excel
            </button>
          </div>
          <div class="offset-md-2 col-2">
            <label>Estatus</label>
            <select id="selectStatus" class="form-control form-control-sm">
              <option value="1">Pendiente</option>
              <option value="0">Corregido</option>
            </select>
          </div>
          <div class="col-3">
            <label>Desde</label>
            <input type="date" id="txtFechaInicial" class="form-control form-control-sm flat-input">
          </div>
          <div class="col-3">
            <label>Hasta</label>
            <input type="date" id="txtFechaFinal" class="form-control form-control-sm flat-input">
          </div>
          <!--
          <div class="col-4" style="margin-top:31px !important">
            <input type="text" class="form-control form-control-sm flat-input ftfamily" id="inputBusqueda" placeholder="&#xF002; Filtrar cotizaciones" autofocus>
          </div>
        -->
        </div>

        <div class="form-group row">
          <div class="col-12">
            <table id="tablaCotizaciones" class="table table-bordered table-sm" style="width:100%;font-size:14px;background: white;">
              <thead>
                <tr>
                  <th>#</th>
                  <th>Tipo</th>
                  <th>Referencia</th>
                  <th>Parametro</th>
                  <th>Nombre</th>
                  <th>Fecha</th>
                  <th>Usuario</th>
                  <th>Estatus</th>
                  <th>Accion</th>
                </tr>
              </thead>
              <tbody></tbody>
              <tfoot>
                <tr>
                  <th></th>
                  <th></th>
                  <th></th>
                  <th></th>
                  <th></th>
                  <th></th>
                  <th></th>
                  <th></th>
                </tr>
              </tfoot>
            </table>
          </div>
        </div>
      </section>
    </div>
  </div>

<?php include("scripts.php"); ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/xlsx/0.16.9/xlsx.full.min.js"></script>
<script type="text/javascript" src="scripts/bitacora.js" defer></script>

</body>

</html>

