Feature: Records per page is now user specific and persists with logout/login sessions

This commit is contained in:
johnnyq
2023-08-17 19:42:42 -04:00
parent 94caee4aa6
commit ce2ba6d3d2
8 changed files with 1009 additions and 1003 deletions

View File

@@ -16,11 +16,11 @@ unset($get_copy['order']);
// Paging
if (isset($_GET['page'])) {
$page = intval($_GET['page']);
$record_from = (($page)-1)*$_SESSION['records_per_page'];
$record_to = $_SESSION['records_per_page'];
$record_from = (($page)-1)*$user_config_records_per_page;
$record_to = $user_config_records_per_page;
} else {
$record_from = 0;
$record_to = $_SESSION['records_per_page'];
$record_to = $user_config_records_per_page;
$page = 1;
}