Hi to all!
I need some help to adapt this module for "manufacturers" to "manufacturers2", i test to modify but not work.
<?php
$info_box_contents = array();
//$info_box_contents[] = array('text' => 'Herstellerlogos');
new infoBoxHeading($info_box_contents, true, false);
$info_box_contents = array();
$fullstring = '<table width=100% border=0 cellpadding=0 cellspacing=3><tr>';
$row=0;
$manufacturers_query = tep_db_query("select manufacturers_name, manufacturers_id, manufacturers_image from " . TABLE_MANUFACTURERS . " where manufacturers_image not like '' order by manufacturers_name" );
if (tep_db_num_rows($manufacturers_query) >= '1') {
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$row++;
$fullstring .= '<td align=center valign=middle class=smallText>';
$fullstring .= '<a href=' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'] , 'NONSSL', false) . '>';
if ($manufacturers['manufacturers_image']) {
$fullstring .= '<img src='. DIR_WS_IMAGES . $manufacturers['manufacturers_image'] . ' width=56 height=46 border=0> ';
} else {
$fullstring .= '<a href=' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id'], 'NONSSL', false) . '>'. $manufacturers['manufacturers_name'];
}
$fullstring .= '</a>';
$fullstring .= '</td>';
if ((($row / 7) == (double)floor($row / 7))) {
$fullstring .='<tr>';
}
}
}
$fullstring .= '</td></tr></table>';
$info_box_contents = array();
$info_box_contents[] = array('text' => $fullstring);
//echo $fullstring;
new infoBox($info_box_contents);
?>
This module shows the manufacturers logo ;)
Thnks 4 your help!
P.D.: Sorry my bad english.