1 package C4::Interface::RenewalsCDK; #assumes C4/Interface/RenewalsCDK
5 # Copyright 2000-2002 Katipo Communications
7 # This file is part of Koha.
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
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.
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
30 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
32 # set the version for version checking
36 @EXPORT = qw(renew_window);
37 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
39 # your exported package globals go here,
40 # as well as any optionally exported functions
42 @EXPORT_OK = qw($Var1 %Hashit);
43 # non-exported package globals go here
44 use vars qw(@more $stuff);
46 # initalize package globals, first exported ones
51 # then the others (which are still accessible as $Some::Module::stuff)
55 # all file-scoped lexicals must be created before
56 # the functions below that se them.
58 # file-private lexicals go here
62 #defining keystrokes used for screens
64 # here's a file-private function as a closure,
65 # callable as &$priv_func; it cannot be prototyped.
70 # make all your functions, whether exported or not;
73 my ($env,$issueditems,$borrower,$amountowing,$odues)=@_;
74 my $titlepanel = C4::InterfaceCDK::titlepanel($env,$env->{'sysarea'},"Renewals");
75 my @sel = ("N ","Y ");
76 my $issuelist = new Cdk::Selection ('Title'=>"Renew items",
77 'List'=>\@$issueditems,'Choices'=>\@sel,
78 'Height'=> 14,'Width'=>78,'Ypos'=>8);
80 my $borrbox = C4::InterfaceCDK::borrowerbox($env,$borrower,$amountowing);
82 my @renews = $issuelist->activate();
90 END { } # module clean-up code here (global destructor)