PHP Classes

PaginationClass: Show links to browse listings using templates

Recommend this page to a friend!
  Info   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 294 All time: 7,466 This week: 488Up
Version License PHP version Categories
cls_pagination 1.0.0Artistic License4.0HTML, Templates


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: 51
All time rank: 1544 in Romania Romania
Week rank: 307 Down5 in Romania Romania Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x


cls_pagination This is a class for pagination implemented with the use of FastTemplate. With this class, you can split your results into many pages, based on different styles, settings and what is most important, it is HTML template based, language file and CSS easy to implement in any sites. * Get the latest FastTemplate STRUCTURE: includes cls_fast_template.php cls_pagination.php the class which makes the job language for multilanguage purpose programtemplates index_content_templ.html the content part of the 2 templates example(index2.php) index_main_templ.html the main part of the 2 templates example(index2.php) index_templ.html the template for the 1 template example(index.php) index.php 1 template example index2.php 2 templates example index.php is with type=0(BASIC) and index2.php with type=5(FULL) INSTALL: Just copy somewhere into a hosting folder and just use those 2 files above.

  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 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  
This week:0
All time:7,466
This week:488Up