X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=a57bfb14a34058bed57ff327c3d65e6b12572d93;hb=0fb307c305e4bc2c9c27dc25a3308beae3a4d33c;hp=d8bfe0cb12bb14a0b76e044bd1a2aef1d83ca29e;hpb=9033414f18177eb733d1a227d2be1c15d244f766;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index d8bfe0cb1..a57bfb14a 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,24 +1,38 @@ -
-MyAccount - - |
+<%= include('header', 'My Account') %>
Hello <%= $name %>! -Your contact information <%= $small_custview %> +<%= $small_custview %> -<%= if ( $balance ) { - $OUT .= qq! Make a $balance payment!; +<%= if ( $access_pkgnum ) { + $OUT .= qq!Balance: \$$balance !; + } + ''; +%> + +<%= + $OUT .= qq! View All Invoices !; +%> + +<%= if ( $balance > 0 ) { + 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 .=
+ " |
Open Tickets | |||||
---|---|---|---|---|---|
# | Subject | Priority | Queue | '. + 'Status | Created | !;
+ my $link = qq!!;
+ $OUT .=
+ " |