3 # Display a history of attempts to contact this borrower
4 # regarding overdues and fines.
7 # tony@katipo.co.nz 5/July/2003
8 # Copyright 2000-2002 Katipo Communications
10 # This file is part of Koha.
12 # Koha is free software; you can redistribute it and/or modify it under the
13 # terms of the GNU General Public License as published by the Free Software
14 # Foundation; either version 2 of the License, or (at your option) any later
17 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
18 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
19 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
21 # You should have received a copy of the GNU General Public License along with
22 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
23 # Suite 330, Boston, MA 02111-1307 USA
35 my $borrowernumber = $input->param('borrowernumber');
36 my $date= $input->param('date');
37 my $edate=$input->param('edate');
39 if ($borrowernumber) {
40 my $borrower = BorType($borrowernumber);
43 my $querystring = " select date, method, address, result, message, borrowernumber
44 from attempted_contacts
45 where date >= ? and date < ?
50 my $sth=$dbh->prepare($querystring);
51 $sth->execute($date,$edate);
53 while (my $row=$sth->fetchrow_hashref()) {
54 print "<a href=/cgi-bin/koha/moremember.pl?borrowernumber=$row->{'borrowernumber'}>Borrwer Record</a> ";
55 if ($row->{'method'} ne 'email'){
56 my $tidydate=$row->{'date'};
57 $tidydate=~ s/ /%20/g;
58 print " <a href=/cgi-bin/koha/printnote.pl?borrowernumber=$row->{'borrowernumber'}&date=$tidydate>Print Note</a><br>";
60 print $row->{'date'}."<br>\n";
61 print $row->{'method'}."<br>\n";
62 print $row->{'address'}."<br>\n";
63 print $row->{'result'}."<br>\n";
64 print $row->{'message'}."<br>\n";