View Single Post
  #24  
Old 09-22-2006, 02:39 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

Hi weckie,

I'm using the codes as you listed below in my "customer_manufacturers_list.tpl" and the images are now showing up. Can you please help point me to the right direction? This is what it shows.

http://img117.imageshack.us/img117/5845/manufacturerswa2.jpg

Thanks
-Tuan


Quote:
Originally Posted by weckie
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}
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote