X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=httemplate%2Fedit%2Freg_code.cgi;h=06bef487909bcd977975a0b8619314248662e93a;hp=899d1ec45e0ae660a1f884b8a542a6f88a582c84;hb=3ce7691203a7737406bf2d4442f7fd84b81f847e;hpb=55a68e4aabe10db4d9c3ab1bb8befd2f9f4b9008 diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index 899d1ec45..06bef4879 100644 --- a/httemplate/edit/reg_code.cgi +++ b/httemplate/edit/reg_code.cgi @@ -1,33 +1,36 @@ -<% -my $agentnum = $cgi->param('agentnum'); -$agentnum =~ /^(\d+)$/ or eidiot "illegal agentnum $agentnum"; -$agentnum = $1; -my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); +% +%my $agentnum = $cgi->param('agentnum'); +%$agentnum =~ /^(\d+)$/ or eidiot "illegal agentnum $agentnum"; +%$agentnum = $1; +%my $agent = qsearchs('agent', { 'agentnum' => $agentnum } ); +% +% -%> -<%= header('Generate registration codes for '. $agent->agent, menubar( +<% include("/elements/header.html",'Generate registration codes for '. $agent->agent, menubar( 'Main Menu' => $p, )) %> +% if ( $cgi->param('error') ) { + + Error: <% $cgi->param('error') %> +% } -<% if ( $cgi->param('error') ) { %> - Error: <%= $cgi->param('error') %> -<% } %> -
- + + Generate - -registration codes for <%= $agent->agent %> allowing the following packages: + +registration codes for <% $agent->agent %> allowing the following packages:

+% foreach my $part_pkg ( qsearch('part_pkg', { 'disabled' => '' } ) ) { -<% foreach my $part_pkg ( qsearch('part_pkg', { 'disabled' => '' } ) ) { %> - - <%= $part_pkg->pkg %> - <%= $part_pkg->comment %> + + <% $part_pkg->pkg %> - <% $part_pkg->comment %>
-<% } %> +% } +