3 #script to do a borrower enquiery/brin up borrower details etc
4 #written 20/12/99 by chris@katipo.co.nz
7 # Copyright 2000-2002 Katipo Communications
9 # This file is part of Koha.
11 # Koha is free software; you can redistribute it and/or modify it under the
12 # terms of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
16 # Koha is distributed in the hope that it will be useful, but WITHOUT ANY
17 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
18 # A PARTICULAR PURPOSE. See the GNU General Public License for more details.
20 # You should have received a copy of the GNU General Public License along with
21 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
22 # Suite 330, Boston, MA 02111-1307 USA
31 my $member=$input->param('member');
34 #start the page and read in includes
36 print startmenu('member');
37 my @inputs=(["text","member",$member],
38 ["reset","reset","clr"]);
39 print mkheadr(2,'Member Search');
40 print mkformnotable("/cgi-bin/koha/member.pl",@inputs);
45 print "You Searched for $member<p>";
47 print mktablerow(8,'#99cc33',bold('Card'),bold('Surname'),bold('Firstname'),bold('Category')
48 ,bold('Address'),bold('OD/Issues'),bold('Charges'),bold('Notes'),'/images/background-mem.gif');
50 my ($count,$results)=BornameSearch($env,$member,'web');
53 for (my $i=0; $i < $count; $i++){
55 my ($od,$issue,$fines)=borrdata2($env,$results->[$i]{'borrowernumber'});
57 if ($toggle eq 'white'){
62 #mklink("/cgi-bin/koha/memberentry.pl?bornum=".$results->[$i]{'borrowernumber'},$results->[$i]{'cardnumber'}),
63 print mktablerow(8,$toggle,mklink("/cgi-bin/koha/moremember.pl?bornum=".$results->[$i]{'borrowernumber'},$results->[$i]{'cardnumber'}),
64 $results->[$i]{'surname'},$results->[$i]{'firstname'},
65 $results->[$i]{'categorycode'},$results->[$i]{'streetaddress'}." ".$results->[$i]{'city'},"$od/$issue",$fines,
66 $results->[$i]{'borrowernotes'});
70 <form action=/cgi-bin/koha/simpleredirect.pl method=post>
71 <input type=image src="/images/button-add-member.gif" WIDTH=188 HEIGHT=44 ALT="Add New Member" BORDER=0 ></a><br>
72 <INPUT TYPE="radio" name="chooseform" value="adult" checked>Adult
73 <INPUT TYPE="radio" name="chooseform" value="organisation" >Organisation
77 print endmenu('member');