From a4e5a8d358453175f863bb0a0019c741f65132ec Mon Sep 17 00:00:00 2001 From: plugz Date: Fri, 20 Jun 2003 12:59:19 +0000 Subject: [PATCH] FIX: Can offset display result --- admin/authorised_values.pl | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/admin/authorised_values.pl b/admin/authorised_values.pl index 158935724a..8c946b03a7 100755 --- a/admin/authorised_values.pl +++ b/admin/authorised_values.pl @@ -184,13 +184,16 @@ if ($op eq 'add_form') { $template->param(loop => \@loop_data, tab_list => $tab_list, category => $searchfield); + if ($offset>0) { my $prevpage = $offset-$pagesize; - $template->param("'); + $template->param(previous => "'); } if ($offset+$pagesize<$count) { my $nextpage =$offset+$pagesize; - $template->param("a href=$script_name?offset=".$nextpage.'Next >>'); + $template->param(next => "'); + + } } #---- END $OP eq DEFAULT -- 2.39.5