freeside/httemplate/edit reg_code.cgi,NONE,1.1

ivan ivan at pouncequick.420.am
Sat Jan 29 04:34:18 PST 2005


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory pouncequick:/tmp/cvs-serv3172/httemplate/edit

Added Files:
	reg_code.cgi 
Log Message:
registration codes

--- NEW FILE: reg_code.cgi ---
<%
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(
      'Main Menu' => $p,
    ))
%>

<% if ( $cgi->param('error') ) { %>
  <FONT SIZE="+1" COLOR="#FF0000">Error: <%= $cgi->param('error') %></FONT>
<% } %>

<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>
registration codes for <B><%= $agent->agent %></B> allowing the following packages:
<BR><BR>

<% foreach my $part_pkg ( qsearch('part_pkg', { 'disabled' => '' } ) ) { %>
  <INPUT TYPE="checkbox" NAME="pkgpart<%= $part_pkg->pkgpart %>">
  <%= $part_pkg->pkg %> - <%= $part_pkg->comment %>
  <BR>
<% } %>

<BR>
<INPUT TYPE="submit" NAME="submit" VALUE="Generate">

</FORM></BODY></HTML>





More information about the freeside-commits mailing list