X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=fs_selfservice%2FFS-SelfService%2Fcgi%2Fmyaccount.html;h=d6527fe76e3bd1cc8e9349d40d82ad0c2d701816;hb=99100d7e0d0b22a1844dde88acd529e79d096463;hp=546ca1112c22ac64142dbe8e68a6ddd1a31375b2;hpb=04cc48bd2a049909af54b9e58afebffe51cdd1b2;p=freeside.git
diff --git a/fs_selfservice/FS-SelfService/cgi/myaccount.html b/fs_selfservice/FS-SelfService/cgi/myaccount.html
index 546ca1112..d6527fe76 100644
--- a/fs_selfservice/FS-SelfService/cgi/myaccount.html
+++ b/fs_selfservice/FS-SelfService/cgi/myaccount.html
@@ -1,14 +1,21 @@
-
MyAccount
-MyAccount
<%= $url = "$selfurl?session=$session_id;action="; ''; %>
-<%= include('myaccount_menu') %>
-
+<%= include('header') %>
Hello <%= $name %>!
<%= $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 ) {
@@ -30,16 +37,64 @@ Hello <%= $name %>!
'';
$col = $col eq $col1 ? $col2 : $col1;
}
- $OUT .= '';
+ $OUT .= ' ';
} else {
$OUT .= 'You have no outstanding invoices.
';
}
%>
- |
-
-powered by freeside
-
+<%=
+ if ( @support_services ) {
+ $OUT .= '
';
+ } else {
+ $OUT .= '';
+ }
+%>
+<%=
+ if ( @tickets ) {
+ $OUT .= ''.
+ 'Open Tickets |
'.
+ '# | Subject | Priority | Queue | '.
+ 'Status |
';
+ my $col1 = "ffffff";
+ my $col2 = "dddddd";
+ my $col = $col1;
+ foreach my $ticket ( @tickets ) {
+ my $td = qq!!;
+ $OUT .=
+ " | $td". $ticket->{'id'}. "".
+ $td. $ticket->{'subject'}. "".
+ $td. ($ticket->{'content'} || $ticket->{'priority'}). "".
+ $td. $ticket->{'queue'}. "".
+ $td. $ticket->{'status'}. "".
+ '
';
+ $col = $col eq $col1 ? $col2 : $col1;
+ }
+ $OUT .= '
';
+ } else {
+ $OUT .= '';
+ }
+%>
+<%= include('footer') %>