Re: New SlidingWindowPager Class
| From: | Lorenzo Alberton | Date: | Sat, 16 Nov 2002 12:52:57 +0000 |
| Subject: | Re: New SlidingWindowPager Class | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10869@lists.php.net to get a copy of this message | ||
16/11/2002 13.52.57
> i would assume the simpletemplate/flexy
> (and posibly smarty) code for it would
> look something like this. so range would
> be a associative array...
> {foreach:t.range,key,active}
> {if:active}{key}{else:}<a href="someurl?page={key}">{key}</a>{end:}
> {end:}
>
>
> its so the graphic designer can change the look/feel...
> - a version with icons and coloured backgrounds..
> <table><tr><td>
> <img='icon_for_page0.jpg'>
> {foreach:t.range,key,active}{if:active}
> </td><td bgcolor="red">{key}{else:}
> </td><td bgcolor="green"><a
> href="someurl?page={key}">{key}</a>{end:}
> {end:}
> </td>
> </tr></table>
Et voilà... I've called the array you requested
"$pager->range", since I was not very inventive
in that moment...
With that every imaginable customization can be
done.
You can test/download it here, with updated docs:
http://cambiano.onlinein.it/pearzone/
Look at the last line showed in the examples...
Regards,
Lorenzo
<shameless plug>
*** only one "+1" still missing... ***
</shameless plug>
---
[Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus]
[Quipo ISP - This E-mail was scanned for viruses by Declude Virus]