X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Freg_code.cgi;h=76790ab02ce44c55d555208dce34704d154ccd8d;hb=7516e3da0f17eeecba27219ef96a8b5f46af2083;hp=f5f0f7b669874e17e1633f8ad7234f7af391db10;hpb=718f65eee1c797ea90a315b5f03fae75c80a5112;p=freeside.git diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index f5f0f7b66..76790ab02 100644 --- a/httemplate/edit/reg_code.cgi +++ b/httemplate/edit/reg_code.cgi @@ -1,39 +1,44 @@ -% -%my $agentnum = $cgi->param('agentnum'); -%$agentnum =~ /^(\d+)$/ or errorpage("illegal agentnum $agentnum"); -%$agentnum = $1; -%my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); -% -% - - -<% include("/elements/header.html",'Generate registration codes for '. $agent->agent, menubar( - 'Main Menu' => $p, - )) -%> -% if ( $cgi->param('error') ) { - - Error: <% $cgi->param('error') %> -% } +<% include('/elements/header.html', 'Generate registration codes for '. $agent->agent) %> +<% include('/elements/error.html') %>