Re: How to do two column list using section?

From: Date: Sat, 03 Mar 2001 12:04:25 +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-271@lists.php.net to get a copy of this message
Hello! > 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? {section name=list loop=$data} {if %list.index% is not odd}<tr><td>{else}<td>{/if} {$list/data} {if %list.index% is not odd}</td>{else}</td></tr>{/if} {/section} Goba __________________________________________________________________ Hungarian PHP Manual :: Hungarian PHP Mirror :: http://hu.php.net/ The starintg-point for Hungarian webmasters :: http://weblabor.hu/

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