}
// Add page navigation
-function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false) {
+function addPageNavigation ($pages, $offset, $showForm, $colspan, $return=false) {
// @TODO These two constants are no longer used, maybe we reactivate this code?
- //if ($show_form === true) {
+ //if ($showForm === true) {
// // Load form for changing number of lines
// define('__FORM_HEADER', loadTemplate('admin_list_user_sort_form', true));
// define('__FORM_FOOTER', '<tr><td colspan="'.$colspan.'" class="seperator bottom"> </td></tr>');
//}
$OUT = '';
- for ($page = 1; $page <= $PAGES; $page++) {
+ for ($page = 1; $page <= $pages; $page++) {
if (($page == getRequestParameter('page')) || ((!isGetRequestParameterSet('page')) && ($page == 1))) {
$OUT .= '<strong>-';
} else {
$OUT .= '</a>';
}
- if ($page < $PAGES) $OUT .= ' | ';
+ if ($page < $pages) $OUT .= ' | ';
} // END - for
// Remember the list