Ver Mensaje Individual
  #6 (permalink)  
Antiguo 07/11/2009, 11:25
Crispin32
 
Fecha de Ingreso: noviembre-2009
Mensajes: 16
Antigüedad: 14 años, 5 meses
Puntos: 0
Respuesta: Seleccionar varias unidades

Hola nuevamente, este es pate de código que utilizo, si hace falta que lo ponga enter lo pongo. Gracias nuevamente.

//-->
</script>
</head>

<body>
<p>&nbsp;</p>
<table width="40%" border="1" align="center" cellpadding="2" cellspacing="10" bgcolor="#000033">
<tr>
<th background="../imagenes/Fondos/top.gif" scope="col"><span class="Estilo13">Alemania.</span></th>
</tr>
</table>
<blockquote>
<p><a href="javascript:history.go(-1);"><img src="http://www.forosdelweb.com/f91/imagenes/volver.gif" alt="volver" border="0" width="9" height="9" /></a> <a href="javascript:history.go(-1);">Volver</a></p>
</blockquote>
<table width="91%" border="1" align="center" cellpadding="2" cellspacing="10" bgcolor="#000033">
<tr bgcolor="#000066">
<th width="8%" scope="col"><span class="Estilo9">Fecha.</span></th>
<th scope="col"><span class="Estilo9">Im&aacute;genes.</span></th>
<th width="10%" scope="col"><span class="Estilo9">Valor.</span></th>
<th width="25%" scope="col"><span class="Estilo9">Descripci&oacute;n.</span></th>
<th width="13%" scope="col"><span class="Estilo9"><a href="http://www.forosdelweb.com/f91/Consevacion_monedas.html" target="_blank" onclick="MM_openBrWindow('../Consevacion_monedas.html','conservacion','status=y es,scrollbars=yes,resizable=yes,width=500,height=6 00')">Conservaci&oacute;n.</a></span></th>
<th width="9%" scope="col"><span class="Estilo9">Precio.</span></th>
<th width="9%" scope="col"><div align="center"><span class="Estilo12">Unidades.</span></div></th>
<th width="5%" scope="col"><div align="center" class="Estilo12">Elegir.</div></th>
</tr>
<?php do { ?>
<tr bgcolor="#000099">
<td align="center" valign="middle"><div align="center" class="Estilo12"><?php echo $row_euros['anio']; ?></div></td>
<td><div align="center"><img src="http://www.forosdelweb.com/f91/imagenes/Venta/Euros/Alemania/<?php echo $row_euros['img1']; ?>" border="0" /></div></td>
<td><div align="center"><?php echo $row_euros['valor']; ?></div></td>
<td><div align="center"><span class="Estilo11"><?php echo $row_euros['descripcion']; ?></span></div></td>
<td><div align="center"><?php echo $row_euros['conservacion']; ?></div></td>
<td><div align="center"><?php echo $row_euros['precio']; ?> €</div></td>
<td><div align="center"><?php
$var = $row_euros['unidades'];
echo '<select name="unidades" id="unidades">';
//$var es el total de unidades
for($i = 0; $i < $var; $i++){
echo '<option value=$i>$i</option>';
}
echo '</select>';
?>
</div></td>
<td><div align="center">
<form action="../carrito.php" method="post" name="form1" target="_blank" id="form1">
<input name="id" type="hidden" id="id" value="<?php echo $row_euros['id']; ?>" />
<input name="producto" type="hidden" id="producto" value="<?php echo $row_euros['valor']; ?>" />
<input name="pais" type="hidden" id="pais" value="<?php echo $row_euros['pais']; ?>" />
<input name="img1" type="hidden" id="img1" value="<?php echo $row_euros['img1']; ?>" />
<input name="anio" type="hidden" id="anio" value="<?php echo $row_euros['anio']; ?>" />
<input name="descripcion" type="hidden" id="descripcion" value="<?php echo $row_euros['conservacion']; ?>" />
<input name="precio" type="hidden" id="precio" value="<?php echo $row_euros['precio']; ?>" />
<input name="unidades" type="hidden" id="unidades" value="<?php echo $row_euros['unidades']; ?>" />
<label>
<input type="image" name="imageField" id="imageField" src="../imagenes/carrito.gif" />
</label>
</form>
</div></td>
</tr>
<?php } while ($row_euros = mysql_fetch_assoc($euros)); ?>
</table>
<p>&nbsp;</p>
</body>
</html>