}
    }
}
?>
    </select></td>
<tr>
<td colspan="6">
<p class="respDetalleAD">Recepcion</p>
	  <hr></td>
</tr>
<tr>
	<td>Bodega</td>
	<td colspan="5"><label>
	  <select name="Bodegas">
	     <?php 
$AllBodegas = $bodega->GetAll();
$claves = array_keys($AllBodegas);
$cant = count($AllBodegas);
if ($cant > 0) {
    for ($i = 0; $i < $cant; $i++) {
        echo "<option value={$claves[$i]}";
        if ($claves[$i] == $_SESSION["nbodega"]) {
            echo " selected ";
        }
        echo ">";
        foreach ($AllBodegas["{$claves[$i]}"] as $valor) {
            echo "{$valor}</option>";
        }
    }
}
?>
Exemplo n.º 2
0
 </td>
</tr>
</table>

<input type="hidden" name="hd_variable" value="<?php 
echo $editar;
?>
"/>
<input type="hidden" name="id_variable" value="<?php 
echo $editar;
?>
"/>
</form>
<br>
<?php 
$Allbodega = $bodega->GetAll();
$claves = array_keys($Allbodega);
$cant = count($Allbodega);
if ($cant > 0) {
    echo "<table border=1  width='400' align='center' class='filaPar'>";
    for ($i = 0; $i < $cant; $i++) {
        echo "<tr align='center'>";
        $value = count($Allbodega["{$claves[$i]}"]);
        $claves2 = array_keys($Allbodega["{$claves[$i]}"]);
        $cant2 = count($Allbodega["{$claves[$i]}"]);
        //echo $cant2."<br>";
        foreach ($Allbodega["{$claves[$i]}"] as $valor) {
            echo "<td>{$valor} </td>";
        }
        echo "<td width='10%'><a href='paso.php?c=x&editar=" . $claves[$i] . "'><img border=0 src='imagenes/editar.jpg' width='20' height='20' ></a></td>";
        //echo "<td><a href='paso.php?c=x&eliminar=".$claves[$i]."'><img border=0 src='imagenes/delete.jpg' width='20' height='20'></a></td>";