X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Freg_code.cgi;h=76790ab02ce44c55d555208dce34704d154ccd8d;hb=409cd8958c687ac468b4d4fbe84fefb8f1e2feec;hp=899d1ec45e0ae660a1f884b8a542a6f88a582c84;hpb=55a68e4aabe10db4d9c3ab1bb8befd2f9f4b9008;p=freeside.git diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index 899d1ec45..76790ab02 100644 --- a/httemplate/edit/reg_code.cgi +++ b/httemplate/edit/reg_code.cgi @@ -1,36 +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) %> -<%= header('Generate registration codes for '. $agent->agent, menubar( - 'Main Menu' => $p, - )) -%> +<% include('/elements/error.html') %> -<% if ( $cgi->param('error') ) { %> - Error: <%= $cgi->param('error') %> -<% } %> - -