<?php
if (isset($conexion)) {
	//$numero_mesa = $_SESSION['numero_mesa'];
    ?>
	<div id="buscar" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" style="display: none;">
	<div class="modal-dialog" style="max-width: 1200px;" role="document">
			<div class="modal-content">
				<div class="modal-header">
					<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
					<h4 class="modal-title"><i class='fa fa-search'></i> Buscar Productos</h4>
				</div>
				<div class="modal-body">

					<form class="form-horizontal">

<div class="row">
<div class="col-md-4">
								<div class="form-group">
								<div id="carga_ident2"></div>
									
									

															
									
								
								</div>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<div class="input-group">
									<input type="text" autocomplete="off" class="form-control" id="q" placeholder="BUSCAR POR CODIGO/NOMBRE" onkeyup="load(1)">
								</div>
								</div>
							</div>
							<div class="col-md-4">
								<div class="form-group">
									<select id="linea_id" class="form-control" onchange="load(1);">
													<option value="">-- CATEGORIAS --</option>
													<option value="">TODO</option>
													<?php
$sql1 = mysqli_query($conexion, "select * from lineas");
    while ($rw1 = mysqli_fetch_array($sql1)) {
        ?>
                      <option value="<?php echo $rw1['id_linea'] ?>"><?php echo $rw1['nombre_linea']; ?></option>
                      <?php
}
    ?>
												</select>
								</div>
							</div>
							
						</div>


							<div class="col-md-4">
								<div id="loader"></div><!-- Carga gif animado -->
							</div>

					</form>
					<div class="outer_div" ></div><!-- Datos ajax Final -->

				</div>
				<div class="modal-footer">
					<button type="button" class="btn btn-secondary waves-effect" data-dismiss="modal">Cerrar</button>
				</div>
			</div>
		</div>
	</div><!-- /.modal -->
	<?php
}
?>