[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi
myaccount_menu.html, 1.5, 1.6 selfservice.cgi, 1.17,
1.18 view_usage.html, NONE, 1.1
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Nov 29 18:27:58 PST 2006
- Previous message: [freeside-commits]
freeside/FS/FS AccessRight.pm, 1.13, 1.14 Conf.pm,
1.170, 1.171 cust_main.pm, 1.252, 1.253 Schema.pm, 1.34,
1.35 svc_acct.pm, 1.206, 1.207
- Next message: [freeside-commits] freeside/httemplate/edit prepay_credit.cgi, 1.3,
1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail:/tmp/cvs-serv12489/fs_selfservice/FS-SelfService/cgi
Modified Files:
myaccount_menu.html selfservice.cgi
Added Files:
view_usage.html
Log Message:
prepaid download/upload tracking
Index: selfservice.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/selfservice.cgi,v
retrieving revision 1.17
retrieving revision 1.18
diff -u -d -r1.17 -r1.18
--- selfservice.cgi 27 Nov 2006 07:11:53 -0000 1.17
+++ selfservice.cgi 30 Nov 2006 02:27:55 -0000 1.18
@@ -65,7 +65,7 @@
#order|pw_list XXX ???
$cgi->param('action') =~
- /^(myaccount|view_invoice|make_payment|payment_results|recharge_prepay|recharge_results|logout|change_bill|change_ship|customer_order_pkg|process_order_pkg|provision|provision_svc|process_svc_acct|process_svc_external|delete_svc|change_password|process_change_password)$/
+ /^(myaccount|view_invoice|make_payment|payment_results|recharge_prepay|recharge_results|logout|change_bill|change_ship|customer_order_pkg|process_order_pkg|provision|provision_svc|process_svc_acct|process_svc_external|delete_svc|view_usage||change_password|process_change_password)$/
or die "unknown action ". $cgi->param('action');
my $action = $1;
@@ -321,6 +321,14 @@
);
}
+sub view_usage {
+ list_svcs(
+ 'session_id' => $session_id,
+ 'svcdb' => 'svc_acct',
+ 'ncancelled' => 1,
+ );
+}
+
sub change_password {
list_svcs(
'session_id' => $session_id,
--- NEW FILE: view_usage.html ---
<HTML><HEAD><TITLE>MyAccount</TITLE></HEAD>
<BODY BGCOLOR="#eeeeee"><FONT SIZE=5>MyAccount</FONT><BR><BR>
<%= $url = "$selfurl?session=$session_id;action="; ''; %>
<%= include('myaccount_menu') %>
<TD VALIGN="top">
<FONT SIZE=4>Service usage</FONT><BR><BR>
<FORM ACTION="<%= $selfurl %>" METHOD="POST">
<INPUT TYPE="hidden" NAME="session" VALUE="<%= $session_id %>">
<TABLE BGCOLOR="#cccccc">
<TR>
<TH ALIGN="left">Account</TH>
<TH ALIGN="right">Time remaining</TH>
<TH ALIGN="right">Upload remaining</TH>
<TH ALIGN="right">Download remaining</TH>
<TH ALIGN="right">Total remaining</TH>
</TR>
<%= foreach my $svc ( @svcs ) {
my $totalbytes = '';
if ( ($svc->{'upbytes'} + 0) eq $svc->{'upbytes'}
|| ($svc->{'downbytes'} + 0) eq $svc->{'downbytes'} ) {
$totalbytes = $svc->{'upbytes'} + $svc->{'downbytes'};
}
$OUT .= '<TR><TD>';
$OUT .= $svc->{'label'}. ': '. $svc->{'value'};
$OUT .= '</TD><TD ALIGN="right">';
$OUT .= $svc->{'seconds'};
$OUT .= '</TD><TD ALIGN="right">';
$OUT .= $svc->{'upbytes'};
$OUT .= '</TD><TD ALIGN="right">';
$OUT .= $svc->{'downbytes'};
$OUT .= '</TD><TD ALIGN="right">';
$OUT .= $totalbytes;
$OUT .= '</TD></TR>';
} %>
</TABLE>
<BR>
</FORM>
</TD></TR></TABLE>
<HR>
<FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>
</BODY></HTML>
Index: myaccount_menu.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/myaccount_menu.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- myaccount_menu.html 27 Nov 2006 07:11:53 -0000 1.5
+++ myaccount_menu.html 30 Nov 2006 02:27:55 -0000 1.6
@@ -31,6 +31,7 @@
{ title=>' ' },
+{ title=>'View my usage', url=>'view_usage', size=>'+1', },
{ title=>'Setup my services', url=>'provision', size=>'+1', },
{ title=>' ' },
- Previous message: [freeside-commits]
freeside/FS/FS AccessRight.pm, 1.13, 1.14 Conf.pm,
1.170, 1.171 cust_main.pm, 1.252, 1.253 Schema.pm, 1.34,
1.35 svc_acct.pm, 1.206, 1.207
- Next message: [freeside-commits] freeside/httemplate/edit prepay_credit.cgi, 1.3,
1.4
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the freeside-commits
mailing list