showing bookseller phone, fax & mail on lateissues

This commit is contained in:
tipaul 2005-09-23 09:27:15 +00:00
parent 0c8f0f3376
commit 5de899f301
2 changed files with 14 additions and 2 deletions

View File

@ -4,6 +4,7 @@ use strict;
use CGI;
use C4::Auth;
use C4::Bull;
use C4::Acquisition;
use C4::Output;
use C4::Interface::CGI::Output;
use C4::Context;
@ -30,6 +31,10 @@ my $CGIsupplier=CGI::scrolling_list( -name => 'supplierid',
my @lateissues;
@lateissues = GetLateIssues($supplierid) if $supplierid;
my @supplierinfo;
my $nothing;
($nothing,@supplierinfo)=bookseller($supplierid) if $supplierid;
my ($template, $loggedinuser, $cookie)
= get_template_and_user({template_name => "bull/lateissues.tmpl",
query => $query,
@ -41,6 +46,9 @@ my ($template, $loggedinuser, $cookie)
$template->param(
CGIsupplier => $CGIsupplier,
lateissues => \@lateissues
lateissues => \@lateissues,
phone => $supplierinfo[0]->{phone},
booksellerfax => $supplierinfo[0]->{booksellerfax},
bookselleremail => $supplierinfo[0]->{bookselleremail},
);
output_html_with_http_headers $query, $cookie, $template->output;

View File

@ -16,7 +16,11 @@
<!-- TMPL_VAR name="CGIsupplier" -->
</td>
<td>
&nbsp;
<p>
<!-- TMPL_IF name="phone" -->Phone: <!-- TMPL_VAR name="phone" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="booksellerfax" -->Fax: <!-- TMPL_VAR name="booksellerfax" --><!-- /TMPL_IF -->
<!-- TMPL_IF name="bookselleremail" --></p><p><a href="mailto:<!-- TMPL_VAR name="bookselleremail" -->" class="button bull"><!-- TMPL_VAR name="bookselleremail" --></a><!-- /TMPL_IF -->
</p>
</td>
<td>
<input type="submit" value="filter" class="button bull">