From c3a71778eaad4bb49e29607a178cb36db1922755 Mon Sep 17 00:00:00 2001 From: tipaul Date: Fri, 4 Jul 2003 13:17:32 +0000 Subject: [PATCH] fix for #471 --- admin/itemtypes.pl | 8 ++++++++ .../intranet-tmpl/default/en/parameters/itemtypes.tmpl | 10 +++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index 42cb70680d..dc8cc67f0b 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -192,6 +192,14 @@ if ($op eq 'add_form') { push(@loop_data, \%row_data); } $template->param(loop => \@loop_data); + if ($offset>0) { + my $prevpage = $offset-$pagesize; + $template->param(previous => "'); + } + if ($offset+$pagesize<$count) { + my $nextpage =$offset+$pagesize; + $template->param(next => "'); + } } #---- END $OP eq DEFAULT output_html_with_http_headers $input, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl index 33a39b9e6a..4579a189fb 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl @@ -148,7 +148,15 @@ function Check(f) {

-
+ + + + + + +
+ + //images/1leftarrow.png" title="previous" ALT="previous" BORDER=0>//images/1rightarrow.png" title="next" ALT="next" BORDER=0>
-- 2.39.5