<?php include 'sesion_user.php';?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=gb18030">

<title>Sistema Stock</title>

<meta http-equiv="refresh" content="30" />

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">


<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body onload="document.forms['form14']['busqueda'].focus()">

<div class="container-fluid">
<p>COMANDAS. ACTUALIZADO A LAS <? echo date(H) ?>:<? echo date(i) ?></p>


<div class="row">




<? if($version_bar == "si" ) { ?>





<?php
mysql_connect("$host","$usuario","$contra");

mysql_select_db ("$basedatos");


$sql = "SELECT * FROM `mesas_temp` WHERE `ya_salio` = 0 ORDER BY `mesas_temp`.`ID` ASC ";


$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{
$color = $row["color"];
$ID_temp = $row["ID"];
$barcode = $row["barcode"];
$hora = $row["hora"];

$atendida = mb_strtoupper($row["atendida"]);

?>
<?

$sql33 = "SELECT * FROM `articulos` WHERE `barcode` = $barcode LIMIT 1";


$consulta33 = mysql_query ($sql33);

while ($row33 = mysql_fetch_array($consulta33))

{

$titulo = $row33["titulo"];
$precio = $row33["precio"];
$cat = $row33["cat"];
if ($cat != 'BEBIDAS') { 
?><div style="" class="col-lg-3 col-md-4 col-sm-6 col-4">

<div style="background-color: #ffec83;
padding: 5px 5px 5px 5px;
border: solid;
margin-bottom: 38px; ">



<div class="tarjeta" style="border: solid;
border-radius: 9px;
padding: 5px;
border-width: 2px;
background: #f0f0f0;
margin-bottom: 10px;"><img src="reloj.png" style="width:25px"> <? echo $hora ?> <? if ($ya_salio == 0) { echo "<img src='gorrorojo.png' style='width: 28px;'>"; } else { echo "<img src='gorroverde.png' style='width: 28px;'>"; }; ?><br> <b><? echo $titulo ?></b>

 x <? echo $cant ?> <BR>
    [<a href="ya_salio.php?ID=<? echo $ID_temp ?>">PEDIDO ENTREGADO</a>]
</div>



</div>


</div>

<?
}
}

mysql_free_result($consulta33);


?><?
}

mysql_free_result($consulta);



?>






</div>










</div>

<? };?>








</div>

</div>







<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-146398018-1"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());

  gtag('config', 'UA-146398018-1');
</script>



  <script src="https://code.jquery.com/jquery-3.2.1.min.js" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
  <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script>


  <script type="text/javascript">window.setInterval(function(){
  $('.grid').isotope({
  itemSelector: '.grid-item'
});
}, 2000);
</script>

<script language=javascript>
function ventanaSecundaria56 (URL){
   window.open(URL,"ventana1","width=600,height=500,scrollbars=NO")
}







  </script>
  
  
  
  
      <script language="javascript">
    function PulsarTecla(event)
    {
        tecla = event.keyCode;
     
        if(tecla==113)
        {
            location.href ='nueva_venta.php';
        }
        
        
        
        
    }
     
    window.onkeydown=PulsarTecla;
    </script>
</body>
</html>
