Login   Register  
PHP Classes
elePHPant
Icontem

PaginationClass: Show links to browse listings using templates

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-03-23 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 286 All time: 6,712 This week: 2,014Up
Version License PHP version Categories  
cls_pagination 1.0.0Artistic License4.0HTML, Templates
Description Author  

This class can be used to show links to browse listings split in multiple pages.

It takes as argument the limit number of listing items to display per page, the total number of items and the current page.

The class generates links to go to the next, previous, first, last and any intermediate pages using templates to define how the links are presented.

The links base URL is configurable. The text for the links is retrieved from language files.

Picture of Valics Lehel
Name: Valics Lehel <contact>
Classes: 4 packages by
Country: Romania Romania
Age: 42
All time rank: 1463 in Romania Romania
Week rank: 732 Down19 in Romania Romania Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

  Files folder image Files  
File Role Description
Files folder imageincludes (2 files)
Files folder imagelanguage (1 file)
Files folder imageprogramtemplates (3 files)
Accessible without login Plain text file index.php Example Example with just 1 template, "main" in our case
Accessible without login Plain text file index2.php Example Example with just 2 templates, "main" in and "content" our case
Accessible without login Plain text file README Doc. README

  Files folder image Files  /  includes  
File Role Description
  Plain text file cls_pagination.php Class The main pagination class, core file.
  Plain text file cls_fast_template.php Class Fast Template Class

  Files folder image Files  /  language  
File Role Description
  Accessible without login Plain text file en.inc.php Conf. Language file

  Files folder image Files  /  programtemplates  
File Role Description
  Accessible without login Plain text file index_content_templ.html Data Template content file
  Accessible without login Plain text file index_main_templ.html Data Template main file
  Accessible without login Plain text file index_templ.html Data Template main file ex1

 Version Control Unique User Downloads Download Rankings  
 0%Total:286All time:6,712
 This week:0This week:2,014Up