Unclassified NewsBoard Code Reference

UnbPageSelection function

Build a list of pages for multi-page views

function UnbPageSelection ($count, $perpage, &$page, $params = null);

Parameters:

count
(int) total count of items in the list
perpage
(int) number of items to display on one page
page  –  in,out
(int) current page number
params  –  optional, default: null
(array) link parameters for the links to other pages

Return value:

(string) HTML code with page selection links

Exports data:

$UNB['LastPageCount'] (int) number of pages

Implementation file: unb_lib/common_out.lib.php, line 2675

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.