From bab890357e2ab97eeff8e8f865365b8ffbbfabda Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 5 Aug 2003 01:26:46 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=1985 --- html/ops/db_action.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) 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 "; }