JnJSpdShop Posted December 18, 2004 Posted December 18, 2004 I just got the all manfactures contribution installed and it works fine, however I would like to scale down the images just for this section, because I have alot of manufactures, I would like to have the images 1/2 the size they are originally. Is there a way to do this or no <!-- all manufacturers begin //--> <?php $row = 0; $manufacturers_query = tep_db_query("select manufacturers_name, manufacturers_id, manufacturers_image from " . TABLE_MANUFACTURERS . " order by manufacturers_name" ); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $row++; echo '<td align="center" valign="top" width="25%" class="smallText">'; echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '=' . $manufacturers['manufacturers_name'], 'NONSSL', false) . '">' . tep_image(DIR_WS_IMAGES . $manufacturers['manufacturers_image'], $manufacturers['manufacturers_name']) . "</a><br><br>\n"; echo '</td>'; if ((($row / 4) == floor($row / 4))) { ?> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <?php } } ?> <!-- all manufacturers end //-->
boxtel Posted December 18, 2004 Posted December 18, 2004 I just got the all manfactures contribution installed and it works fine, however I would like to scale down the images just for this section, because I have alot of manufactures, I would like to have the images 1/2 the size they are originally. Is there a way to do this or no <!-- all manufacturers begin //--> <?php $row = 0; $manufacturers_query = tep_db_query("select manufacturers_name, manufacturers_id, manufacturers_image from " . TABLE_MANUFACTURERS . " order by manufacturers_name" ); while ($manufacturers = tep_db_fetch_array($manufacturers_query)) { $row++; echo '<td align="center" valign="top" width="25%" class="smallText">'; echo '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] . '=' . $manufacturers['manufacturers_name'], 'NONSSL', false) . '">' . tep_image(DIR_WS_IMAGES . $manufacturers['manufacturers_image'], $manufacturers['manufacturers_name']) . "</a><br><br>\n"; echo '</td>'; if ((($row / 4) == floor($row / 4))) { ?> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <tr> <?php } } ?> <!-- all manufacturers end //--> <{POST_SNAPBACK}> suggest you post this in the relevant contribution section Treasurer MFC
Recommended Posts
Archived
This topic is now archived and is closed to further replies.