From 1f36d6776a2c5c331ba293681ce29f2409585e5e Mon Sep 17 00:00:00 2001 From: hdl Date: Thu, 23 Jan 2003 11:29:13 +0000 Subject: [PATCH] Templating : selectbranchprinter.pl --- circ/selectbranchprinter.pl | 95 ++++++++++++++----------------------- 1 file changed, 36 insertions(+), 59 deletions(-) diff --git a/circ/selectbranchprinter.pl b/circ/selectbranchprinter.pl index 2e51c22cfd..7c31db3ab0 100644 --- a/circ/selectbranchprinter.pl +++ b/circ/selectbranchprinter.pl @@ -22,7 +22,9 @@ use strict; use CGI qw/:standard/; use C4::Circulation::Circ2; use C4::Output; +use C4::Auth; use C4::Print; +use HTML::Template; use DBI; @@ -68,87 +70,62 @@ $env{'queue'}=$printer; # set up select options.... my $branchcount=0; my $printercount=0; -my $branchoptions; -my $printeroptions; +my @branchloop; foreach (keys %$branches) { (next) unless ($_); (next) unless ($branches->{$_}->{'IS'}); $branchcount++; - my $selected=''; - ($selected='selected') if ($_ eq $oldbranch); - $branchoptions.="