X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=d6527fe76e3bd1cc8e9349d40d82ad0c2d701816;hb=99100d7e0d0b22a1844dde88acd529e79d096463;hp=f1a63870a0e30a7f33e09cab89b7d4990814396d;hpb=d1d57ae4fa0f2a30b36a70c656aa2672744f75a3;p=freeside.git diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html index f1a63870a..d6527fe76 100644 --- a/fs_selfservice/FS-SelfService/cgi/myaccount.html +++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html @@ -1,21 +1,26 @@ -MyAccount -MyAccount

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

-Your contact information
<%= $small_custview %> +<%= $small_custview %>
+<%= if ( $pkgnum ) { + $OUT .= qq!Balance: \$$balance

!; + } + ''; +%> + <%= 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

!; + } } %> <%= if ( @open_invoices ) { $OUT .= ''. - ''; my $link = qq!<%= $small_custview %> ''; $col = $col eq $col1 ? $col2 : $col1; } - $OUT .= '
Open Invoices'; + '
Open Invoices
'; + $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->{'pkgnum'}. "". + $td.$a. $support->{'pkg'}. "". + $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 .= ''. + ''. + ''. + ''; + my $col1 = "ffffff"; + my $col2 = "dddddd"; + my $col = $col1; + foreach my $ticket ( @tickets ) { + my $td = qq!$td". $ticket->{'id'}. "". + $td. $ticket->{'subject'}. "". + $td. ($ticket->{'content'} || $ticket->{'priority'}). "". + $td. $ticket->{'queue'}. "". + $td. $ticket->{'status'}. "". + ''; + $col = $col eq $col1 ? $col2 : $col1; + } + $OUT .= '
Open Tickets
#SubjectPriorityQueueStatus
!; + $OUT .= + "
'; + } else { + $OUT .= ''; + } +%> +<%= include('footer') %>