X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=a57bfb14a34058bed57ff327c3d65e6b12572d93;hb=7dc0206e7ff40bfd3e95018a7d724a63ce0af8ab;hp=cb5ed352efc801c8b0532f2d3c6f548fadc80cce;hpb=8e219ac3d60ba254c9bbc40adfeb2ebe40fd2b5f;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index cb5ed352e..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 ) { @@ -66,21 +85,23 @@ Hello <%= $name %>!

<%= if ( @tickets ) { $OUT .= ''. - ''. + ''. ''. - ''; + ''; my $col1 = "ffffff"; my $col2 = "dddddd"; my $col = $col1; foreach my $ticket ( @tickets ) { my $td = qq!$td". $ticket->{'id'}. "". + "$td $link". $ticket->{'id'}. "". $td. $ticket->{'subject'}. "". $td. ($ticket->{'content'} || $ticket->{'priority'}). "". $td. $ticket->{'queue'}. "". $td. $ticket->{'status'}. "". + $td. $ticket->{'created'}. "". ''; $col = $col eq $col1 ? $col2 : $col1; } @@ -90,5 +111,4 @@ Hello <%= $name %>!

} %> -
Open Tickets
Open Tickets
#SubjectPriorityQueueStatus
StatusCreated
!; + my $link = qq!!; $OUT .= - "
<%= include('footer') %>