se que puede parecer un poco raro pero no tengo ni la mas minima idea como quitarme este marron de encima!!!
El problema es el siguente:
este es el codigo para la lista de productos de mi tienda y quieria cambiarla un poco de look,pero el problema que tengo es que no puedo poner las celdas de los productos para wue me salgan de tres en tres en cada fila!!!!
Porfavor,echadme una mano porque estoy desesperado !!!
Este es el codigo en cuestion:
Cita:
Agradesco de antemano la ayuda de todos!!! echo ' <table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td align="center" class="smallText" width="33%">
<table cellpadding="0" cellspacing="0" align="center" class="'.$tipoclase.'" width="200px" height="422px">
<tr>
<td>
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="200px" height="282px">
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], 200, 282) . '</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="200px" height="22px" align="center">
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '"><span class="letra_negrita">' . $listing['products_name'] . '</span></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('prod ucts_id', $listing['products_id']).'
<table cellpadding="0" cellspacing="0" align="center" height="28px">
<td width="100px"><span class="letra_negra_tachada">'.$precio_oferta.'</span>
</td>
<td width="100px"><span class="letra_negra_12">PVP</span> <span class="letra_negrita"> '.$products_price.'</span>
</td>
<tr>';
$sql_1 = "select products_extra_fields_id from products_extra_fields where products_extra_fields_status = 1 order by products_extra_fields_order asc";
$act_1 = mysql_query($sql_1) or die($sql_1);
while ($row_1 = mysql_fetch_array($act_1)) {
$sql_2 = "select products_extra_fields_value from products_to_products_extra_fields where products_id = '".$listing['products_id']."' and products_extra_fields_id = '".$row_1['products_extra_fields_id']."'";
$act_2 = mysql_query($sql_2) or die($sql_2);
if (mysql_num_rows($act_2) > 0) {
$val_1 = mysql_fetch_array($act_2);
$val_1 = $val_1[0];
if ($val_1 != '') {
echo '<table><tr>
</tr></table>';
}
}
}
echo '
</td>
</td>';
if ($precio_oferta != ""){
echo '
<td width="56px" valign="bottom">
'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('prod ucts_id', $listing['products_id']).'<input type="image" src="images/design/anadir_cesta_gris.jpg" name="sunmit"></form>
</td>';
}else{
echo '
<td width="56px" valign="bottom">
'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('prod ucts_id', $listing['products_id']).'<input type="image" src="images/design/anadir_cesta_gris.jpg" name="sunmit"></form>
</td>';
}
echo'
</table>
</td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
';
$precio_oferta = "";
$products_price = "";
<tr>
<td align="center" class="smallText" width="33%">
<table cellpadding="0" cellspacing="0" align="center" class="'.$tipoclase.'" width="200px" height="422px">
<tr>
<td>
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="200px" height="282px">
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '">' . tep_image(DIR_WS_IMAGES . $listing['products_image'], $listing['products_name'], 200, 282) . '</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td width="200px" height="22px" align="center">
<a href="' . tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id']) . '"><span class="letra_negrita">' . $listing['products_name'] . '</span></a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td>'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('prod ucts_id', $listing['products_id']).'
<table cellpadding="0" cellspacing="0" align="center" height="28px">
<td width="100px"><span class="letra_negra_tachada">'.$precio_oferta.'</span>
</td>
<td width="100px"><span class="letra_negra_12">PVP</span> <span class="letra_negrita"> '.$products_price.'</span>
</td>
<tr>';
$sql_1 = "select products_extra_fields_id from products_extra_fields where products_extra_fields_status = 1 order by products_extra_fields_order asc";
$act_1 = mysql_query($sql_1) or die($sql_1);
while ($row_1 = mysql_fetch_array($act_1)) {
$sql_2 = "select products_extra_fields_value from products_to_products_extra_fields where products_id = '".$listing['products_id']."' and products_extra_fields_id = '".$row_1['products_extra_fields_id']."'";
$act_2 = mysql_query($sql_2) or die($sql_2);
if (mysql_num_rows($act_2) > 0) {
$val_1 = mysql_fetch_array($act_2);
$val_1 = $val_1[0];
if ($val_1 != '') {
echo '<table><tr>
</tr></table>';
}
}
}
echo '
</td>
</td>';
if ($precio_oferta != ""){
echo '
<td width="56px" valign="bottom">
'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('prod ucts_id', $listing['products_id']).'<input type="image" src="images/design/anadir_cesta_gris.jpg" name="sunmit"></form>
</td>';
}else{
echo '
<td width="56px" valign="bottom">
'.tep_draw_form('cart_quantity', tep_href_link(FILENAME_PRODUCT_INFO, tep_get_all_get_params(array('action')) . 'action=add_product')).tep_draw_hidden_field('prod ucts_id', $listing['products_id']).'<input type="image" src="images/design/anadir_cesta_gris.jpg" name="sunmit"></form>
</td>';
}
echo'
</table>
</td>
</tr>
</td>
</tr>
</table>
</td>
</tr>
</table>
';
$precio_oferta = "";
$products_price = "";