#!/usr/bin/perl
+# $Id$
# Copyright 2000-2002 Katipo Communications
#
my $theme = $input->param('theme'); # only used if allowthemeoverride is set
my %tmpldata = pathtotemplate ( template => 'overdue.tmpl', theme => $theme);
-my $template = HTML::Template->new( filename => $tmpldata{'path'},
+my $template = HTML::Template->new( filename => $tmpldata{'path'},
die_on_bad_params => 0);
my $duedate;
my $bornum;
$duedate=$data->{'date_due'};
$bornum=$data->{'borrowernumber'};
$itemnum=$data->{'itemnumber'};
-
+
my $query="select concat(firstname,' ',surname),phone,emailaddress from borrowers where borrowernumber='$bornum'";
my $sth1=$dbh->prepare($query);
$sth1->execute;
endmenureport => join ('', endmenu('report')),
todaysdate => $todaysdate,
overdueloop => \@overduedata );
-
+
print "Content-Type: text/html\n\n", $template->output;