<% include("/elements/header.html",'Generate prepaid cards'. ($agent ? ' for '. $agent->agent : '') ) %> <% include('/elements/error.html') %>
Generate prepaid cards of   characters each
for
Value: $ and/or
and/or upload
and/or download
and/or total transfer


<% include('/elements/footer.html') %> <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); my $agent = ''; my $agentnum = ''; if ( $cgi->param('agentnum') =~ /^(\d+)$/ ) { $agent = qsearchs('agent', { 'agentnum' => $agentnum=$1 } ); } tie my %multiplier, 'Tie::IxHash', 1 => 'seconds', 60 => 'minutes', 3600 => 'hours', ; tie my %bytemultiplier, 'Tie::IxHash', 1 => 'bytes', 1024 => 'Kbytes', 1048576 => 'Mbytes', 1073741824 => 'Gbytes', ; $cgi->param('multiplier', '60') unless $cgi->param('multiplier'); $cgi->param('upmultiplier', '1048576') unless $cgi->param('upmultiplier'); $cgi->param('downmultiplier', '1048576') unless $cgi->param('downmultiplier'); $cgi->param('totalmultiplier','1048576') unless $cgi->param('totalmultiplier');