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

  if ($_SESSION['almacen']==1) {
     ?>
    <!-- Main content -->
      <section class="content">
        <!-- Default box -->
        <div class="row">
          <div class="col-md-12">
            <div class="box">
                <div class="box-header with-border">
                  
                  <div class="box-tools pull-right">
                    <h1 class="box-title">Ventas\Modulo Fiscal  
                  </div>
                </div>
                <!--box-header-->
                <!--centro-->
                            
                  <div class="panel-body" style="height: 400px;" id="formularioregistros">
                    <div class="form-group col-lg-4 col-md-4 col-xs-12">
                      <button type="button" class="btn btn-default btn-block" name="chequeari" id="chequeari"><i class="fa fa-check"></i> Chequear Impresora</button>
                    </div>
                    <div class="form-group col-lg-4 col-md-4 col-xs-12">
                      <button type="button" class="btn btn-default btn-block" name="ejemplof" id="ejemplof"><i class="fa fa-file"></i> Ejemplo de Factura</button>
                    </div>
                    <div class="form-group col-lg-4 col-md-4 col-xs-12">
                      <button type="button" class="btn btn-default btn-block" name="notac" id="notac"><i class="fa fa-trash"></i> Ejemplo Nota de Crédito</button>
                    </div>
                    <div class="form-group col-lg-4 col-md-4 col-xs-12">
                      <button type="button" class="btn btn-default btn-block" name="reportex" id="reportex"><i class="fa fa-paste"></i> Reporte X</button>
                    </div>
                    <div class="form-group col-lg-4 col-md-4 col-xs-12">
                        <button type="button" class="btn btn-default btn-block" name="reportez" id="reportez"><i class="fa fa-copy"></i> Reporte Z</button>
                    </div>
                    <div class="form-group col-lg-4 col-md-4 col-xs-12">
                        <button type="button" class="btn btn-default btn-block" name="statuss1" id="statuss1"><i class="fa fa-list"></i> Status S1</button>
                    </div>
                  </div>
                <!--fin centro-->
                  <div class="box-footer" id="formularioregistros1">
                    <!-- <button class="btn bg-blue btn-app pull-right" type="submit" id="btnGuardar"><i class="fa fa-save"></i>  Guardar</button> -->
                    <button class="btn bg-red btn-app pull-right" onclick="cancelarform()" type="button"><i class="fa fa-arrow-circle-left"></i> Cancelar</button>
                  </div>
                
              <!-- /.box-footer -->
            </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/modulofiscal.js"></script>
  </body>
  </html> 
<?php  
}
  ob_end_flush();
?>

