<?php
?>
-->
<div class="form-group" >
<div class="row">
<label>Conductor:</label>
<select name="conductor" id="conductor" class="form-group">
<option value="0">---seleccione---</option>
<?php
while ($lista = mysqli_fetch_assoc($result)){ ?>
<option value = " <?php echo $lista['nombre']; ?> "><?php echo $lista['nombre']; ?></option>
<?php } ?>
</select>
<label>Número Bus :</label>
<select name="bus" id="bus" class="form-group">
<option value="0">---seleccione---</option>
<?php
while ($li = mysqli_fetch_assoc($result1)){ ?>
<option value = " <?php echo $li['busid']; ?> "><?php echo $li['busid']; ?></option>
<?php } ?>
</select>
<label> Parada Origen:</label>
<select name="origen" id="origen" class="form-group">
<option value="0">---seleccione---</option>
<?php
while ($li = mysqli_fetch_assoc($result2)){ ?>
<option value = " <?php echo $li['origen']; ?> "><?php echo $li['origen']; ?></option>
<?php } ?>
</select>
<label>Parada Destino:</label>
<select name="destino" id="destino" class="form-group">
<option value="0">---seleccione---</option>
<?php
while ($li = mysqli_fetch_assoc($result3)){ ?>
<option value = " <?php echo $li['destino']; ?> "><?php echo $li['destino']; ?></option>
<?php } ?>
</select>
</div>
<script>
function buscar() {
var conductor = document.getElementById("conductor").value;
var bus = document.getElementById("bus").value;
var origen = document.getElementById("origen").value;
var destino = document.getElementById("destino").value;
alert(bus);
alert(conductor);
alert(origen);
alert(destino);
} Buscar
<button type="button" class="btn btn-success" id="btnExport" value=" Export Excel " >Export Excel <span class="glyphicon glyphicon-download-alt"></span></button>
</div>
<div class="panel-body">
<div id="dvData" class="table-responsive">
<table id="exportTable" class="table table-striped table-bordered table-hover">
<thead>
<tr class="danger">
<th>Venta Taquilla</th>
<th>Total Pasajeros</th>
<th>Billetes Vendidos </th>
<th>Ingreso Total</th>
</tr>
</thead>
<tbody>
<tr>
<?php
while ($datos = $resultado->fetch_array()) {
?>
<tr>
<td><?php echo $datos["ventaT"] ?></td>
<td><?php echo $datos["totalP"] ?></td>
<td><?php echo $datos["billetesV"] ?></td>
<td><?php echo $datos["ingresoT"] ?></td>
</tr>
<?php
}
?>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<footer><p>Copyright © 2017: <a href="http://empresafreire.com">Empresa Freire S.L.</a></p></footer>
</div>
</div>