diff --git a/accounts.php b/accounts.php index 90f7d24f..6110b00c 100644 --- a/accounts.php +++ b/accounts.php @@ -4,13 +4,14 @@ $url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o))); + //Paging if(isset($_GET['p'])){ $p = intval($_GET['p']); - $record_from = (($p)-1)*10; - $record_to = 10; + $record_from = (($p)-1)*$config_records_per_page; + $record_to = $config_records_per_page; }else{ $record_from = 0; - $record_to = 10; + $record_to = $config_records_per_page; $p = 1; } diff --git a/alerts_archived.php b/alerts_archived.php index b29d8ee3..60fc27ed 100644 --- a/alerts_archived.php +++ b/alerts_archived.php @@ -3,11 +3,11 @@ //Paging if(isset($_GET['p'])){ $p = intval($_GET['p']); - $record_from = (($p)-1)*10; - $record_to = 10; + $record_from = (($p)-1)*$config_records_per_page; + $record_to = $config_records_per_page; }else{ $record_from = 0; - $record_to = 10; + $record_to = $config_records_per_page; $p = 1; } diff --git a/categories.php b/categories.php index 5c10b75c..503a28ba 100644 --- a/categories.php +++ b/categories.php @@ -4,13 +4,14 @@ $url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o))); + //Paging if(isset($_GET['p'])){ $p = intval($_GET['p']); - $record_from = (($p)-1)*10; - $record_to = 10; + $record_from = (($p)-1)*$config_records_per_page; + $record_to = $config_records_per_page; }else{ $record_from = 0; - $record_to = 10; + $record_to = $config_records_per_page; $p = 1; } diff --git a/client_assets.php b/client_assets.php index ef305fce..11667e58 100644 --- a/client_assets.php +++ b/client_assets.php @@ -4,13 +4,14 @@ $url_query_strings_sb = http_build_query(array_merge($_GET,array('sb' => $sb, 'o' => $o))); +//Paging if(isset($_GET['p'])){ $p = intval($_GET['p']); - $record_from = (($p)-1)*10; - $record_to = 10; + $record_from = (($p)-1)*$config_records_per_page; + $record_to = $config_records_per_page; }else{ $record_from = 0; - $record_to = 10; + $record_to = $config_records_per_page; $p = 1; } diff --git a/client_contact_details_modal.php b/client_contact_details_modal.php index f1a08197..c1f68a8c 100644 --- a/client_contact_details_modal.php +++ b/client_contact_details_modal.php @@ -6,9 +6,6 @@ $sql_software = mysqli_query($mysqli,"SELECT * FROM software WHERE contact_id = ?> - - -