diff --git a/includes/misc.inc.php b/includes/misc.inc.php index 86d13f3..b41d808 100644 --- a/includes/misc.inc.php +++ b/includes/misc.inc.php @@ -112,7 +112,7 @@ function jtable_respond($records, $method = 'multiple', $msg = 'Undefined errorm } else { if (isset($_GET['jtPageSize'])) { $jTableResult['TotalRecordCount'] = count($records); - $records = array_slice($records, $_GET['jtStartIndex']-1, $_GET['jtPageSize']); + $records = array_slice($records, $_GET['jtStartIndex'], $_GET['jtPageSize']); } $jTableResult['Result'] = "OK"; $jTableResult['Records'] = $records; diff --git a/index.php b/index.php index f7b97cd..5a7f210 100644 --- a/index.php +++ b/index.php @@ -559,10 +559,10 @@ $(document).ready(function () { $("#SlaveZones").jtable('reload'); } }); - $('#MasterZones').jtable('load'); - $('#SlaveZones').jtable('load'); $('#Users').jtable('load'); + $('#MasterZones').jtable('load'); + $('#SlaveZones').jtable('load'); });