This commit was generated by cvs2svn to compensate for changes in r3874,
[freeside.git] / fs_selfservice / FS-SelfService / cgi / myaccount.html
1 <HTML><HEAD><TITLE>MyAccount</TITLE></HEAD>
2 <BODY BGCOLOR="#eeeeee"><FONT SIZE=5>MyAccount</FONT><BR><BR>
3 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
4 <TABLE BORDER=0 CELLPADDING=4><TR>
5 <%= include('myaccount_menu') %>
6 <TD VALIGN="top">
7
8 Hello <%= $name %>!<BR><BR>
9 <%= $small_custview %>
10 <BR>
11 <%= if ( $balance > 0 ) {
12   $OUT .= qq! <B><A HREF="${url}make_payment">Make a payment</A></B><BR><BR>!;
13 } %>
14 <%=
15   if ( @open_invoices ) {
16     $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
17             '<TR><TH BGCOLOR="#ff6666" COLSPAN=5>Open Invoices</TH></TR>';
18     my $link = qq!<A HREF="<%= $url %>myaccount!;
19     my $col1 = "ffffff";
20     my $col2 = "dddddd";
21     my $col = $col1;
22
23     foreach my $invoice ( @open_invoices ) {
24       my $td = qq!<TD BGCOLOR="#$col">!;
25       my $a=qq!<A HREF="${url}view_invoice;invnum=!. $invoice->{'invnum'}. '">';
26       $OUT .=
27         "<TR>$td${a}Invoice #". $invoice->{'invnum'}. "</A></TD>$td</TD>".
28         "$td$a". $invoice->{'date'}. "</A></TD>$td</TD>".
29         qq!<TD BGCOLOR="#$col" ALIGN="right">$a\$!. $invoice->{'owed'}.
30           '</A></TD>'.
31         '</TR>';
32       $col = $col eq $col1 ? $col2 : $col1;
33     }
34     $OUT .= '</TABLE>';
35   } else {
36     $OUT .= 'You have no outstanding invoices.<BR><BR>';
37   }
38 %>
39
40 </TD></TR></TABLE>
41 <HR>
42 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>
43 </BODY></HTML>
44
45
46