From 954ed54e8053a3333ca407deb5efcfffb4f28f8d Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 25 Dec 2007 23:50:19 +0000 Subject: ho ho ho, merry XSSmas --- httemplate/edit/reg_code.cgi | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) (limited to 'httemplate/edit/reg_code.cgi') diff --git a/httemplate/edit/reg_code.cgi b/httemplate/edit/reg_code.cgi index f5f0f7b66..4ad39051a 100644 --- a/httemplate/edit/reg_code.cgi +++ b/httemplate/edit/reg_code.cgi @@ -11,24 +11,28 @@ 'Main Menu' => $p, )) %> -% if ( $cgi->param('error') ) { - - Error: <% $cgi->param('error') %> -% } +<% include('/elements/error.html') %>
Generate - +% my $num = ''; +% if ( $cgi->param('num') =~ /^\s*(\d+)\s*$/ ) { +% $num = $1; +% } + registration codes for <% $agent->agent %> allowing the following packages:

+ % foreach my $part_pkg ( qsearch('part_pkg', { 'disabled' => '' } ) ) { +% my $pkgpart = $part_pkg->pkgpart; + + param("pkgpart$pkgpart") ? 'CHECKED' : '' %>> + <% $part_pkg->pkg %> - <% $part_pkg->comment %> +
- - <% $part_pkg->pkg %> - <% $part_pkg->comment %> -
% } -- cgit v1.2.1