X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=9ab2622619403f2301ce6ca237edb3f6ecddbac9;hb=d04c981b5f72ffadabde71af68022059af0d52a5;hp=f8a916eeaab50108715a64213ad0d20922817687;hpb=6ff02eb18af2dd61ce2dca064414ca183fa02e6e;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index f8a916eea..9ab262261 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,47 +1,95 @@ -MyAccount -MyAccount

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

-Your customer number is <%= $custnum %>

-Your contact information
<%= $small_custview %> -Your outstanding balance is $<%= $balance %>

- + +<%= include('small_custview') %> + +
+<%= unless ( $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 .= ''. - ''; + 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 $link = qq!Open Invoices
!; my $a=qq!'; $OUT .= "
$a\$!. $invoice->{'owed'}. + qq!$a\$!. $invoice->{'owed'}. '
'; + $OUT .= '

'; } else { $OUT .= 'You have no outstanding invoices.

'; } %> - -
-small text - +<%= + if ( @support_services ) { + $OUT .= ''. + ''. + ''. + ''; + my $col1 = $stripe1_bgcolor || '#ffffff'; + my $col2 = $stripe2_bgcolor || '#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') %>