[Koha-cvs] CVS: koha/admin authorised_values.pl,1.8,1.9

Jerome Vizcaino plugz at users.sourceforge.net
Fri Jun 20 14:59:22 CEST 2003


Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv14181

Modified Files:
	authorised_values.pl 
Log Message:
FIX: Can offset display result


Index: authorised_values.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/authorised_values.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -C2 -r1.8 -r1.9
*** authorised_values.pl	17 Jun 2003 09:30:56 -0000	1.8
--- authorised_values.pl	20 Jun 2003 12:59:19 -0000	1.9
***************
*** 185,195 ****
  							tab_list => $tab_list,
  							category => $searchfield);
  	if ($offset>0) {
  		my $prevpage = $offset-$pagesize;
! 		$template->param("<a href=$script_name?offset=".$prevpage.'&lt;&lt; Prev</a>');
  	}
  	if ($offset+$pagesize<$count) {
  		my $nextpage =$offset+$pagesize;
! 		$template->param("a href=$script_name?offset=".$nextpage.'Next &gt;&gt;</a>');
  	}
  } #---- END $OP eq DEFAULT
--- 185,198 ----
  							tab_list => $tab_list,
  							category => $searchfield);
+ 
  	if ($offset>0) {
  		my $prevpage = $offset-$pagesize;
! 		$template->param(previous => "<a href=\"$script_name?offset=".$prevpage.'">');
  	}
  	if ($offset+$pagesize<$count) {
  		my $nextpage =$offset+$pagesize;
! 		$template->param(next => "<a href=\"$script_name?offset=".$nextpage.'">');
! 
! 
  	}
  } #---- END $OP eq DEFAULT





More information about the Koha-cvs mailing list