Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 79 lines (71 sloc) 2.75 kB
d0374d0 Initial revision
rangi authored
1 #!/usr/bin/perl
2
3 #script to do a borrower enquiery/brin up borrower details etc
4 #written 20/12/99 by chris@katipo.co.nz
5
1e67687 Added copyright statement to all .pl and .pm files
tonnesen authored
6
7 # Copyright 2000-2002 Katipo Communications
8 #
9 # This file is part of Koha.
10 #
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
14 # version.
15 #
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.
19 #
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
23
d0374d0 Initial revision
rangi authored
24 use strict;
25 use C4::Output;
26 use CGI;
27 use C4::Search;
28
29
30 my $input = new CGI;
31 my $member=$input->param('member');
32 $member=~ s/\,//g;
33 print $input->header;
34 #start the page and read in includes
35 print startpage();
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);
41 print <<printend
42
43 printend
44 ;
45 print "You Searched for $member<p>";
46 print mktablehdr;
47 print mktablerow(8,'#99cc33',bold('Card'),bold('Surname'),bold('Firstname'),bold('Category')
01fdc4f Changed the word: Fines to: Charges
finlayt authored
48 ,bold('Address'),bold('OD/Issues'),bold('Charges'),bold('Notes'),'/images/background-mem.gif');
d0374d0 Initial revision
rangi authored
49 my $env;
50 my ($count,$results)=BornameSearch($env,$member,'web');
51 #print $count;
52 my $toggle="white";
53 for (my $i=0; $i < $count; $i++){
54 #find out stats
55 my ($od,$issue,$fines)=borrdata2($env,$results->[$i]{'borrowernumber'});
56 $fines=$fines+0;
57 if ($toggle eq 'white'){
58 $toggle="#ffffcc";
59 } else {
60 $toggle="white";
61 }
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'});
67 }
68 print mktableft;
69 print <<printend
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
74 </form>
75 printend
76 ;
77 print endmenu('member');
78 print endpage();
Something went wrong with that request. Please try again.