From tonnesen@users.sourceforge.net Wed May 2 16:06:47 2001 From: Steve Tonnesen To: koha-devel@lists.koha-community.org Subject: [Koha-devel] CVS: koha groups.pl,NONE,1.1 Date: Wed, 02 May 2001 16:06:46 -0700 Message-ID: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5964961498936534789==" --===============5964961498936534789== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Update of /cvsroot/koha/koha In directory usw-pr-cvs1:/tmp/cvs-serv5902/koha Added Files: groups.pl=20 Log Message: Steve Tonnesen's K12Admin-specific (for the time-being) group based overdue reports. --- NEW FILE --- #!/usr/bin/perl #written 14/1/2000 #script to display reports use CGI qw/:standard/; use C4::Output; use C4::Groups; use C4::Circulation::Circ2; use C4::Print; use DBI; my $input=3Dnew CGI; my $time=3D$input->param('time'); #print $input->header; my $branches=3Dgetbranches(\%env); my $printers=3Dgetprinters(\%env); my $branch=3D$input->param('branch'); my $printer=3D$input->param('printer'); ($branch) || ($branch=3D$input->cookie('branch')); ($printer) || ($printer=3D$input->cookie('printer')); my ($oldbranch, $oldprinter); if ($input->param('selectnewbranchprinter')) { $oldbranch=3D$branch; $oldprinter=3D$printer; $branch=3D''; $printer=3D''; } $env{'branchcode'}=3D$branch; $env{'printer'}=3D$printer; #$env{'queue'}=3D$printer; my $branchcount=3D0; my $printercount=3D0; my $branchoptions; my $printeroptions; foreach (keys %$branches) { (next) unless ($_); (next) if (/^TR$/); $branchcount++; my $selected=3D''; ($selected=3D'selected') if ($_ eq $oldbranch); ($selected=3D'selected') if ($_ eq $branch); $branchoptions.=3D"