X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=9ab2622619403f2301ce6ca237edb3f6ecddbac9;hb=db5e7f34b1e17ae6ce8909062537cc2fb98ca30d;hp=f1a63870a0e30a7f33e09cab89b7d4990814396d;hpb=d1d57ae4fa0f2a30b36a70c656aa2672744f75a3;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index f1a63870a..9ab262261 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,47 +1,95 @@ -
-MyAccount - - |
+<%= include('header', 'My Account') %>
Hello <%= $name %>! -Your contact information <%= $small_custview %> + +<%= include('small_custview') %> + +<%= unless ( $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 ) { $OUT .= '
|
Support Time Remaining | '. + '||
---|---|---|
Package | '. + ' | Time Remaining | !;
+ my $a = qq!';
+ $OUT .=
+ " |