
<!DOCTYPE html>
<html lang="en">
<style type="text/css">

.barra_lateral{
    
  padding:12px;
  background:#F8F9F9 ;
  width:245px; 
  @border-top:solid 4px green;
  @border-bottom:solid 2px gray;
  
  @box-shadow:1px 2px 1px;
  @border-radius:5px 5px 5px;
  min-height:300px;
  margin-top:-20px;
  margin-left:-20px;
  height:1000px;
  float:left;
}

  .icon{
    width:20px;
    margin-bottom:0px;
  }
  
    .icon2{
    width:20px;
    margin-bottom:-5px;
    
  }
  
.isable{
  color: currentColor;
  cursor: not-allowed;
  opacity: 0.5;
  text-decoration: none;
}


.form-control{
  color:#6D6D6D;
  font-size: 13px;
}

.navbar a:hover{
  color:black;
}

.bold{
  font-weight: bolder;
}

th{
  text-align: center;
  baseline-shift: greeng
  font-weight:bolder;

}

td{
  font-size: 8px;
}
</style>

<head>
  <meta charset="utf-8">

<meta name="viewport" content="width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<link rel="icon" sizes="192x192" href="../img/cloud3.png">



  <meta name="theme-color" content="#563d7c">
  <title>SantanaSoft - POS</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="https://cdn.datatables.net/1.10.24/css/dataTables.bootstrap5.min.css" rel="stylesheet">

  <link href="../css/sb-admin.css" rel="stylesheet">
    <link href="../js/select2.css" rel="stylesheet">
        <link href="../vendor/toastr/toastr.css" rel="stylesheet"/>
</head>

  <body>
    
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  <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="text-primary my-2 my-sm-0" type="submit"><i class="fa fa-home fa-lg"></i>Salir del sistema</a>
    </form>
  </div>
</nav>
<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');
  ?>