From 34647c32b50ce3b8ee1b6d3d7aef4ba9d0297bdb Mon Sep 17 00:00:00 2001 From: ivan Date: Sun, 6 Mar 2005 03:04:29 +0000 Subject: add Excel and CSV download of templated reports and clean up their HTML formatting, closes; Bug#520, Bug#1107 --- httemplate/search/reg_code.html | 51 +++++++++++++++++++++-------------------- 1 file changed, 26 insertions(+), 25 deletions(-) (limited to 'httemplate/search/reg_code.html') diff --git a/httemplate/search/reg_code.html b/httemplate/search/reg_code.html index ba1eee078..52a99ff66 100644 --- a/httemplate/search/reg_code.html +++ b/httemplate/search/reg_code.html @@ -7,29 +7,30 @@ my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); my $count_query = "SELECT COUNT(*) FROM reg_code WHERE agentnum = $agentnum"; -%> -<%= include( 'elements/search.html', - 'title' => 'Unused Registration Codes for '. $agent->agent, - 'name' => 'registration codes', - 'query' => { 'table' => 'reg_code', - 'hashref' => { 'agentnum' => $agentnum, }, - }, - 'count_query' => $count_query, - #'redirect' => $link, - 'header' => [ qw(Code Packages) ], - 'fields' => [ - 'code', - sub { map { - qq!'. - $_->pkg. ' - '. $_->comment. - '
' - } $_[0]->part_pkg - }, - ], - 'links' => [ - '', - #$plink, - '', - ], - ) +%><%= include( 'elements/search.html', + 'title' => 'Unused Registration Codes for '. + $agent->agent, + 'name' => 'registration codes', + 'query' => { 'table' => 'reg_code', + 'hashref' => { 'agentnum' => $agentnum, }, + }, + 'count_query' => $count_query, + #'redirect' => $link, + 'header' => [ qw(Code Packages) ], + 'fields' => [ + 'code', + sub { + map { + qq!'. + $_->pkg. ' - '. $_->comment. + '
' + } $_[0]->part_pkg + }, + ], + 'links' => [ + '', + #$plink, + '', + ], + ) %> -- cgit v1.2.1