<?php
//activamos almacenamiento en el buffer
//ob_start();
//session_start();
if (!isset($_SESSION['nombre'])) {
  header("Location: login.html");
}else{
  if ($_SESSION['ventas']==1) {
  ?>
      <!-- Main content -->
      <section class="content">
        <div class="row">
          <div class="col-md-12">
            <!-- Default box -->
            <div class="box">
              <div class="box-header with-border">
                <div class="box-tools pull-right">
                  <h1 class="box-title">Ventas/Facturar Cafeteria   
                </div>
              </div>
              <!--box-header-->
              <!--centro-->
              <div class="panel-body" style="height: 400px;">
                <div class="col-lg-12">
                  <div class="box-body table-responsive pad" id="tarjetasdecliente">
                     
                  </div>
                </div>
               
              
              </div>
              <!--fin centro-->
              <div class="box-footer" id="formularioregistros1">
              </div>    
            </div>
            <!-- /.box -->  
          </div>
        </div>
        <!-- /.box -->
      </section>
      <!-- /.content -->
    </div>
    <!--Modal-->
    <!-- fin Modal-->
  <?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/barra.js"></script>
  </body>
  </html> 
<?php 
}

ob_end_flush();
  ?>

