How to do two column list using section?
| From: | Jim Harlindong | Date: | Sat, 03 Mar 2001 09:20:47 +0000 |
| Subject: | How to do two column list using section? | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-270@lists.php.net to get a copy of this message | ||
Hello,
another question...
I want to display an array in two columns using table, e.g.
data 1 | data 2
data 3 | data 4
data 5 | data 6
...
using section.. how can this be done?
the code would be something like
{section name=list loop=$data}
<tr>
<td>{$list/data}</td>
<td>{$list/data}</td>
</tr>
{/section}
Also need to handle the situation where the second column is blank because
the data ends at the first column.
Thanks