PHP Classes
elePHPant
Icontem

Karol's Pager: Generate links to navigate listings split in pages

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   Screenshots Screenshots   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2005-06-17 (10 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 702 All time: 4,370 This week: 1,287Up
Version License Categories  
karolspager 1.0GNU General Publi...HTML
Description Author  

This is a simple package that can generate navigation HTML links to browse listings split between multiple pages.

The pager class takes the limit number of entries to list per page, the total number of entries in the whole listing and the first entry to list in the current page.

The navigation links are generated with the help of the URL class that generates the links URL from the parameters.

Picture of Karol Krizka
Name: Karol Krizka <contact>
Classes: 2 packages by
Country: Canada Canada
Age: ???
All time rank: 217751 in Canada Canada
Week rank: 1554 Up33 in Canada Canada Up

Details provided by the author  
A Pager Class by Karol Krizka
------------------------------
This is a simple pager to be used in webpages. A advantage of it is that it's simple so you can use it in any situation. It depends on Karol's URL Class that is included in this package but not documented.
==============================
Variables
------------------------------
All variables can be set/gotten by using the varname() class method. Replace varname by the variable you want to set.
------------------------------
from -> display items from
to -> display items to
incr -> number of items to display at a time
max -> max number of items that pager pages through, 0 means infinite
==============================
Class Methods
------------------------------
The following don't include the variable setter/getters.
------------------------------
Pager() - constructor
display() - displays the pager
Screenshots  
  • Screenshot.png
  Files folder image Files  
File Role Description
Plain text file example.php Example Example
Plain text file pager.class.php Class The Pager Class
Plain text file README Doc. Documentation of this class
Plain text file url.class.php Class The URL Class (A dependency)

 Version Control Unique User Downloads Download Rankings  
 0%Total:702All time:4,370
 This week:0This week:1,287Up