Re: Structures_DataGrid_Renderer_Pager: showing the page that contains a given entry
| From: | Mark Wiesemann | Date: | Mon, 08 Jan 2007 22:20:34 +0000 |
| Subject: | Re: Structures_DataGrid_Renderer_Pager: showing the page that contains a given entry | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26294@lists.php.net to get a copy of this message | ||
Hi Sylvain,
Sylvain Beucler wrote:
> I'd like to do use Structures_DataGrid to show a list of data entries,
> with a Pager to show those entries split on several pages, and be able
> to select a page by saying "show me the page that contains data X".
If I got your idea right, you want to do something similar to the
account listing on the PEAR website:
http://pear.php.net/accounts.php
This page wasn't realized with Structures_DataGrid, but the code used
there might give you an idea of how to calculate the offset for the page
that contains "data X".
The code for the accounts page is here:
http://cvs.php.net/viewvc.cgi/pearweb/public_html/accounts.php?view=markup
Regards,
Mark