[prev in list] [next in list] [prev in thread] [next in thread]
List: smarty-general
Subject: RE: [SMARTY] Auto-Pagination for Smarty
From: <jrcajide () infotarifa ! com>
Date: 2002-10-30 10:32:31
[Download RAW message or body]
The idea is:
$QUERY_STRING = ereg_replace("(^|&)page=[0-9](&|$)","\\1",
$_SERVER['QUERY_STRING']);
$thispage = $_SERVER['PHP_SELF']."?".$QUERY_STRING;
and then modify all the links
-----Mensaje original-----
De: Ben Phillips [mailto:ben@inchima.com]
Enviado el: miercoles, 30 de octubre de 2002 11:30
Para: smarty-general@lists.php.net
Asunto: RE: [SMARTY] Auto-Pagination for Smarty
jose,
> Good idea. I have tested and it works, but?
> what about the query string? If
> http://127.0.0.34/table.php?hello=1 show me a > list of
> records when click on the paging link the query string
> becomes http://127.0.0.34/table.php?page=1 and not
> http://127.0.0.34/table.php?page=1&hello=1
> This should be implemented.
it certainly should, and is on my to-do list. all that's needed is to
loop over the $_GET[] array and reattach them to the link.
benji.
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic