X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Freg_code.cgi;h=76790ab02ce44c55d555208dce34704d154ccd8d;hb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;hp=06bef487909bcd977975a0b8619314248662e93a;hpb=9509e5bfb7f9331303153cac24d7bfecbe2ea9f1;p=freeside.git diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index 06bef4879..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 eidiot "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') %>