View Single Post
  #15  
Old 07-20-2006, 02:41 PM
 
weckie weckie is offline
 

eXpert
  
Join Date: Feb 2005
Location: Netherlands
Posts: 220
 

Default

Here's te code for 4.1.2. Works well.

Code:
{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="5" cellspacing="0"> {/if} { if %mid.index% is div by 3} <tr> {/if} <td align="center" valign="middle"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"><tr><td height="70"> [img]image.php?id={$manufacturers[mid].manufacturerid}&type=M[/img]</td></tr> <tr><td align="center" valign="middle"> <font class="ItemsList">{$manufacturers[mid].manufacturer}</font></td></tr></table> </td> { if %mid.last% } </tr> </table> {/if} {/section} {/capture} {include file="dialog.tpl" title=$lng.lbl_manufacturers content=$smarty.capture.dialog extra='width="100%"'}

It is in three column, if you want more, just change
Code:
{ if %mid.index% is div by 3}
__________________
Herman Steijn

Using: X-cart 4.5.4
AT: http://www.weckonline.com LIVE
Reply With Quote