Added copyright statement to all .pl and .pm files
[koha.git] / acqui / newbasket.pl
1 #!/usr/bin/perl
2
3 #script to show display basket of orders
4 #written by chris@katipo.co.nz 24/2/2000
5
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
24 use C4::Catalogue;
25 use C4::Biblio;
26 use C4::Output;
27 use CGI;
28 use strict;
29
30 my $input=new CGI;
31 print $input->header();
32 my $user=$input->remote_user;
33 my $id=$input->param('id');
34 my ($count,@booksellers)=bookseller($id);
35 print startpage;
36
37 print startmenu('acquisitions');
38
39 my $basket=$input->param('basket');
40 if ($basket eq ''){
41   $basket=newbasket();
42 }
43 my $date=localtime(time);
44 print <<printend
45
46
47 <div align=right>
48 Our Reference: HLT-$basket<br>
49 Authorised By: $user<br>
50 $date
51 </div>
52 <FONT SIZE=6><em>Shopping Basket For: <a href=/cgi-bin/koha/acqui/supplier.pl?id=$booksellers[0]->{'id'}>
53 $booksellers[0]->{'name'}</a></em></FONT><br>
54 Ph: $booksellers[0]->{'phone'}, Fax: $booksellers[0]->{'fax'},
55 $booksellers[0]->{'address1'}, $booksellers[0]->{'address2'}, 
56 $booksellers[0]->{'address3'}, $booksellers[0]->{'address4'}
57
58
59 <p>
60 <FORM ACTION="/cgi-bin/koha/acqui/newbasket2.pl" method=post>
61 <input type=hidden name=id value="$id">
62 <input type=hidden name=basket value="$basket">
63 <b> Search Keyword or Title: </b><INPUT TYPE="text"  SIZE="25"   NAME="search"> 
64
65 </form>
66
67
68
69 <br clear=all>
70 <DL>
71 <dt><b>DELIVERY ADDRESS: </b></dt>
72 <dd><b>Horowhenua Library Trust</b><br>
73 10 Bath St<br>
74 Levin<br>
75 New Zealand<p>
76
77 Ph: +64-6-368 1953<br>
78 Email: <a href="mailto:orders\@library.org.nz">orders\@library.org.nz</a>
79
80 </dl>
81
82
83 printend
84 ;
85
86 print endmenu('acquisitions');
87
88 print endpage;