Replaced expressions of the form "$x = $x <op> $y" with "$x <op>= $y".
[koha.git] / C4 / Interface / RenewalsCDK.pm
1 package C4::Interface::RenewalsCDK; #assumes C4/Interface/RenewalsCDK
2
3 #uses Newt
4
5 # Copyright 2000-2002 Katipo Communications
6 #
7 # This file is part of Koha.
8 #
9 # Koha is free software; you can redistribute it and/or modify it under the
10 # terms of the GNU General Public License as published by the Free Software
11 # Foundation; either version 2 of the License, or (at your option) any later
12 # version.
13 #
14 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
16 # A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
17 #
18 # You should have received a copy of the GNU General Public License along with
19 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
20 # Suite 330, Boston, MA  02111-1307 USA
21
22 # FIXME - I'm pretty sure that this, along with the rest of the
23 # CDK-based stuff, is obsolete.
24
25 use strict;
26 use Cdk;
27 use C4::InterfaceCDK;
28 use Date::Manip;
29 #use C4::Circulation;
30
31 require Exporter;
32 use DBI;
33 use vars qw($VERSION @ISA @EXPORT);
34
35 # set the version for version checking
36 $VERSION = 0.01;
37
38 @ISA = qw(Exporter);
39 @EXPORT = qw(renew_window);
40
41 sub renew_window {
42   my ($env,$issueditems,$borrower,$amountowing,$odues)=@_;
43   my $titlepanel = C4::InterfaceCDK::titlepanel($env,$env->{'sysarea'},"Renewals");
44   my @sel = ("N ","Y ");
45   my $issuelist = new Cdk::Selection ('Title'=>"Renew items",
46     'List'=>\@$issueditems,'Choices'=>\@sel,
47     'Height'=> 14,'Width'=>78,'Ypos'=>8);
48   my $x = 0;
49   my $borrbox = C4::InterfaceCDK::borrowerbox($env,$borrower,$amountowing);
50   $borrbox->draw();
51   my @renews = $issuelist->activate();
52   $issuelist->erase();
53   undef $titlepanel;
54   undef $issuelist;
55   undef $borrbox;
56   return \@renews;
57 }