View Single Post
  #19  
Old 09-08-2006, 01:19 PM
  NightFire's Avatar 
NightFire NightFire is offline
 

X-Adept
  
Join Date: Jul 2004
Location: The Netherlands
Posts: 561
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

The IMG codes didn't work for me. So I modified the original code a little bit and adjusted the fonts etc to the standards of x-cart. I'm using 2 collums. Here's my code. The file system image code is not included:

Code:
{* $Id: customer_manufacturers_list.tpl,v 1.3 2004/05/28 12:21: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="5" cellspacing="0"> {/if} { if %mid.index% is div by 2} <tr> {/if} <td align="center" valign="middle"> <table bgcolor="#FFFFFF" cellspacing="0" cellpadding="0" border="0"><tr><td height="70"> <A href="manufacturers.php?manufacturerid={$manufacturers[mid].manufacturerid}"> <img border="0" src="mlogo.php?manufacturerid={$manufacturers[mid].manufacturerid}"></a></td></tr> <tr><td align="center" valign="middle"> <A href="manufacturers.php?manufacturerid={$manufacturers[mid].manufacturerid}"><FONT class="ItemsList">{$manufacturers[mid].manufacturer}</FONT></a></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%"}<p>
__________________
Best regards,
Niki Buitenrust Hettema

X-Cart Gold 4.1.8 (Live & Loaded)
Royal Bhaktapur: Handmade products from Nepal - Pashmina's, scarfs, shawls, stola's and more...
Reply With Quote