Re: Using a section to display a table with X elements per line

From: Date: Mon, 04 Mar 2002 15:25:28 +0000
Subject: Re: Using a section to display a table with X elements per line
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2937@lists.php.net to get a copy of this message
At 04:08 PM 3/4/02 +0100, Bertrand DUNOGIER wrote:
The problem is that i'd like to give the user the option to chose the number of elements / line... is there any cleaner way ? I thought about something using modulo but i come in a big mess when i reach the end of the section and need to check how many TD i have to close before i close the tr... so ? :)
Why not just use the table function @ http://www.mapledesign.co.uk/coding/smarty_table.php ? Then you just assign the number of columns you want to a variable, and you've got what you want with no effort :-) Peter. -- Maple Design - http://www.mapledesign.co.uk

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