FIX: Can offset display result
This commit is contained in:
parent
878b64dadd
commit
a4e5a8d358
1 changed files with 5 additions and 2 deletions
|
@ -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("<a href=$script_name?offset=".$prevpage.'<< Prev</a>');
|
||||
$template->param(previous => "<a href=\"$script_name?offset=".$prevpage.'">');
|
||||
}
|
||||
if ($offset+$pagesize<$count) {
|
||||
my $nextpage =$offset+$pagesize;
|
||||
$template->param("a href=$script_name?offset=".$nextpage.'Next >></a>');
|
||||
$template->param(next => "<a href=\"$script_name?offset=".$nextpage.'">');
|
||||
|
||||
|
||||
}
|
||||
} #---- END $OP eq DEFAULT
|
||||
|
||||
|
|
Loading…
Reference in a new issue