<?php
if (isset($conexion)) {
    ?>
    <form id="eliminarDatos">
		<div class="modal fade" id="dataUpdate" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel">
			<div class="modal-dialog" role="document">
				<div class="modal-content">
        
					<input type="hidden" id="numero_mesa" name="numero_mesa">
					<h3 class="text-center text-muted">Estas seguro?</h3>
					<p class="lead text-muted text-center" style="display: block;margin:9px">Con esta accion emigrara los de datos a la nueva Mesa. Deseas continuar?</p>
                    <div class="row">
                    <div class="col-md-3"></div>
									<div class="col-md-6">
										<div class="form-group">
											<label for="linea" class="control-label">Mesas Disponibles</label>
											<select class='form-control' name='id_mesa' id='id_mesa' required>
												<option value="">-- Selecciona --</option>
												<?php

    $query_mesa = mysqli_query($conexion, "select id_mesa, nombre_mesa from mesas WHERE status_mesa = 0 order by nombre_mesa");
    while ($rww = mysqli_fetch_array($query_mesa)) {
        ?>
													<option value="<?php echo $rww['id_mesa']; ?>"><?php echo $rww['nombre_mesa']; ?></option>
													<?php
}
    ?>
											</select>
										</div>
									</div>
									</div>
                    <div class="modal-footer">
						<button type="button" class="btn btn-default waves-effect waves-light" data-dismiss="modal">Cancelar</button>
						<button type="submit" class="btn btn-danger waves-effect waves-light">Aceptar</button>
					</div>
				</div>
			</div>
		</div>
	</form>
    <?php
}
?>