[freeside-commits]
freeside/httemplate/misc recharge_svc.html, NONE, 1.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Nov 29 18:27:58 PST 2006
Update of /home/cvs/cvsroot/freeside/httemplate/misc
In directory wavetail:/tmp/cvs-serv12489/httemplate/misc
Added Files:
recharge_svc.html
Log Message:
prepaid download/upload tracking
--- NEW FILE: recharge_svc.html ---
<% include('/elements/header-popup.html', 'Recharge Service' ) %>
% if ( $cgi->param('error') ) {
<FONT SIZE="+1" COLOR="#ff0000">Error: <% $cgi->param('error') %></FONT>
<BR><BR>
% }
<FORM NAME="recharge_popup" ACTION="<% popurl(1) %>process/recharge_svc.html" METHOD=POST>
<INPUT TYPE="hidden" NAME="svcnum" VALUE="<% $svcnum %>">
<BR><BR>
<% "Recharge $svcnum: $label - $value" %>
<% ntable("#cccccc", 2) %>
<TR>
<TD>Enter prepaid card: </TD>
<TD><INPUT TYPE="text" NAME="prepaid" VALUE="<% $prepaid %>"></TD>
</TR>
</TABLE>
<BR>
<INPUT TYPE="submit" NAME="submit" VALUE="Recharge">
</FORM>
</BODY>
</HTML>
<%init>
my($svcnum, $cust_svc, $label, $value, $prepaid);
if ( $cgi->param('error') ) {
$svcnum = $cgi->param('svcnum');
$prepaid = $cgi->param('prepaid');
} elsif ( $cgi->param('svcnum') =~ /^(\d+)$/ ) {
$svcnum = $1;
} else {
die "illegal query ". $cgi->keywords;
}
my $title = 'Recharge Service';
$cust_svc = qsearchs('cust_svc', {'svcnum' => $svcnum});
die "No such service: $svcnum" unless $cust_svc;
($label, $value) = $cust_svc->label;
</%init>
More information about the freeside-commits
mailing list