X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fsearch%2Fprepay_credit.html;fp=httemplate%2Fsearch%2Fprepay_credit.html;h=dff8a3d9a8d3050105c038c91a685c33b20c0d9a;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hp=8c8f57b5ae84d4053968268633726d184e0dae71;hpb=15e561850b61b10a92a46d8f3e316d53d4970087;p=freeside.git diff --git a/httemplate/search/prepay_credit.html b/httemplate/search/prepay_credit.html index 8c8f57b5a..dff8a3d9a 100644 --- a/httemplate/search/prepay_credit.html +++ b/httemplate/search/prepay_credit.html @@ -1,15 +1,16 @@ -<% -my $agent = ''; -my $hashref = {}; -if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { - $hashref->{agentnum} = $1; - $agent = qsearchs('agent', { 'agentnum' => $1 } ); -} - -my $count_query = 'SELECT COUNT(*) FROM prepay_credit'; -$count_query .= ' WHERE agentnum = '. $agent->agentnum if $agent; - -%><%= include( 'elements/search.html', +% +%my $agent = ''; +%my $hashref = {}; +%if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { +% $hashref->{agentnum} = $1; +% $agent = qsearchs('agent', { 'agentnum' => $1 } ); +%} +% +%my $count_query = 'SELECT COUNT(*) FROM prepay_credit'; +%$count_query .= ' WHERE agentnum = '. $agent->agentnum if $agent; +% +% +<% include( 'elements/search.html', 'title' => 'Unused Prepaid Cards'. ($agent ? ' for '. $agent->agent : ''), 'menubar' => [