The codes below work like a charm (as of version4.1.
. Thanks guys!!!
The only minor issue I see is that it's pulling all of the thubnail images via "image.php" instead of directly via the filesystem. This is extremely slow when you have hundreds of different manufacturer thumbnails.
Hopefully someone here knows how to re-write it and have the thumbnail images pull directly from the filesystem intead.
----------------------------------------------------------------------------------------------------------------------------------------
{* $Id: customer_manufacturers_list.tpl,v 1.6 2005/11/21 12:42:10 max Exp $ *}
{capture name=dialog}
{assign var="tmp" value="0"}
{section name=mid loop=$manufacturers}
{if $manufacturers[mid].manufacturerid}{assign var="tmp" value="1"}{/if}
{/section}
{section name=mid loop=$manufacturers}
{ if %mid.first% }
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
{/if}
{ if %mid.index% is div by 4}
<tr>
{/if}
<td align="center" valign="middle">
<table bgcolor="#FFFFFF" cellspacing="5" cellpadding="5" border="0"><tr><td height="65">
<A href="manufacturers.php?manufacturerid={$manufactu rers[mid].manufacturerid}">
<img src="image.php?id={$manufacturers[mid].manufacturerid}&type=M" /></a>
</td>
<td align="center" valign="middle">
<font class="ItemsList">
{* {$manufacturers[mid].manufacturer}</font> *}
</td></table>
{ if %mid.last% }
</table>
{/if}
{/section}
{/capture}
{include file="dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog extra='width="100%"'}
----------------------------------------------------------------------------------------------------------------------------------------