Moving install and upgrade scripts from rel-1-2 branch. This needs testing!
[koha.git] / groups.pl
index 5e0f368..be38e41 100755 (executable)
--- a/groups.pl
+++ b/groups.pl
@@ -1,14 +1,39 @@
 #!/usr/bin/perl
 
+# $Id$
+
 #written 14/1/2000
 #script to display reports
 
+
+# Copyright 2000-2002 Katipo Communications
+#
+# This file is part of Koha.
+#
+# Koha is free software; you can redistribute it and/or modify it under the
+# terms of the GNU General Public License as published by the Free Software
+# Foundation; either version 2 of the License, or (at your option) any later
+# version.
+#
+# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
+# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License along with
+# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
+# Suite 330, Boston, MA  02111-1307 USA
+
 use CGI qw/:standard/;
 use C4::Output;
 use C4::Groups;
 use C4::Circulation::Circ2;
 use C4::Print;
 use DBI;
+use C4::Database;
+
+my $configfile=configfile();
+my $intranetdir=$configfile->{'intranetdir'};
+
 
 my $input=new CGI;
 my $time=$input->param('time');
@@ -114,7 +139,7 @@ EOF
 </tr></table>
 </td></tr></table>
 <p>
-Printer: 
+Printer:
 <select name=printer>
 $printeroptions
 </select>
@@ -213,7 +238,7 @@ sub printgroup {
     my $type=shift;
     $output= "<head><title>Overdue list for $groups->{$group}</title></head><body><center>\n";
     my $members=groupmembers($env, $group);
-    ($type eq 'overdues') && ($output.="<img src=/usr/local/koha/librarian/htdocs/images/overdues.jpg><br>\n");
+    ($type eq 'overdues') && ($output.="<img src=/images/overdues.jpg><br>\n");
     $output.= "<table border=1 cellspacing=5 cellpadding=10>\n";
     my $typetext='';
     ($type eq 'overdues') ? ($typetext="Overdues") : ($typetext="Issues");