From a95dfb28bae54fe2bbb5405c74e8b1787acc605e Mon Sep 17 00:00:00 2001 From: tipaul Date: Wed, 6 Apr 2005 13:55:30 +0000 Subject: [PATCH] fix for #756 --- admin/printers.pl | 2 +- .../default/en/parameters/printers.tmpl | 366 ++++++++---------- 2 files changed, 172 insertions(+), 196 deletions(-) diff --git a/admin/printers.pl b/admin/printers.pl index dd0506dba7..5c5c39c2a6 100755 --- a/admin/printers.pl +++ b/admin/printers.pl @@ -125,7 +125,7 @@ if ($op eq 'add_form') { } elsif ($op eq 'delete_confirm') { $template->param(delete_confirm => 1); my $dbh = C4::Context->dbh; - my $sth=$dbh->prepare("select printername,printqueue,printtype from printers where printername="); + my $sth=$dbh->prepare("select printername,printqueue,printtype from printers where printername=?"); $sth->execute($searchfield); my $data=$sth->fetchrow_hashref; $sth->finish; diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl index 79f990404b..3f90963a4f 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/printers.tmpl @@ -1,205 +1,181 @@ - - - - -

Modify printer

- -

Add printer

+
+

Printer admin

+ + +
+ +

Modify printer

+ +

Add printer

+ + +
" name="Aform" method="post"> + + +

">

+ +

+ +

">

+

">

+

+
+
- -
" name="Aform" method="post"> - - - - - - - - - - - - - - - + + + Data recorded + " method="post"> + + - - - - - - - - - - - - - -
Printer Name - "> -
Printer Name - -
Queue">
Type">
- - - - - - Data recorded -
" method="post"> - -
- - - - - - - - - - " method="post"> - - "> - - - - - - - - - - - - - - - + + + + + + + + + + + + + + +
Printer
Queue
Type
CONFIRM DELETION
- - - + + + + + + + + " method="post"> - - - - -
Printer
- - - - Data deleted -
" method="post"> - -
- - - -

Printer admin

-
" method="post"> - "> - -
- - - You searched for + + "> + +
Queue
Type
CONFIRM DELETION
+ + + +
" method="post"> + +
+
- - - - - - - - - - - "> - - - - - - - -
NameQueueType
?op=add_form&searchfield=">Edit?op=delete_confirm&searchfield=">Delete
- -
" method="post"> - - - ?offset="><< Prev + + Data deleted + " method="post"> + +
- -        - - - ?offset=">Next >> - - -
- -
- - - - + + +
" method="post"> + "> + +
+ + + You searched for + + + + + + + + + + + + "> + + + + + + + +
NameQueueType
?op=add_form&searchfield=" class="button">Edit?op=delete_confirm&searchfield=" class="button">Delete
+ +
" method="post"> + + + + ?offset="><< Prev + + +        + + + ?offset=">Next >> + + +
+ +
+
+ + +
-- 2.39.5