PHP Classes
Icontem

Class: Generic Easy Pagination


  Search   All class groups All class groups   Latest entries Latest entries   Top 10 charts Top 10 charts   Newsletter Newsletter   Blog Blog   Forums Forums   Help FAQ Help FAQ  
  Login   Register  
Recommend this page to a friend!
      Classes of Olavo Alexandrino  >  Generic Easy Pagination  >  Download  >  Support forum Support forum  >  RSS 1.0 feed RSS 2.0 feed Latest changes  >  Stumble It! Stumble It!  >  Bookmark in del.icio.us Bookmark in del.icio.us  
  Supplied by   Group folder image Groups   Detailed description  
  Rate classes User ratings   Trackback   Applications   Related links   Files Files  
  • Supplied by:

    Picture of Olavo Alexandrino
    Name: Olavo Alexandrino <e-mail contact>
    Published packages: 8
    Country: Brazil Brazil - PHP jobs in Brazil
    Home page: http://oalexandrino.com/
    Age: 27
    All time rank: 64
    Week rank: 160

    Browse this author's classes

  • Groups:

    Group folder image HTML HTML generation and processing View top rated classes
  • Detailed description:

    This class is meant to generate an HTML navigation bar for listings to be split in multiple pages.
    The class is generic, so it can be used for pagination of arbitrary types of listings.
    An example is provided to demonstrate how to paginate the results of a database query using ADODB API.

    This class and the example features:

    - Setting current page
    - Setting the records listed in each page
    - Getting the total number of records that were retrieved
    - Setting the query for searching records
    - Using the same query to gets the total number of records
    - Defining the additional parameters that may be necessary on the search and will be passed between pages with the GET method
    - Outputs the total number of records
    - Outputs the total number of pages based on to the number of records in each page
    - Outputs the values of the records of the current page
    - Outputs the links for browsing from 1 to 10, 11 to 20, 21 to 30, and so on.

    In portuguese:

    Esta classe destina-se a gerar uma barra de navegação em HTML para dividir listagens por várias páginas.
    A classe é genérica, desse modo pode ser usada para paginar listagens de tipos arbitrários de SGBD.
    É fornecido um exemplo que demonstra como paginar os resultados de uma consulta a um banco de dados usando a API ADODB.

    Esta classe e o exemplo proporcionam as seguintes capacidades:

    - Define a página atual
    - Define o número de registros por página
    - Define o número total de registros retornados
    - Método que define a consulta de registros
    - Método com mesma consulta acima, porém é usada para retornar o número total de resultados (COUNT)
    - Configura os possíveis parâmetros extras que serão usados na pesquisa e passados pelo método GET
    - Retorna o número total de registros encontrados pela consulta
    - Retorna o número total de páginas de acordo com o número de registros por página
    - Retorna o resultado de dados da página atual
    - Retorna os links de navegação
    - Retorna os links das páginas atuaís de acordo com a página corrente
    - Resultados no formato: De 1 a 10, de 11 a 20, de 21 a 30, etc
    - Retorna os registros atuais de acordo com a página vigente
    - Retorna o Conjunto de links de 10 em 10: Próximos 10 registros para adiante e retorno
  • User ratings:

    Ratings
    Utility
    Consistency
    Documentation
    Examples
    Tests
    Videos
    Overall
    Rank
    All time:
    Sufficient (75.0%)
    Sufficient (75.0%)
    -
    Sufficient (75.0%)
    -
    -
    Not sure (52.5%)
    1025
    Month:
    Not yet rated by the users
  • Trackback links:

    Link Description
    Nicer Pagination with ADOdb Or should that be Nicr? To follow in an annoying theme...
    Latest blog trackback links Latest blog trackback links
  • Applications that use this class:

    No application links were specified for this class.
    Add link image If you know an application of this package, send a message to the author to add a link here.
  • Related links:

    Link Description
    Class ADODB Class ADODB Description and download
  • Files:

    File Role Description
    Plain text file class.GenericEasyPagination.php Class Class code
    Plain text file test.php Example Example script
    Plain text file users.sql Data SQL script to create the database schema for use with the example
    Download all files: genericpagination.tar.gz genericpagination.zip
    NOTICE: if you are using a download manager program like 'GetRight', please Login before trying to download this archive.

 
  Advertise on this site Advertise on this site   Site map Site map   Statistics Statistics   Site tips Site tips   Privacy policy Privacy policy   Contact Contact  

For more information send a message to :
info at phpclasses dot org.
Copyright (c) Icontem 1999-2008 PHP Classes - PHP Class Scripts
  PHP Book Reviews - Reviews of books and other products