
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="/docs/4.0/assets/img/favicons/favicon.ico">

    <title>¿Cuanto Vale? - Consulta y Compara Precios entre miles de Productos y Servicios</title>
 <meta name="description" content="Comparte el precio de un producto. Encuentra los lugares mas económicos para comprar. Consulta cuanto vale un producto en una ciudad, analiza la inflación de un País.">

 <style type="text/css">



 .caca {

     max-width: 200px;

 	max-height:200px;

 }

 </style>



    <link rel="canonical" href="https://getbootstrap.com/docs/4.0/examples/pricing/">

    <!-- Bootstrap core CSS -->
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="pricing.css" rel="stylesheet">
  </head>

  <body>

<? include 'menu.php'; ?>


    <div class="pricing-header px-3 py-3 pt-md-5 pb-md-4 mx-auto text-center">
      <h1 class="display-4">Carga un Precio - Paso 3</h1>
      <p class="lead">

       </p>
    </div>

    <div class="container">




<div class="col-12 col-md">

</div>






<?


 include 'url_amigable.php';

 include 'concha.php';



$barcode = (int)$_POST['barcode'];
$A = (int)$_POST['A'];
$M = (int)$_POST['M'];
$D = (int)$_POST['D'];

  $D = str_pad((int) $D,2,"0",STR_PAD_LEFT);
  $M = str_pad((int) $M,2,"0",STR_PAD_LEFT);

  $fecha_compuesta = "$A$M$D";

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

mysql_select_db ("$basedatos");



    $sql = "SELECT * FROM `articulos` WHERE `barcode` LIKE '$barcode' LIMIT 1";



$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];


$barcode = $row["barcode"];
$titulo = $row["titulo"];
$foto = $row["foto"];
?>


<H2>PRODUCTO</H2>
<div class="row" style="border:1px">
  <div class="col-3" align="center">
    <img class="caca" src="<? echo $dom ?>/img/<? if ($foto == '') {echo "SIN_FOTO.png"; } else { echo $foto; }; ?>" >
  </div>

  <div class="col-8">
  <span style="font-size:43px"><? echo $titulo ?></span>


<br>
<span style="font-size:23px"><? echo $barcode ?></span>


<br>


</div>




</div>
<?


}

mysql_free_result($consulta);
?>


      </div>


      <div class="col-12 col-md">
¿EN QUE FECHA FUE COMPRADO EL PRODUCTO?

<? echo $D ?> / <? echo $M ?> / <? echo $A ?> <br>


      </div>


      <div class="col-12 col-md" class="form-control">
¿EN QUE PROVINCIA FUE COMPRADO EL PRODUCTO?
<select name="IDprovincia">
<?
    $sql = "SELECT * FROM `provincias` ORDER BY `provincias`.`provincia` ASC";



$consulta = mysql_query ($sql);

while ($row = mysql_fetch_array($consulta))

{

$ID = $row["ID"];


$provincia = $row["provincia"];
$IDprovincia = $row["IDprovincia"];

?>
<option value="<? echo $IDprovincia ?>"><? echo $provincia ?>
</option>


<?


}

mysql_free_result($consulta);
?>

</select>




      </div>




    </div>


    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script>window.jQuery || document.write('<script src="../../assets/js/vendor/jquery-slim.min.js"><\/script>')</script>
    <script src="../../assets/js/vendor/popper.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"></script>
    <script src="../../assets/js/vendor/holder.min.js"></script>
    <script>
      Holder.addTheme('thumb', {
        bg: '#55595c',
        fg: '#eceeef',
        text: 'Thumbnail'
      });
    </script>



    <script src="https://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>
