diff --git a/html/ops/db_action.php b/html/ops/db_action.php index 4ae6ac1e8a..31314c2992 100644 --- a/html/ops/db_action.php +++ b/html/ops/db_action.php @@ -20,6 +20,7 @@ } else { $entries_to_show = 10; } + $page_entries_to_show = $entries_to_show; if (strlen($last_pos)) { $start_at = $last_pos; @@ -46,21 +47,31 @@ "; $urlquery = urlencode($q->query); + echo "
"; + if ($start_at) { + $prev_pos = $start_at - $page_entries_to_show; + if ($prev_pos < 0) { + $prev_pos = 0; + } + echo " + Previous $page_entries_to_show
+ "; + } + echo "
"; if ($last < $count) { echo " Next $entries_to_show
"; - } else { - echo "
"; } + echo "
"; if ($detail == "high") { echo " - | Less detail + Less detail "; } if ($detail == "low") { echo " - | More detail + More detail "; }