Re: maximum time
| From: | Cesare D'Amico | Date: | Wed, 19 Jul 2000 18:22:19 +0000 |
| Subject: | Re: maximum time | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-7316@lists.php.net to get a copy of this message | ||
> I don't know if your response answers the orginal question, but it
> sure answers the question was was just getting ready to post....
> thanks
> ken
You're wellcome! =)
Just one more hint....
you can use the $numpages value to create a list of clickable
numbers of pages, so, if you have 10 rows per page and click on
page 6, you can go straight to row 61 without clicking five times on
the "next >>>" link ("avanti >>>" in Italian =)
Just add something like this (I put it between the "previous" and
"next" buttons within a table):
Page:
<?php
for( $loop = 0; $loop < $numpages; $loop++ ) {
if( $row == $loop * $rxp )
echo "<font color=\"#ff6666\">";
else
echo"<a
href=\"$PHP_SELF?row=".($loop*$rxp)."&rxp=$rxp\">";
echo " ".($loop + 1)." ";
if( $row == $loop * $rxp )
echo "</font>";
else
echo "</a>";
}
?>
In that way you have a red number on the page number which you
are showing (not clickable), and the links to all the other pages...
You could also select just a range of the pages (5 before and 5
after the one you're showing), if (for example) you have more than
10 pages... Don't stop to how I make things, try by yourself other
ways... =)
Ciao
Cesare