]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/user_functions.php
Major cleanup of old-school HTML-mess...
[mailer.git] / inc / libs / user_functions.php
index 0ef2a4c9034ee1fd22815d5168325582ba3e7cf1..f2a659a14d0eea2ecd431929d2aeb81e1053d8ed 100644 (file)
@@ -133,9 +133,9 @@ function addSortLinks ($letter, $sortby, $colspan, $return=false) {
 }
 
 // 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">&nbsp;</td></tr>');
@@ -146,7 +146,7 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false)
        //}
 
        $OUT = '';
-       for ($page = 1; $page <= $PAGES; $page++) {
+       for ($page = 1; $page <= $pages; $page++) {
                if (($page == getRequestParameter('page')) || ((!isGetRequestParameterSet('page')) && ($page == 1))) {
                        $OUT .= '<strong>-';
                } else {
@@ -172,7 +172,7 @@ function addPageNavigation ($PAGES, $offset, $show_form, $colspan,$return=false)
                        $OUT .= '</a>';
                }
 
-               if ($page < $PAGES) $OUT .= '&nbsp;|&nbsp;';
+               if ($page < $pages) $OUT .= '&nbsp;|&nbsp;';
        } // END - for
 
        // Remember the list