1 package C4::Interface::RenewalsCDK; #asummes C4/Interface/RenewalsCDK
13 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS);
15 # set the version for version checking
19 @EXPORT = qw(renew_window);
20 %EXPORT_TAGS = ( ); # eg: TAG => [ qw!name1 name2! ],
22 # your exported package globals go here,
23 # as well as any optionally exported functions
25 @EXPORT_OK = qw($Var1 %Hashit);
26 # non-exported package globals go here
27 use vars qw(@more $stuff);
29 # initalize package globals, first exported ones
34 # then the others (which are still accessible as $Some::Module::stuff)
38 # all file-scoped lexicals must be created before
39 # the functions below that se them.
41 # file-private lexicals go here
45 #defining keystrokes used for screens
47 # here's a file-private function as a closure,
48 # callable as &$priv_func; it cannot be prototyped.
53 # make all your functions, whether exported or not;
56 my ($env,$issueditems,$borrower,$amountowing,$odues)=@_;
57 my $titlepanel = C4::InterfaceCDK::titlepanel($env,$env->{'sysarea'},"Renewals");
58 my @sel = ("N ","Y ");
59 my $issuelist = new Cdk::Selection ('Title'=>"Renew items",
60 'List'=>\@$issueditems,'Choices'=>\@sel,
61 'Height'=> 14,'Width'=>78,'Ypos'=>8);
63 my $borrbox = C4::InterfaceCDK::borrowerbox($env,$borrower,$amountowing);
65 my @renews = $issuelist->activate();
73 END { } # module clean-up code here (global destructor)