Login   Register  
PHP Classes
elePHPant
Icontem

Paginator Iterator: Iterate over listings split in page using Smarty

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 (17)   DownloadInstall with Composer Download .zip   Reputation   Support forum (2)   Blog    
Last Updated Ratings Unique User Downloads Download Rankings  
2008-08-07 (6 years ago) RSS 2.0 feedNot enough user ratingsTotal: 684 This week: 1All time: 4,366 This week: 1,164Up
Version License PHP version Categories  
pi 0.1GNU Lesser General Publ...5HTML, PHP 5, Databases, Templates
Description Author  

This package can be used iterate over listings split between pages using Smarty templates.

It can display database query results split in multiple pages with output defined using Smarty templates.

The templates may define the presentation of listings as table rows with links to browse different listing pages.

Features:
- Paginates results from a given SQL
- Iterates the paginated results (p_item and p_alternating plugins)
- Allows to create a page navigator
- Shows a header content (p_header plugin) and footer content (p_footer plugin)
- Shows a empty template when there is no results (p_empty plugin)
- Allows to create plugins to handle the database queries
- Don't uses sessions to store any data
- You can to use it in a MVC application
- You can create your own pagination style
- For while it supports mysql_*, mysqli_*, pdo (mysql and pgsql), but you can create your own plugins for others databases

Picture of Anderson A. Meggiolaro
Name: Anderson A. Meggiolaro <contact>
Classes: 1 package by
Country: Brazil Brazil
Age: 30
All time rank: 2563185 in Brazil Brazil
Week rank: 932 Up77 in Brazil Brazil Up

  Files folder image Files  
File Role Description
Files folder imagemodels (1 file)
Files folder imagepi_lib (1 file, 1 directory)
Files folder imageplugins (6 files)
Files folder imagetemplates (2 files)
Accessible without login Plain text file example.php Example Example 1
Accessible without login Plain text file example2.php Example Example 2
Accessible without login Plain text file jos_menu.sql Data SQL to test the examples

  Files folder image Files  /  models  
File Role Description
  Plain text file MenuModel.php Class Example Model Class

  Files folder image Files  /  pi_lib  
File Role Description
Files folder imageplugins (4 files)
  Plain text file PaginatorIterator.php Class The PaginatorIterator Main Class

  Files folder image Files  /  pi_lib  /  plugins  
File Role Description
  Accessible without login Plain text file MAKE-YOUR-OWN.txt Doc. How to make a specific plugin
  Accessible without login Plain text file mysql.php Aux. MySQL plugin
  Accessible without login Plain text file mysqli.php Aux. MySQLi plugin
  Accessible without login Plain text file pdo.php Aux. PDO plugin

  Files folder image Files  /  plugins  
File Role Description
  Accessible without login Plain text file block.p_alternating.php Aux. Alternating Template
  Accessible without login Plain text file block.p_empty.php Aux. Empty Template
  Accessible without login Plain text file block.p_footer.php Aux. Footer Template
  Accessible without login Plain text file block.p_header.php Aux. Header Template
  Accessible without login Plain text file block.p_item.php Aux. Item Template - the loop
  Accessible without login Plain text file block.p_iterator.php Aux. Main Block

  Files folder image Files  /  templates  
File Role Description
  Accessible without login Plain text file example.tpl Data Example 1 - tpl
  Accessible without login Plain text file example2.tpl Data Example 2 - tpl

 Version Control Unique User Downloads Download Rankings  
 0%Total:684All time:4,366
 This week:1This week:1,164Up
 User Comments (1)