<!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=utf-8" />

<title>Panel</title>





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

<link href="http://radioshosting.com/css/delalora4new.css" rel="stylesheet">

<link rel="stylesheet" href="https://unpkg.com/flickity@2/dist/flickity.min.css"/>

<link rel="stylesheet" href="http://ejemplo.radiosnet.com.ar/css/font-awesome.min.css"/>

<style>

.caca {

    max-width: 200px;

	max-height:200px;

}</style>

</head>



<body>

<div class="container-fluid">



<div class="row">



<div class="col-lg-3 col-md-3 col-sm-12">





<?php 

include 'nav.php';?>



</div>



<div class="col-lg-9 col-md-9 col-sm-12">

<?php 



$que = $_POST['que'];

$busqueda  = $_POST['busqueda'];?>

</p>

<form id="form1" name="form1" method="post" action="form_buscar.php">



<p>BUSCAR POR: 

  <label>

<select name="que" class="h3" id="que">

  <option value="1">NOMBRE DE PRODUCTO</option>

  <option value="2" selected="selected">COD. BARRA</option>

  <option value="3">PROVEEDOR</option>

  <option value="4">CATEGORIA</option>

</select>

  </label>

  <input name="busqueda" type="text" class="h3" id="busqueda" size="30" placeholder="Escriba aquí..." />

  <label>

<input name="button" type="submit" class="h3" id="button" value="Buscar" />

  </label>

</p></form>





<hr />







<?

$ID_producto = (int)$_GET['ID_producto'];





include 'concha.php';



mysql_connect("$host","$usuario","$contra");



mysql_select_db ("$basedatos");





$sql = "SELECT * FROM `articulos` WHERE `ID` = '$ID_producto' LIMIT 1";







$consulta = mysql_query ($sql);



while ($row = mysql_fetch_array($consulta))



{





$ID_producto = $row["ID"];

$titulo = $row["titulo"];

$foto = $row["foto"];

$precio = $row["precio"];

$stock = $row["stock"];

?>

    <?



}



mysql_free_result($consulta);



?>



<table width="100%" border="0" cellpadding="5" bgcolor="#FFFFFF">

  <tr>

    <td width="200px" align="center"><img class="lazy caca" src="http://radioshosting.com/ajax-loader.gif" data-original="<?php echo $dom ?>/img/<?php echo $foto ?>" /></td>

    <td align="left" ><span class="h2" style="font-size:25;"><?php echo $titulo ?></span> <hr />

<span class="h2" style="color:#006600"><?php echo $precio ?></span> <span class="h2">|</span> <span class="h2">STOCK ACTUAL: <b><?php echo $stock ?></b></span>  </td>

  </tr>

</table>

<br />



<div align="center"><h3>AGREGAR O QUITAR UNIDADES AL STOCK:</h3>

  

  <hr />

   <form id="form2" name="form2" method="post" action="form_agregar_stock.php">

   

   <input name="stock" type="hidden" value="<?php echo $stock ?>" />

  <h2>UNIDADES:</h2> 

  <input name="ID_producto" type="hidden" value="<?php echo $ID_producto ?>" />

  

  <input name="stock_mas" type="text" id="stock_mas" onKeypress="if (event.keyCode < 45 || event.keyCode > 57) event.returnValue = false;" value="" size="8" maxlength="15" placeholder="Cantidad" class="h2">

  

<hr />

<h7>(SI DESEA QUITAR UNIDADES DEL STOCK COLOQUE EL NUMERO EN FORMATO NEGATIVO, CON EL SIGNO "MENOS" DELANTE)</h7>

<hr />



    <input type="submit" name="button2" id="button2" value="PROCESAR" class="h2" />

  

    </form>

</div>

  

  



</div>

</div>

</div>











    



  <script src="http://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=960,height=630,scrollbars=NO")

}

  </script>

  

  

<script src="http://radioshosting.com/recursos/js/jquery.lazyload.js?v=1.9.1"></script>

  <script type="text/javascript" charset="utf-8">

  $(function() {

     $("img.lazy").lazyload({

         effect : "fadeIn"

     });



  });

</script>



  

</body>

</html>

