#!/usr/bin/perl

# $Id$

#script to show display basket of orders
#written by chris@katipo.co.nz 24/2/2000


# Copyright 2000-2002 Katipo Communications
#
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE.  See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along with
# Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
# Suite 330, Boston, MA  02111-1307 USA

use C4::Catalogue;
use C4::Biblio;
use C4::Output;
use CGI;
use strict;

my $input=new CGI;
print $input->header();
my $user=$input->remote_user;
my $id=$input->param('id');
my ($count,@booksellers)=bookseller($id);
print startpage;

print startmenu('acquisitions');

my $basket=$input->param('basket');
if ($basket eq ''){
  $basket=newbasket();
}
my $date=localtime(time);
print <<printend


<div align=right>
Our Reference: HLT-$basket<br>
Authorised By: $user<br>
$date
</div>
<FONT SIZE=6><em>Shopping Basket For: <a href=/cgi-bin/koha/acqui/supplier.pl?id=$booksellers[0]->{'id'}>
$booksellers[0]->{'name'}</a></em></FONT><br>
Ph: $booksellers[0]->{'phone'}, Fax: $booksellers[0]->{'fax'},
$booksellers[0]->{'address1'}, $booksellers[0]->{'address2'},
$booksellers[0]->{'address3'}, $booksellers[0]->{'address4'}


<p>
<FORM ACTION="/cgi-bin/koha/acqui/newbasket2.pl" method=post>
<input type=hidden name=id value="$id">
<input type=hidden name=basket value="$basket">
<b> Search Keyword or Title: </b><INPUT TYPE="text"  SIZE="25"   NAME="search">

</form>



<br clear=all>
<DL>
<dt><b>DELIVERY ADDRESS: </b></dt>
<dd><b>Horowhenua Library Trust</b><br>
10 Bath St<br>
Levin<br>
New Zealand<p>

Ph: +64-6-368 1953<br>
Email: <a href="mailto:orders\@library.org.nz">orders\@library.org.nz</a>

</dl>


printend
;

print endmenu('acquisitions');

print endpage;
