<?php include "conexion.inc" ?>
<?php include "validacion.php" ?>
<!doctype html>
<html lang="es">
	<head>
		<?php include '../index/head.php'; ?>
		<script language="javascript">
			function recargar()
			{
				var v01 = $('input[name=bodega]').val();
				var v02 = $('input[name=pasillo]').val();
				$('#recargado').html('<div class="d-flex justify-content-center"><img src="../images/loader.gif" width="150" alt="loading"/><br/>Un momento, por favor...</div>');
				$.post("etiquetas_2x3.php", { v1:v01, v2:v02 }, function(data){$("#recargado").html(data);});
			}
		</script>
	</head>
	<body class="nav-md" onLoad="recargar();">
		<div class="container body">
			<div class="main_container">
				<?php include '../index/body.php'; ?>
				<div class="right_col" role="main">
					<div class="">
						<!-- page content -->
						<div class="clearfix"></div>
						<div class="row">
							<div class="col-md-12 col-sm-12 col-xs-12">
								<form name="neo" class="form-vertical" method="POST" action="impresion.php?id=2" enctype="multipart/form-data" target="_blank">
									<div class="row">
										<div class="col-md-2">
											<div class="form-group">
												<input type="text" class="form-control" value="" name="bodega" placeholder="Bodega">
											</div>
										</div>
										<div class="col-md-2">
											<div class="form-group">
												<input type="text" class="form-control" value="" name="pasillo" placeholder="Pasillo">
											</div>
										</div>
										<div class="col-md-6">
											<div class="form-group">
												<button type="button" class="btn btn-dark" onclick="recargar();">
													<span class="glyphicon glyphicon-search" aria-hidden="true"></span> Buscar
												</button>
											</div>
										</div>
									</div>
									<div class="row">
										<form name="neo02" class="form-vertical" method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>" enctype="multipart/form-data">
											<div class="col-xs-12" id="recargado">
											</div>
										</form>
									</div>
								</form>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<?php include '../index/footer.php'; ?>
		<?php include '../index/fbody.php'; ?>
	</body>
</html>