<!DOCTYPE html>
<html lang="en">
<style type="text/css">
  #DataTables_Table_0_filter{
    margin-right:50px;
  }
</style>
<head>
  <meta charset="utf-8">

  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="">
  <meta name="author" content="">
  <title>SB Admin - Start Bootstrap Template</title>
  <!-- Bootstrap core CSS-->
<!-- Font Awesome -->
<!-- Font Awesome -->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">
<!-- Google Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap">
<!-- Bootstrap core CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/4.4.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Material Design Bootstrap -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/mdbootstrap/4.17.0/css/mdb.min.css" rel="stylesheet">
  <!-- Custom styles for this template-->
  <link href="../css/sb-admin.css" rel="stylesheet">
    <link href="../js/select2.css" rel="stylesheet">
</head>

 <body>
    
<nav class="navbar navbar-expand-lg navbar-dark bg-dark fixed-top">
  <a class="navbar-brand" href="../menu/menu.php"><b>NUBE</b>PREST</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>

  <div class="collapse navbar-collapse" id="navbarSupportedContent">
    <ul class="navbar-nav mr-auto">
      <li class="nav-item active">
        <a class="nav-link" href="#">Inicio <span class="sr-only">(current)</span></a>
      </li>

       <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Punto de ventas
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item text-primary" href="../pos/facturacion.php">Nueva venta</a>
           <div class="dropdown-divider"></div>
          <a class="dropdown-item" href="../pos/ventas.php">Ventas registradas</a>

          <div class="dropdown-divider"></div>
         <a class="dropdown-item text-primary" href="../clientes/creditos.php">Ventas a credito</a>



        </div>
      </li>

    

  
      <li class="nav-item">
        <a class="nav-link" href="../clientes/clientes.php">Clientes</a>
      </li>

   
    <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Proveedores
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="../suplidor/suplidor.php">Registro de proveedores</a>
           <a class="dropdown-item" href="../proveedores/compras.php">Compras</a>
          <a class="dropdown-item" href="../proveedores/cuenta.php">Estado de cuenta</a>
          <div class="dropdown-divider"></div>
        
        </div>
      </li>

          <li class="nav-item dropdown">
        <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
          Almacen
        </a>
        <div class="dropdown-menu" aria-labelledby="navbarDropdown">
          <a class="dropdown-item" href="../almacen/almacen.php">Registro de almacen</a>
           <a class="dropdown-item" href="../inventario/inventario.php">Costo de inventario</a>
          
          <div class="dropdown-divider"></div>
        <a class="dropdown-item" href="../productos/productos.php">Catalogo de productos</a>

        </div>
      </li>

      <li class="nav-item">
        <a class="nav-link" href="../parametros/parametros.php">Parametros</a>
      </li>




 
    </ul>
    <form class="form-inline my-2 my-lg-0">
     
      <a onClick="salir()" href="javascript:void(0)" class="btn btn-outline-light my-2 my-sm-0" type="submit">Salir del sistema</a>
    </form>
  </div>
</nav>
<br>
<br>
<br>


<script>

function salir(){
    var usuario="<?php echo $usuario?>";
    var nivel="<?php echo $nivel?>";
    
    if(confirm("SEGURO(A) QUE DESEA SALIR DEL SISTEMA")){
       localStorage.setItem("usuario",""); 
       localStorage.setItem("nivel",""); 
       localStorage.setItem("pas",""); 
       window.location.href="../php/logout.php";
    }
}


var toggler = document.getElementsByClassName("caret");
var i;

for (i = 0; i < toggler.length; i++) {
  toggler[i].addEventListener("click", function() {
    this.parentElement.querySelector(".nested").classList.toggle("active");
    this.classList.toggle("caret-down");
  });
}
</script>
</div >


  <!--Modal load-->

<div class="modal" id="loading" style="opacity:3px"  tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true" data-backdrop="">
  <div class="modal-dialog modal-sm"  role="document" >
    <div class="modal-content">

      <div class="modal-body">
       <div id="ld">
         
       </div>
      </div>
      
    </div>
  </div>
</div>  
<!--/Modal load-->


<script>
function _enviar(url,data){
  cargando("Procesando informacion, espere unos segundos");
  var ajax = $.ajax({
    "method": "POST",
    "url":url,
    "data":data,
    "success":function(){
          ///$(".form-control").prop("disabled",false)
          $("button").prop("disabled",false)
          ///$("a").css("pointer-event","click");
    }
    
  });
  return ajax;
}

      
    function cargando(msg){
    ////$(".form-control").prop("disabled",true)
    $("button").prop("disabled",true)
    ///$("a").css("pointer-event","none");

      
  }

  </script>
  <?php
    $hoy = @date('Y-m-d');
  ?>