Re: New SlidingWindowPager Class
| From: | Lorenzo Alberton | Date: | Fri, 15 Nov 2002 08:36:57 +0000 |
| Subject: | Re: New SlidingWindowPager Class | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-10829@lists.php.net to get a copy of this message | ||
15/11/2002 9.36.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>
>
> I get a bit anal in my old age in seperating display and code.. - I
> usually get very annoyed with myself if I put any HTML inside the PHP
> code :) Regards Alan
ok, now I see what you mean... :-)
Yes, you're right, you can't do all those things with the current page.
A high level of personalization is already possible, though:
you can assign a CSS class to links, and a different one to first /
last / current one, you can even display an img instead of prev / next
links, and before/after first and last page number, but ATM you can't
alternate styles or substitute page numbers with images.
I'll see what I can do :-)
Regards,
Lorenzo
---
[Quipo ISP - Questa E-mail e' stata controllata dal programma Declude Virus]
[Quipo ISP - This E-mail was scanned for viruses by Declude Virus]