moving <<prev & next>> links into template, to enable translation.

This commit is contained in:
tipaul 2004-01-26 10:36:03 +00:00
parent a76b07ba01
commit b684955c2f
2 changed files with 2 additions and 3 deletions

View File

@ -78,7 +78,6 @@ if ($op) {
else => 1); # we show only the TMPL_VAR names $op
}
$template->param(action => $script_name);
if ($op eq 'add') {
# If the user has pressed the "add new branch" button.
heading("Branches: Add Branch");

View File

@ -257,10 +257,10 @@ if ($op eq 'add_form') {
branch => $branch,
father => $father);
if ($offset>0) {
$template->param(previous => "<a href=$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$prevpage>&lt;&lt; Prev</a>");
$template->param(previous => "$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$prevpage");
}
if ($pagesize<$count) {
$template->param(next => "<a href=$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$nextpage>Next &gt;&gt;</a>");
$template->param(next => "$script_name?branch=$branch&search_category=$search_category&searchstring=$searchstring&offset=$nextpage");
}
} #---- END $OP eq DEFAULT