diff options
author | ivan <ivan> | 2007-12-25 23:49:23 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-12-25 23:49:23 +0000 |
commit | 2a6aa24137ddd389c1e644f5ece325c5b5dbaf3a (patch) | |
tree | 4880aeadc116d1dcb04bb6d0914ac39c17bddc8e /httemplate/edit/reg_code.cgi | |
parent | a35faaccc20e2214d91876744c45322a3a220bb5 (diff) |
ho ho ho, merry XSSmas
Diffstat (limited to 'httemplate/edit/reg_code.cgi')
-rw-r--r-- | httemplate/edit/reg_code.cgi | 20 |
1 files changed, 12 insertions, 8 deletions
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') ) { - - <FONT SIZE="+1" COLOR="#FF0000">Error: <% $cgi->param('error') %></FONT> -% } +<% include('/elements/error.html') %> <FORM ACTION="<%popurl(1)%>process/reg_code.cgi" METHOD="POST" NAME="OneTrueForm" onSubmit="document.OneTrueForm.submit.disabled=true"> <INPUT TYPE="hidden" NAME="agentnum" VALUE="<% $agent->agentnum %>"> Generate -<INPUT TYPE="text" NAME="num" VALUE="<% $cgi->param('num') %>" SIZE=5 MAXLENGTH=4> +% my $num = ''; +% if ( $cgi->param('num') =~ /^\s*(\d+)\s*$/ ) { +% $num = $1; +% } +<INPUT TYPE="text" NAME="num" VALUE="<% $num %>" SIZE=5 MAXLENGTH=4> registration codes for <B><% $agent->agent %></B> allowing the following packages: <BR><BR> + % foreach my $part_pkg ( qsearch('part_pkg', { 'disabled' => '' } ) ) { +% my $pkgpart = $part_pkg->pkgpart; + + <INPUT TYPE="checkbox" NAME="pkgpart<% $pkgpart %>" <% $cgi->param("pkgpart$pkgpart") ? 'CHECKED' : '' %>> + <% $part_pkg->pkg %> - <% $part_pkg->comment %> + <BR> - <INPUT TYPE="checkbox" NAME="pkgpart<% $part_pkg->pkgpart %>"> - <% $part_pkg->pkg %> - <% $part_pkg->comment %> - <BR> % } |