PHP Classes

File: Example

Recommend this page to a friend!
  Classes of alismith   Pagination link class   Example   Download  
File: Example
Role: Example script
Content type: text/plain
Description: pagination class usage example
Class: Pagination link class
Generate pagination links for long listings
Author: By
Last change: updated
Date: 9 years ago
Size: 635 bytes


Class file image Download


 * pagination class
 * @records count
 * @items per page
 * @pagination button per page
 * @current page number (active button)
 * @options for config pagination button style and set page address

$pagination = new pagination(100,10,10,4,array(
'template' => '<a href="{url}" class="btn btn-inverse" title="{info}">{number}</a>',
'info' => 'page {currentPage} of {totalPages}',
'currentItemTemplate' => '<a href="{url}" class="btn btn-inverse active" title="{info}">{number}</a>',
/*'url' => '',*/
'separator' => "\n"