Re: How to do two column list using section?

From: Date: Sat, 03 Mar 2001 16:27:55 +0000
Subject: Re: How to do two column list using section?
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-283@lists.php.net to get a copy of this message
Here's my version: <%section name=cat loop=$categories%> <%if %cat.index% is even%><tr><%if%> <td>something here</td> <%if %cat.index% is even && %cat.rownum% == %cat.loop% %> <td>&nbsp;</td> <%/if%> <%if %cat.index% is odd%></tr><%if%> <%/section%> I added a check for the last column if the number of data is odd, I need to add the last empty column.

« previous php.smarty.general (#283) next »