This commit is contained in:
tipaul 2003-07-04 13:17:32 +00:00
parent fe716d2bba
commit c3a71778ea
2 changed files with 17 additions and 1 deletions

View File

@ -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 => "<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
output_html_with_http_headers $input, $cookie, $template->output;

View File

@ -148,7 +148,15 @@ function Check(f) {
<form action='<TMPL_VAR name="script_name">' method=post>
<input type=hidden name=op value=add_form>
<br>
<input type=submit class="button" value="Add Item type" title="Add Item type" ALT="Add Item type"><br>
<table width=40%>
<tr>
<td width="33%">
<input type=submit class="button" value="Add Item Type" title="Add item type" alt="Add item type" >
</td>
<td width=33%><TMPL_IF name="previous"><TMPL_VAR name="previous"><input type=image src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/1leftarrow.png" title="previous" ALT="previous" BORDER=0></a></TMPL_IF></td>
<td width=33%><TMPL_IF name="next"><TMPL_VAR name="next"><input type=image src="<TMPL_VAR name="interface">/<TMPL_VAR name="theme">/images/1rightarrow.png" title="next" ALT="next" BORDER=0></a></TMPL_IF></td>
</tr>
</table>
</form>
</TMPL_IF>
<TMPL_INCLUDE NAME="parameters-bottom.inc">