phpPagination - Readme ====================== phpPagination is a PHP class to produce a ready-to-output HTML string with navigation links between multiple pages. It features smart output for intermediate pages (similar to phpBB). Its own output (text and styles) can be set for pagination elements such as first, last, prev, next, page, currentpage, separator, and delimiter. See examples files for more information. You can set template for: prefix - start html code for pagination (default '') suffix - end html code (default '') first - "first page" output (default '<<') last - "last page" (default '>>') prev - "previous page" (default '<') next - "next page" (default '>') separator - separator between page numbers (default ' ') delimiter - delimiter between pagination parts (default ' ... ') current_page - current page output template page - template for other page numbers Templates can be set via options array: $aOptions['current_page'] = '[__PAGE_NUMBER__]'; or $aOptions = array( 'prev' => '<a href="__PHP_SELF__?page=__PAGE_NUMBER__">Previous page</a>', 'next' => '<a href="__PHP_SELF__?page=__PAGE_NUMBER__">Next page</a>' ); You can use these variables for substitution in templates: __PHP_SELF__ __PAGE_NUMBER__ __CURRENT_PAGE__ __TOTAL_PAGES__ __TOTAL_ITEMS__ --- 20070307 agr
Documentation generated on Wed, 7 Mar 2007 00:17:56 +0300 by phpDocumentor 1.3.1