RE: [PEAR] Sortable tables
| From: | Simon H | Date: | Mon, 17 Dec 2001 09:58:50 +0000 |
| Subject: | RE: [PEAR] Sortable tables | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-610@lists.php.net to get a copy of this message | ||
I know how to use the query to sort the table, but I want to put a sort
button into the TH of all my tables, each of which will have different
queries. I was just interested to see if anyone know of a re-usable method
that I could call for each table as and when required.
Thanks anyway Arnaud!
Simon
-----Original Message-----
From: LIMBOURG Arnaud [mailto:arnaud.limbourg@cegetel.fr]
Sent: 17 December 2001 07:46
To: Simon H; Pear-General
Subject: RE: [PEAR] Sortable tables
It has more to do with your query than with the classes you use.
Pass a parameter to the script which will build the query with the correct
ORDER BY taking the parameter.
Arnaud.
> I'm looking for a re-usable method for creating sortable tables i.e.
>
> Fetch data from DB (Pear DB)
> Create table header with Ascending and Descending links that
> sort the table
> by that column.
> Create the rest of the table.
>
> I am currently using the Pager.php class which is excellent.
> It would be
> great if something could integrate with this, or at least
> work with it.
>
> Unfortunately, I wouldn't know where to start here, and pray
> for the day
> when I can actually start contributing to the effort, but if
> someone has any
> ideas on this, I'd be most grateful.
>
> TIA
>
> Simon H.
>
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, e-mail: pear-general-unsubscribe@lists.php.net
> For additional commands, e-mail: pear-general-help@lists.php.net
> To contact the list administrators, e-mail:
> php-list-admin@lists.php.net
>