- self-service updates: cleanup and beginnings of "make a payment"
[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><TD VALIGN="top" HEIGHT=384 BGCOLOR="#dddddd">
5 <A HREF="<%= $url %>myaccount">MyAccount</A><BR>
6 <!-- <A HREF="<%= $url %>other">SomethingElse</A><BR> -->
7 </TD><TD VALIGN="top">
8
9 Hello <%= $name %>!<BR><BR>
10 Your contact information<BR><%= $small_custview %>
11 <BR>
12 <%= if ( $balance ) {
13   $OUT .= qq! <B><A HREF="${url}make_payment">Make a $balance payment</A></B>!;
14 } %>
15 <BR><BR>
16 <!--<TABLE BORDER=1 CELLSPACING=0 CELLPADDING=2 BORDERCOLOR="#999999">
17 <TR><TH>Invoice</TH><TH>Date</TH><TH>Owed</TH></TR>-->
18 <%=
19   if ( @open_invoices ) {
20     $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
21             '<TR><TH BGCOLOR="#ff3333" COLSPAN=5>Open Invoices</TH><TD>';
22     my $link = qq!<A HREF="<%= $url %>myaccount!;
23     my $col1 = "ffffff";
24     my $col2 = "dddddd";
25     my $col = $col1;
26
27     foreach my $invoice ( @open_invoices ) {
28       my $td = qq!<TD BGCOLOR="#$col">!;
29       my $a=qq!<A HREF="${url}view_invoice;invnum=!. $invoice->{'invnum'}. '">';
30       $OUT .=
31         "<TR>$td${a}Invoice #". $invoice->{'invnum'}. "</A></TD>$td</TD>".
32         "$td$a". $invoice->{'date'}. "</A></TD>$td</TD>".
33         qq!<TD BGCOLOR="#$col" ALIGN="right">$a\$!. $invoice->{'owed'}.
34           '</A></TD>'.
35         '</TR>';
36       $col = $col eq $col1 ? $col2 : $col1;
37     }
38     $OUT .= '</TABLE>';
39   } else {
40     $OUT .= 'You have no outstanding invoices.<BR><BR>';
41   }
42 %>
43
44 </TD></TR></TABLE>
45 <HR>
46 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>
47 </BODY></HTML>
48
49
50