<!DOCTYPE html>
<html>
<head>
	<title>Codigo de barras</title>
	<!-- Latest compiled and minified CSS -->
	<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
	<script src="JsBarcode.all.min.js"></script>
	
	
</head>
<body>

	<div class="container">
		<div class="row">
			<h2></h2>
		<!--	<div class="col-sm-4">
				<form action="php/insertar.php" method="post">
					<label>Nombre</label>
					<input type="text" id="nombre" name="nombre" class="form-control">
					<p></p>
					<button class="btn btn-primary" type="submit">
						Crear y generar nuevo codigo
					</button>
					<hr>
				</form>
			</div>-->
			<button onclick="location.href='http://www.webmy.cl/form_prec/lotesenvio.php'" class="btn btn-success">Volver</button>

			    <center> <h1><em>Generar codigo de barras</em></h1>  </center>
			    
<hr>


<table class="table table-bordered">
  <thead class="bg-success"  >

  <tbody>
    

       <?php



date_default_timezone_set('America/Santiago');
$fecha_actual=date("Y-m-d");


?>


   <tr><center> <form action="index.php" method="post" name="frm">
         <div class="col-lg-4">
      <input type="date" class="form-control" name="fecha"  value="<?=$fecha_actual?>"><br>
             <input class="btn btn-primary" name="submit" type="submit" value=" Consultar" />
      
   </center></div></form></center></tr
     
    <td> <center><input type="button" class="btn btn-success" name="imprimir" value="Imprimir P&aacute;gina" onclick="window.print();"></center></td>
    
    
    <br>
 
<br>
    
    <table class="table">
  <thead class="table-primary">
  
       
      <th scope="col"></th>
      <th scope="col"></th>
       <th scope="col"></th>
    <th scope="col"></th>
      <th scope="col"></th>
       <th scope="col"></th>
 
  </thead>

 
      
    
<?php

if (isset($_POST['fecha'])) {
  $id = $_POST['fecha'];

}


?>
    
		</div>
		<?php 


	require "tabla.php";
	?>


	</div>

	<br>
	
</body>
</html>