Fixed Bug #542
authorwolfpac444 <wolfpac444>
Fri, 18 Jul 2003 13:34:14 +0000 (13:34 +0000)
committerwolfpac444 <wolfpac444>
Fri, 18 Jul 2003 13:34:14 +0000 (13:34 +0000)
admin/itemtypes.pl
koha-tmpl/intranet-tmpl/default/en/parameters/itemtypes.tmpl

index dc8cc67..496966e 100755 (executable)
@@ -194,11 +194,11 @@ if ($op eq 'add_form') {
        $template->param(loop => \@loop_data);
        if ($offset>0) {
                my $prevpage = $offset-$pagesize;
-               $template->param(previous => "<a href=\"$script_name?offset=".$prevpage.'">');
+               $template->param(previous => "$script_name?offset=".$prevpage);
        }
        if ($offset+$pagesize<$count) {
                my $nextpage =$offset+$pagesize;
-               $template->param(next => "<a href=\"$script_name?offset=".$nextpage.'">');
+               $template->param(next => "$script_name?offset=".$nextpage);
        }
 } #---- END $OP eq DEFAULT
 output_html_with_http_headers $input, $cookie, $template->output;
index e69c3b2..53621be 100644 (file)
@@ -153,8 +153,8 @@ function Check(f) {
                <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>
+               <td width=33%><TMPL_IF name="previous"><a href="<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"><a href="<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>