The test has been correct, republish the modified pagination class, with a dot description
Source: Internet
Author: User
Pagination Some notes:
This class is not perfect, ask other experts to point out the deficiencies
$this->offset () is not useless, it returns the pointer to MySQL query, if you are using MySQL queries, it is limit $offset//$offste = $this->offset ();
$form _vars refers to the form variable//This has not been applied, just tested, confirmed that there is no fault, form variable name "|" To separate, as "Action|searchkey."
$char//You set the previous page, the next page, the previous group, the next group of characters, have a default value, you can not set
$color//The highlight color of the current page, also has the default value
You can put the previous page, the next page, such as individual output, can also be combined with the number of pieces of output, of course, can also add a form jump.
The function is still deficient, but I am too lazy to add the others.
In addition, I think it is easy to use, do not control the other so-called master rumors, those are not the people
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service