Codice: Seleziona tutto
<?php
//BOF - Custom hack for extra images ////////////////////////////////////////
?>
<TR>
<TD align="center">
<TABLE border=0 cellpadding=2 cellspacing=0>
<TR>
<?php
$rowcount_value=4;
$rowcount=1;
$products_extra_images_query = tep_db_query("SELECT products_extra_image, products_extra_images_id FROM " . TABLE_PRODUCTS_EXTRA_IMAGES . " WHERE products_id=" . $product_info['products_id']);
while ($extra_images = tep_db_fetch_array($products_extra_images_query)) {
?>
<TD class="main" width="<?php echo SMALL_IMAGE_WIDTH; ?>" valign="top" align="center" >
<script language="javascript"><!--
document.write('<?php echo '<a href="images/' . $product_info['products_image'] . '" rel="lightbox" title="' . $extra_images['products_extra_images_id'] . '">' . tep_image(DIR_WS_IMAGES . $extra_images['products_extra_image'], addslashes($product_info['products_name']), SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>');
//--></script>
<NOSCRIPT>
<?php echo '<a href="' . tep_href_link(DIR_WS_IMAGES . $product_info['products_image']) . '" target="_blank">' . tep_image(DIR_WS_IMAGES . $product_info['products_image'], $product_info['products_name'], SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'hspace="5" vspace="5"') . '<br>' . TEXT_CLICK_TO_ENLARGE . '</a>'; ?>
</NOSCRIPT>
</td>
<?php
if ($rowcount == $rowcount_value){echo '</tr><tr>'; $rowcount=1;}
else {$rowcount=$rowcount+1;}
}
?>
</tr>
</TABLE>
</td>
</tr>
<?php
//BOF - Custom hack for extra images ////////////////////////////////////////
?>