function NAV_Regular($navName, $rsName, $relPath, $currentPage, $maxRows) { $this->navName = $navName; $this->rsName = $rsName; $this->relPath = $relPath; $this->currentPage = $currentPage; KT_session_start(); if (!isset($_SESSION["default_max_rows_" . $navName])) { $_SESSION["default_max_rows_" . $navName] = $maxRows; } if (!isset($_SESSION["max_rows_" . $navName])) { $_SESSION["max_rows_" . $navName] = (int) $maxRows; } if (isset($_GET["show_all_" . $this->navName])) { $_SESSION["max_rows_" . $navName] = 10000; } else { if (isset($_POST['KT_dynRows_' . $navName])) { $KT_dynRows = (int) $_POST['KT_dynRows_' . $navName]; if ($KT_dynRows > 0) { $_SESSION["max_rows_" . $navName] = $KT_dynRows; $KT_url = KT_addReplaceParam(KT_getFullURI(), 'pageNum_' . $this->rsName); KT_redir($KT_url); } } else { if ($_SESSION["default_max_rows_" . $navName] != $maxRows || $_SESSION["max_rows_" . $navName] == 10000) { $_SESSION["max_rows_" . $navName] = $maxRows; $_SESSION["default_max_rows_" . $navName] = $maxRows; } } } }
/** * Get the logout for starting the logout transaction * @return string current url on which is added KT_logout_nou=1 * @access public */ function getLogoutLink() { $ret = KT_getFullURI(); $ret = KT_addReplaceParam($ret, "KT_logout_now", "1"); return $ret; }