adding the vanilla opac theme from 1.2
[koha.git] / imemberentry.pl
1 #!/usr/bin/perl
2 # NOTE: standard 8-space tabs here
3
4 #script to set up screen for modification of borrower details
5 #written 20/12/99 by chris@katipo.co.nz
6
7
8 # Copyright 2000-2002 Katipo Communications
9 #
10 # This file is part of Koha.
11 #
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
15 # version.
16 #
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.
20 #
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
24
25 use strict;
26 use C4::Auth;
27 use C4::Output;
28 use CGI;
29 use C4::Search;
30 use C4::Interface::CGI::Output;
31 use HTML::Template;
32
33 my $input = new CGI;
34
35 my ($template, $loggedinuser, $cookie)
36     = get_template_and_user({template_name => "members/imemberentry.tmpl",
37                              query => $input,
38                              type => "intranet",
39                              authnotrequired => 0,
40                              flagsrequired => {borrowers => 1},
41                              debug => 1,
42                              });
43
44
45 my $member=$input->param('bornum');
46 if ($member eq ''){
47   $member=NewBorrowerNumber();
48 }
49 my $type=$input->param('type');
50
51 my $data=borrdata('',$member);
52
53 $template->param({ startmenumember => startmenu('member'),
54                         endmenumember   => endmenu('member'),
55                         member          => $member });
56
57 output_html_with_http_headers $input, $cookie, $template->output;
58
59 # Local Variables:
60 # tab-width: 8
61 # End: