3 #script to show suppliers and orders
4 #written by chris@katipo.co.nz 23/2/2000
13 print $input->header();
14 my $supplier=$input->param('supplier');
17 print startmenu('acquisitions');
18 my ($count,@suppliers)=bookseller($supplier);
21 <FONT SIZE=6><em>Supplier Search Results</em></FONT>
23 <a href=supplier.pl?id=0><img alt="Add New Supplier" src="/images/new-supplier.gif" WIDTH=187 HEIGHT=42 BORDER=0 border=0></a>
26 You searched on <b>supplier $supplier,</b> $count results found<p>
27 <table border=0 cellspacing=0 cellpadding=5>
28 <tr valign=top bgcolor=#99cc33>
29 <td background="/images/background-mem.gif"> </td>
30 <td background="/images/background-mem.gif"><b>COMPANY</b></td>
31 <td background="/images/background-mem.gif"><b>BASKETS</b></td><td background="/images/background-mem.gif"><b>ITEMS</b></td><td background="/images/background-mem.gif"><b>STAFF</b></td><td background="/images/background-mem.gif"><b>DATE</b></td></tr>
36 for (my $i=0; $i<$count; $i++) {
44 my ($ordcount,$orders)=getorders($suppliers[$i]->{'id'});
46 if ($orders->[0]->{'basketno'}>0) {
48 <tr valign=top bgcolor=$colour>
49 <td><a href="newbasket.pl?id=$suppliers[$i]->{'id'}"><img src="/images/new-basket-short.gif" alt="New Basket" width=77 height=32 border=0 ></a>
50 <a href="recieveorder.pl?id=$suppliers[$i]->{'id'}"><img src="/images/receive-order-short.gif" alt="Receive Order" width=77 height=32 border=0 ></a></td>
51 <td><a href="supplier.pl?id=$suppliers[$i]->{'id'}">$suppliers[$i]->{'name'}</a></td>
52 <td><a href="/cgi-bin/koha/acqui/basket.pl?basket=$orders->[0]->{'basketno'}">HLT-$orders->[0]->{'basketno'}</a></td>
53 <td>$orders->[0]->{'count(*)'}</td>
54 <td>$orders->[0]->{'authorisedby'}</td>
55 <td>$orders->[0]->{'entrydate'}</td></tr>
60 <tr valign=top bgcolor=$colour>
61 <td><a href="newbasket.pl?id=$suppliers[$i]->{'id'}"><img src="/images/new-basket-short.gif" alt="New Basket" width=77 height=32 border=0 ></a>
62 <a href="recieveorder.pl?id=$suppliers[$i]->{'id'}"><img src="/images/receive-order-short.gif" alt="Receive Order" width=77 height=32 border=0 ></a></td>
63 <td><a href="supplier.pl?id=$suppliers[$i]->{'id'}">$suppliers[$i]->{'name'}</a></td>
65 <td>$orders->[0]->{'count(*)'}</td>
66 <td>$orders->[0]->{'authorisedby'}</td>
67 <td>$orders->[0]->{'entrydate'}</td></tr>
71 for (my $i2=1;$i2<$ordcount;$i2++){
72 if ($orders->[$i2]->{'basketno'}>=1) {
74 <tr valign=top bgcolor=$colour>
77 <td><a href="/cgi-bin/koha/acqui/basket.pl?basket=$orders->[$i2]->{'basketno'}">HLT-$orders->[$i2]->{'basketno'}</a></td>
78 <td>$orders->[$i2]->{'count(*)'}</td><td>$orders->[$i2]->{'authorisedby'} </td>
79 <td>$orders->[$i2]->{'entrydate'}</td></tr>
85 <tr valign=top bgcolor=$colour>
89 <td>$orders->[$i2]->{'count(*)'}</td><td>$orders->[$i2]->{'authorisedby'} </td>
90 <td>$orders->[$i2]->{'entrydate'}</td></tr>
105 print endmenu('acquisitions');