diff --git a/client_contacts.php b/client_contacts.php
index 7fded3df..e5a8f1b8 100644
--- a/client_contacts.php
+++ b/client_contacts.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_domains.php b/client_domains.php
index c22527fd..88152db2 100644
--- a/client_domains.php
+++ b/client_domains.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_invoices.php b/client_invoices.php
index bc4a7d75..1b57412d 100644
--- a/client_invoices.php
+++ b/client_invoices.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_locations.php b/client_locations.php
index 262f5259..87cc0916 100644
--- a/client_locations.php
+++ b/client_locations.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_logins.php b/client_logins.php
index 1690ed0c..1b26c93d 100644
--- a/client_logins.php
+++ b/client_logins.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_networks.php b/client_networks.php
index 33b965e2..83576350 100644
--- a/client_networks.php
+++ b/client_networks.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_notes.php b/client_notes.php
index 9dee32a0..d55245b3 100644
--- a/client_notes.php
+++ b/client_notes.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_payments.php b/client_payments.php
index ff97f15e..8f5090c8 100644
--- a/client_payments.php
+++ b/client_payments.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_payments_by_invoice.php b/client_payments_by_invoice.php
index 0d136638..0a8faf95 100644
--- a/client_payments_by_invoice.php
+++ b/client_payments_by_invoice.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_quotes.php b/client_quotes.php
index a1f83d60..0babce7b 100644
--- a/client_quotes.php
+++ b/client_quotes.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_recurring.php b/client_recurring.php
index 0c7508ed..07c34fd5 100644
--- a/client_recurring.php
+++ b/client_recurring.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_software.php b/client_software.php
index 83ced1bd..12068e04 100644
--- a/client_software.php
+++ b/client_software.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_tickets.php b/client_tickets.php
index 0dd0094f..05eae53e 100644
--- a/client_tickets.php
+++ b/client_tickets.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_trips.php b/client_trips.php
index 11b73c09..89ea7af3 100644
--- a/client_trips.php
+++ b/client_trips.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_vendors.php b/client_vendors.php
index 1aca2acb..70074762 100644
--- a/client_vendors.php
+++ b/client_vendors.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/clients.php b/clients.php
index 2a11fddc..22aa186b 100644
--- a/clients.php
+++ b/clients.php
@@ -7,11 +7,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/clients_new.php b/clients_new.php
index c28b11dd..2f192a93 100644
--- a/clients_new.php
+++ b/clients_new.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/companies.php b/companies.php
index f05194cd..28079499 100644
--- a/companies.php
+++ b/companies.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/contacts.php b/contacts.php
index 4c12aada..5342b14b 100644
--- a/contacts.php
+++ b/contacts.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/domains.php b/domains.php
index 54a48861..7878a34a 100644
--- a/domains.php
+++ b/domains.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/expenses.php b/expenses.php
index 18b3a2f1..c0486d15 100644
--- a/expenses.php
+++ b/expenses.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/invoices.php b/invoices.php
index f833b4d2..a28579f6 100644
--- a/invoices.php
+++ b/invoices.php
@@ -55,13 +55,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/logs.php b/logs.php
index 3bb312d0..7cd53bde 100644
--- a/logs.php
+++ b/logs.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/payments.php b/payments.php
index 64d4c4a2..3d2e1bd3 100644
--- a/payments.php
+++ b/payments.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/products.php b/products.php
index 176e27d9..2f3d5305 100644
--- a/products.php
+++ b/products.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/quotes.php b/quotes.php
index 9fd9ee09..e5c2160c 100644
--- a/quotes.php
+++ b/quotes.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/recurring.php b/recurring.php
index 1dd29ff8..e5d4ad03 100644
--- a/recurring.php
+++ b/recurring.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/revenues.php b/revenues.php
index 4e84c71d..9d4440ff 100644
--- a/revenues.php
+++ b/revenues.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/tickets.php b/tickets.php
index 83f2eddc..e6bfc9db 100644
--- a/tickets.php
+++ b/tickets.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/transfers.php b/transfers.php
index fc1d62dc..b45fd6be 100644
--- a/transfers.php
+++ b/transfers.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/trips.php b/trips.php
index bae3d045..b161de4a 100644
--- a/trips.php
+++ b/trips.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/user_logs.php b/user_logs.php
index 90c1c4c7..46bdeee3 100644
--- a/user_logs.php
+++ b/user_logs.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/users.php b/users.php
index 7eb9cfb8..9c98e688 100644
--- a/users.php
+++ b/users.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/vendors.php b/vendors.php
index cfdf4c84..c3c9e863 100644
--- a/vendors.php
+++ b/vendors.php
@@ -2,13 +2,15 @@
//Rebuild URL
$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;
}