View Single Post
  #20  
Old 04-26-2005, 07:30 PM
 
Lingerieblowout Lingerieblowout is offline
 

X-Adept
  
Join Date: Sep 2003
Location: Annapolis, MD
Posts: 415
 

Default

This is how I tried to do it but still make 1 row of six instead of 2 rows of 3

{* $Id: recommends.tpl,v 1.3 2004/03/01 16:26:00 salsabeel Exp $ *}
{if $recommends}
{capture name=recommends}

{assign var="col" value="0"}
{assign var="numCols" value="3"}

<table border=0 width=100%>
<tr>

{section name=num loop=6}


{if $col == $numCols}
</tr><tr>{assign var="col" value="0"}
{/if}


<td width=200 align=center valign=top>
{$recommends[num].product}</font>
</td>
{assign var="col" value="`$col+1`"}
{/section}

</tr>
</table>



{/capture}
{include file="dialog.tpl" title=$lng.lbl_recommends content=$smarty.capture.recommends extra="width=100%"}{/if}
__________________
http://www.lingerieblowout.com
Version 4.1.10

http://www.topnichewebsites.com
Version 4.4.5

Michael
Reply With Quote