From 6194551336a925ae5455cede68a7f73660b06bb6 Mon Sep 17 00:00:00 2001 From: jeff Date: Thu, 7 Dec 2006 02:40:32 +0000 Subject: retouch bandwidth countdown --- httemplate/edit/prepay_credit.cgi | 12 ++++++++++++ httemplate/edit/process/prepay_credit.cgi | 2 ++ 2 files changed, 14 insertions(+) (limited to 'httemplate/edit') diff --git a/httemplate/edit/prepay_credit.cgi b/httemplate/edit/prepay_credit.cgi index 7ce44c087..c22904d6c 100644 --- a/httemplate/edit/prepay_credit.cgi +++ b/httemplate/edit/prepay_credit.cgi @@ -21,6 +21,7 @@ %$cgi->param('multiplier', '60') unless $cgi->param('multiplier'); %$cgi->param('upmultiplier', '1000000') unless $cgi->param('upmultiplier'); %$cgi->param('downmultiplier', '1000000') unless $cgi->param('downmultiplier'); +%$cgi->param('totalmultiplier','1000000') unless $cgi->param('totalmultiplier'); % % @@ -91,6 +92,17 @@ $ + total transfer +

diff --git a/httemplate/edit/process/prepay_credit.cgi b/httemplate/edit/process/prepay_credit.cgi index ba4296900..6bf46bf7c 100644 --- a/httemplate/edit/process/prepay_credit.cgi +++ b/httemplate/edit/process/prepay_credit.cgi @@ -19,6 +19,7 @@ %$hashref->{seconds} = $cgi->param('seconds') * $cgi->param('multiplier'); %$hashref->{upbytes} = $cgi->param('upbytes') * $cgi->param('upmultiplier'); %$hashref->{downbytes} = $cgi->param('downbytes') * $cgi->param('downmultiplier'); +%$hashref->{totalbytes} = $cgi->param('totalbytes') * $cgi->param('totalmultiplier'); % %$error ||= FS::prepay_credit::generate( $num, % scalar($cgi->param('type')), @@ -50,6 +51,7 @@ <% $hashref->{seconds} ? duration_exact($hashref->{seconds}) : '' %> <% $hashref->{upbytes} ? FS::UI::Web::bytecount_unexact($hashref->{upbytes}) : '' %> <% $hashref->{downbytes} ? FS::UI::Web::bytecount_unexact($hashref->{downbytes}) : '' %> + <% $hashref->{totalbytes} ? FS::UI::Web::bytecount_unexact($hashref->{totalbytes}) : '' %>
% } -- cgit v1.2.1