PHP Classes

Page Navigator - with median: Generate paginated listing metadata

Recommend this page to a friend!
  Info   View files View files (3)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2010-06-20 (6 years ago) RSS 2.0 feedNot yet rated by the usersTotal: 278 All time: 7,174 This week: 1,145Up
Version License PHP version Categories
page-navigate-median 1.0GNU General Publi...5HTML
Description Author

This class can be used to generate paginated listing metadata.

It takes as parameters the total numbers of entries in a list, the number of the current page, the limit of entries to display per page and the base URL of the listing pages.

The class returns an associative array with metadata to be used generate paginated navigation links. It includes HTML for the next, previous, first, last links, the limit clause to be used in database query, total number of pages in the listing, and the start position.

Picture of dhananjay kumar
Name: dhananjay kumar <contact>
Classes: 1 package by
Country: India India
Age: 39
All time rank: 3628251 in India India
Week rank: 1601 Up123 in India India Up

Developer: Dhananjay K Sharma

1. Copy the PageNavigation.Class.php to your desired folder 
2. Call from your required file.

3. You can change the Median size, how many no. of page ? link you want to show on navigation link.
4. You can change the Page Limit size, how many no. of data ? required on your page.

5. You define you web url path in config or in which file you are calling the pagination function.
  Files folder image Files  
File Role Description
Accessible without login Plain text file medianpage.php Example example page
Plain text file PageNavigation.Class.php Class pagination class
Accessible without login Plain text file readme.txt Doc. readme text

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:7,174
This week:1,145Up