Re: Using a section to display a table with Xelements per line
| From: | Monte Ohrt | Date: | Mon, 04 Mar 2002 16:32:02 +0000 |
| Subject: | Re: Using a section to display a table with Xelements per line | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2945@lists.php.net to get a copy of this message | ||
This is a nice class, I've asked Peter to make it plugin compatible so
it can be put in a plugin contribs section on the website. I've also
asked him to support cell data going down the columns instead of across
like so:
cell 1 cell 4 cell 7
cell 2 cell 5 cell 8
cell 3 cell 6 cell 9
The table example I have on the web site isn't quite as full-featured,
but it also doesn't have the overhead of including a PEAR library and
assembling a class structure. Use what works best for your needs.
Monte
Luc Saint-Elie wrote:
>
> Hello Bernard,
>
> You may want to have a look to mappledesign port of PEAR_table function
> with Smarty :
> http://www.mapledesign.co.uk/coding/smarty_table.php
>
> Its very handy for standard use
>
> Luc
>
> At 16:08 04/03/02 +0100, Bertrand DUNOGIER wrote:
> >Hi,
> >
> >i'm workin' on a script that displays a table with 3 elements / line,
> >using a section (an images thumbnail browser).
> >
> >At the moment, i'm using a section with a step of 3 and I added 2
> >custom index_ properties to the section (index + 1 and index + 2)
> >which add 1 and 2 to the section (not step * 1 and step * 2).
> >
> >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 ? :)
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/
--
Monte Ohrt <monte@ispi.net>
Director of Technology, ispi Inc.