PHP Classes

PaginationClass: Show links to browse listings using templates

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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 (7 years ago) RSS 2.0 feedNot enough user ratingsTotal: 286 All time: 6,900 This week: 1,358Up
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: 1493 in Romania Romania
Week rank: 953 Down21 in Romania Romania Down
Innovation award
Innovation award
Nominee: 1x

Winner: 1x

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

	cls_pagination.php			the class which makes the job
language					for multilanguage purpose
	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)

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  
 0%Total:286All time:6,900
 This week:0This week:1,358Up