Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Manufacturer Box


Guest

Recommended Posts

Hello everybody

 

i try since the whole day to make a manufacturers box with a grid box

 

it shall look like the alhpabetical box left side on www.revhq.com

 

it's nearly finished, but the manufacturers are shown right of the box, so not inside

 

maybe somebody could help me

 

<?php
/*
?$Id: information.php,v 1.6 2003/02/10 22:31:00 hpdl Exp $

?osCommerce, Open Source E-Commerce Solutions
?http://www.oscommerce.com

?Copyright (c) 2003 osCommerce

?Released under the GNU General Public License
*/
?>
<!-- manufacturers3 //-->
? ? ? ? ?<tr align="center">
? ? ? ? ? ?<td>
<?php
?$info_box_contents = array();
?$info_box_contents[] = array('text' => BOX_HEADING_MANUFACTURERS3);

?new infoBoxHeading($info_box_contents, false, false);


$row = 0;
? ?$manufacturers3_query = tep_db_query("select manufacturers3_name, manufacturers3_id from " . TABLE_MANUFACTURERS3 . " order by manufacturers3_name" );
? ?while ($manufacturers3 = tep_db_fetch_array($manufacturers3_query)) {
? ? ?$row++;
? ? ?echo '<td align="center" valign="top" width="25%" class="smallText"><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers3_id=' . $manufacturers3['manufacturers3_id'] . '=' . $manufacturers3['manufacturers3_name'], 'NONSSL', false) . '">'. $manufacturers3['manufacturers3_name'] . ' <br> ' . "</a><br><br>\n";
? echo '</td>';

? ? ?if ((($row / 5) == floor($row / 5))) {
?>
? ? ? ? ?</tr>
? ? ? ? ?<tr>
? ? ? ? ? ?<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
? ? ? ? ?<?php
? ? ?}
}
? ?new infoBox($info_box_contents);
?>

? ? ? ? ? ?</td>
? ? ? ? ?</tr>
<!-- manufacturers3_eof //-->

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...