View Single Post
  #41  
Old 09-18-2007, 04:22 PM
 
TL408 TL408 is offline
 

X-Adept
  
Join Date: Jan 2005
Posts: 549
 

Default Re: Manufacturers with icons on customer_manufacturers_list.tpl

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%"'}
----------------------------------------------------------------------------------------------------------------------------------------
__________________
Win2003 IIS6, PHP 5.2.3, MySQL 5.0.45 and X-Cart 4.1.9
Reply With Quote