1 package C4::Interface::RenewalsCDK; #asummes 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
31 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
33 # set the version for version checking
37 @EXPORT = qw(renew_window);
38 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
40 # your exported package globals go here,
41 # as well as any optionally exported functions
43 @EXPORT_OK = qw($Var1 %Hashit);
44 # non-exported package globals go here
45 use vars qw(@more $stuff);
47 # initalize package globals, first exported ones
52 # then the others (which are still accessible as $Some::Module::stuff)
56 # all file-scoped lexicals must be created before
57 # the functions below that se them.
59 # file-private lexicals go here
63 #defining keystrokes used for screens
65 # here's a file-private function as a closure,
66 # callable as &$priv_func; it cannot be prototyped.
71 # make all your functions, whether exported or not;
74 my ($env,$issueditems,$borrower,$amountowing,$odues)=@_;
75 my $titlepanel = C4::InterfaceCDK::titlepanel($env,$env->{'sysarea'},"Renewals");
76 my @sel = ("N ","Y ");
77 my $issuelist = new Cdk::Selection ('Title'=>"Renew items",
78 'List'=>\@$issueditems,'Choices'=>\@sel,
79 'Height'=> 14,'Width'=>78,'Ypos'=>8);
81 my $borrbox = C4::InterfaceCDK::borrowerbox($env,$borrower,$amountowing);
83 my @renews = $issuelist->activate();
91 END { } # module clean-up code here (global destructor)