<?php
session_start();

include("conexion.php");

@$xid = $_REQUEST['xid'];
@$xvehiculo = $_REQUEST['xvehiculo'];

@$xs_empresa=$_SESSION['s_empresa'];	

	?>			
	<script language="javascript">
	//alert("Tipooooooo")

	</script>										
	
	<?php

	
?>

<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

			<select class="input_texto"  style="padding:3px; letter-spacing:-1px; width:195px;" name="xvehiculo" id="xvehiculo" >

			<option value=""></option>

					<?php
					
					$r_vehiculo=mysqli_query($conexion,"SELECT * FROM vehiculos WHERE traemp_codi_fk=$xid ORDER BY veh_placa;");											
					
					while($row_vehiculo=mysqli_fetch_array($r_vehiculo)){
					
					
					?>
					
			<option value="<?php echo $row_vehiculo['veh_codi']; ?>" <?php if($xvehiculo==$row_vehiculo['veh_codi']){ ?> selected="selected" <?php } ?> ><?php echo $row_vehiculo['veh_placa']." - ".$row_vehiculo['veh_marca']; ?></option>					
					
					<?php
					
					
					}
					
					
					?>
			</select>
												