Example #1
0
>
									 <?php 
        echo $row->nombre;
        ?>
			                       	</option>	
			                    <?php 
    }
    ?>
                    		 	</select>
								<br />  
								<br />    
                    		 	&nbsp;<strong>CHOFER</strong>&nbsp;
                    		 	<select name="cmbChofer">
			                    <option value="">SELECCIONE...</option>
			                    <?php 
    $result = obtenerChoferes($link);
    while ($row = mysql_fetch_object($result)) {
        ?>
		
									<option value="<?php 
        echo $row->id;
        ?>
" 
									 <?php 
        if ($_REQUEST["cmbChofer"] == $row->id) {
            ?>
 selected <?php 
        }
        ?>
>
									 <?php 
Example #2
0
                        </tr>
            			<tr>
                    		<td class="text" colspan="11"><hr></td>
                		</tr> 
                        <tr>
                        	<td colspan="6">&nbsp;</td>
                        </tr> 
                        <tr>
                        	<td colspan="6"></td>
                        </tr>                                                                                               
          			</table>
                    <strong style="padding-left:15px">CHOFER</strong>&nbsp;
                     <select name="cmbChofer">
                     	<option value=""></option>
                     	<?php 
$choferes = obtenerChoferes($link);
while ($row = obtenerRegistro($choferes)) {
    ?>
                     	<option value="<?php 
    echo $row->id;
    ?>
">
                     	<?php 
    echo $row->nombre;
    ?>
                     	</option>
                     	<?php 
}
?>
                     </select> 
						&nbsp;