X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=5370f7c22eddbc462d019d13269152e7262cd8a9;hb=cace6fef1d121d43d76166851aaa30c6c15857e5;hp=ef0740fd650b962f03821f735ab593c9787475c4;hpb=1293d137b061f097190eda53e4e78214e18832e6;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index ef0740fd6..5370f7c22 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,80 +1,95 @@ -MyAccount -MyAccount

<%= $url = "$selfurl?session=$session_id;action="; ''; %> -<%= include('myaccount_menu') %> - +<%= include('header', 'My Account') %> Hello <%= $name %>!

-<%= $small_custview %> + +<%= include('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 ) { $OUT .= ''. ''; my $link = qq!!; + my $td = qq!$td${a}Invoice #". $invoice->{'invnum'}. "$td". "$td$a". $invoice->{'date'}. "$td". - qq!'. ''; $col = $col eq $col1 ? $col2 : $col1; } - $OUT .= '
Open Invoices
!; my $a=qq!'; $OUT .= "
$a\$!. $invoice->{'owed'}. + qq!$a\$!. $invoice->{'owed'}. '
'; + $OUT .= '
'; } else { $OUT .= 'You have no outstanding invoices.

'; } %> <%= - if ( defined($support_time) ) { - $OUT .= ''. - ''. - "

"; - } -%> - -<%= - if ( @tickets ) { + if ( @support_services ) { $OUT .= '
Support Time Remaining
$support_time
'. - ''. - ''. - ''; - my $col1 = "ffffff"; - my $col2 = "dddddd"; + ''. + ''. + ''; + my $col1 = $stripe1_bgcolor || '#ffffff'; + my $col2 = $stripe2_bgcolor || '#dddddd'; my $col = $col1; - foreach my $ticket ( @tickets ) { - my $td = qq!$td". $ticket->{'id'}. "". - $td. $ticket->{'subject'}. "". - $td. $ticket->{'priority'}. "". - $td. $ticket->{'name'}. "". - $td. $ticket->{'status'}. "". + "". + $td.$a. $support->{'pkg'}. "". + $td.' '. + $td.$a. $support->{'time'}. "". ''; $col = $col eq $col1 ? $col2 : $col1; } - $OUT .= '
Open Tickets
#SubjectPriorityQueueStatus
Support Time Remaining
PackageTime Remaining
!; + foreach my $support ( @support_services ) { + my $td = qq!!; + my $a = qq!'; $OUT .= - "
'; + $OUT .= '
'; } else { $OUT .= ''; } %> - -
-powered by freeside - - - +<%= if (@tickets) { + $OUT .= include('ticket_summary'); + } else { + $OUT .= ''; + } +%> +<%= include('footer') %>