Thank you for the codes, NightFire. I updated my "customer_manufacturers_list.tpl" file up your codes. However, the images are not showing up. And this is what it looked like.
http://www.mvpautoparts.com/manufacturers.php
http://img108.imageshack.us/img108/5008/manufacturersmx2.jpg
After looking over and over again, I notice that your code referenced the "mlogo.php" file to call the image. However, I can not find this "mlogo.php" file anywhere in the entire xcart directory. Am I missing something here?
Thanks
-Tuan
Quote:
Originally Posted by NightFire
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>
|