<?php
session_start();

include("conexion.php");

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

@$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:335px;" name="xtransportista" id="xtransportista" >

			<option value=""></option>

					<?php
					
					$r_conductor=mysqli_query($conexion,"SELECT * FROM transportistas WHERE traemp_codi_fk=$xid ORDER BY tra_apellido_nombre;");											
					
					while($row_conductor=mysqli_fetch_array($r_conductor)){
					
					
					?>
					
			<option value="<?php echo $row_conductor['tra_codi']; ?>" <?php if($xconductor==$row_conductor['tra_codi']){ ?> selected="selected" <?php } ?> ><?php echo $row_conductor['tra_apellido_nombre']." - ".$row_conductor['tra_ruc_dni']; ?></option>									

					
					<?php
					
					
					}
					
					
					?>
			</select>							
									