X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=a57bfb14a34058bed57ff327c3d65e6b12572d93;hb=b1dacaef3f9773c72b4c6f525d2f1e584e1432fc;hp=49a2648b4eef560088d3eab5e2f8780bb699e829;hpb=8c8fcedb6c24e54ae4d13c8107ef03db35934622;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index 49a2648b4..a57bfb14a 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,14 +1,33 @@
-
MyAccount
-MyAccount
<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('myaccount_menu') %>
-
+<%= include('header', 'My Account') %>
Hello <%= $name %>!
<%= $small_custview %>
+<%= if ( $access_pkgnum ) {
+ $OUT .= qq!Balance: \$$balance
!;
+ }
+ '';
+%>
+
+<%=
+ $OUT .= qq! View All Invoices !;
+%>
+
<%= if ( $balance > 0 ) {
- $OUT .= qq! Make a payment
!;
+ if (scalar(grep $_, @hide_payment_fields)) {
+ $OUT .= qq! Make a payment
!;
+ } else {
+ $OUT .= qq! Make a payment !;
+ foreach my $term ( sort { $b <=> $a } keys %discount_terms_hash ) {
+ my $saved = $discount_terms_hash{$term}->[1];
+ my $amount = $discount_terms_hash{$term}->[2];
+ my $savings = ( $amount + $saved > 0 )
+ ? sprintf('%d', $saved / ( $amount + $saved ) * 100 ) : '0';
+ $OUT .= qq! Save $savings\% by paying for $term months: $amount !;
+ }
+ $OUT .= qq! !;
+ }
} %>
<%=
if ( @open_invoices ) {
@@ -37,31 +56,52 @@ Hello <%= $name %>!
%>
<%=
- if ( defined($support_time) ) {
+ if ( @support_services ) {
$OUT .= ''.
- 'Support Time Remaining | '.
- "$support_time | ";
+ ' | Support Time Remaining | '.
+ '
---|
# | Package | '.
+ 'Time Remaining |
';
+ my $col1 = "ffffff";
+ my $col2 = "dddddd";
+ my $col = $col1;
+
+ foreach my $support ( @support_services ) {
+ my $td = qq!!;
+ my $a = qq!';
+ $OUT .=
+ "$td$a". $support->{'pkgnum'}. "".
+ $td.$a. $support->{'pkg'}. "".
+ $td.$a. $support->{'time'}. "".
+ ' ';
+ $col = $col eq $col1 ? $col2 : $col1;
+ }
+ $OUT .= ' ';
+ } else {
+ $OUT .= '';
}
%>
<%=
if ( @tickets ) {
$OUT .= '
-
-powered by freeside
-
-
-
-
+<%= include('footer') %>
|