X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=d27f688e3e5985d42ba8e76f6a8c705943bda6e8;hp=546ca1112c22ac64142dbe8e68a6ddd1a31375b2;hb=44f5aa6d692b460cc34bc44810fab8e4c3e37b68;hpb=673b9a458d9138523026963df6fa3b4683e09bae diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index 546ca1112..d27f688e3 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 ) { @@ -30,16 +49,45 @@ Hello <%= $name %>!

''; $col = $col eq $col1 ? $col2 : $col1; } - $OUT .= ''; + $OUT .= '
'; } else { $OUT .= 'You have no outstanding invoices.

'; } %> - -
-powered by freeside - +<%= + if ( @support_services ) { + $OUT .= ''. + ''. + ''. + ''; + my $col1 = "ffffff"; + my $col2 = "dddddd"; + my $col = $col1; + foreach my $support ( @support_services ) { + my $td = qq!". + $td.$a. $support->{'pkg'}. "". + $td.' '. + $td.$a. $support->{'time'}. "". + ''; + $col = $col eq $col1 ? $col2 : $col1; + } + $OUT .= '
Support Time Remaining
PackageTime Remaining
!; + my $a = qq!'; + $OUT .= + "

'; + } else { + $OUT .= ''; + } +%> +<%= if (@tickets) { + $OUT .= include('ticket_summary'); + } else { + $OUT .= ''; + } +%> +<%= include('footer') %>