Re: New SlidingWindowPager Class

From: Date: Tue, 12 Nov 2002 23:13:35 +0000
Subject: Re: New SlidingWindowPager Class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-10741@lists.php.net to get a copy of this message
looks really nice +1 is there any way to get some kind of array of data summarizing the bar.. - I had alot of trouble before trying to use the Pager class with a template engine. - all it needed was something like this. Array =>
    beginID  =>1 // or FALSE
    backID => 2 // or FALSE
    range
        [2] => FALSE
        [3] => TRUE  // (selected)
        [4] => FALSE
        [5] => FALSE;
    forwardID => 4 // or FALSE
    endID => 80 // or FALSE
from this It should be possible to build the pager display in the template Regards Alan Lorenzo Alberton wrote:
12/11/2002 21.35.34
http://cambiano.onlinein.it/pearzone/SWPager/SWPager_example1.php http://cambiano.onlinein.it/pearzone/SWPager/SWPager_example2.php http://cambiano.onlinein.it/pearzone/SWPager/SWPager_example3.php The server should be a lot faster too :-)
     
Thanks for the extra work, Lorenzo. It looks good for me so +1. I have a feature request though :) It would be cool to have the possibility to use a google like algorythm to display pages but with the same number of pages all the time. At the moment, when you are on page one, it only returns 4 page links. Then when you are on page 4, it returns 6 page links. I would like to have 6 page links from the beginning.
At dinner I had the clue on how implement Bertrand Mansion's request without affecting performances and leaving it as a choice. You can look at the added option here: http://cambiano.onlinein.it/pearzone/SWPager/SWPager_example4.php Tell me if it's what you wanted, and of course if you like it... :-) Regards, Lorenzo Alberton --- [Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus] [Quipo ISP - This E-mail was scanned for viruses by Declude Virus]


« previous php.pear.dev (#10741) next »