self-service: make payment UI done
[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 > 0 ) {
13   $OUT .= qq! <B><A HREF="${url}make_payment">Make a payment</A></B><BR><BR>!;
14 } %>
15 <%=
16   if ( @open_invoices ) {
17     $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
18             '<TR><TH BGCOLOR="#ff3333" COLSPAN=5>Open Invoices</TH><TD>';
19     my $link = qq!<A HREF="<%= $url %>myaccount!;
20     my $col1 = "ffffff";
21     my $col2 = "dddddd";
22     my $col = $col1;
23
24     foreach my $invoice ( @open_invoices ) {
25       my $td = qq!<TD BGCOLOR="#$col">!;
26       my $a=qq!<A HREF="${url}view_invoice;invnum=!. $invoice->{'invnum'}. '">';
27       $OUT .=
28         "<TR>$td${a}Invoice #". $invoice->{'invnum'}. "</A></TD>$td</TD>".
29         "$td$a". $invoice->{'date'}. "</A></TD>$td</TD>".
30         qq!<TD BGCOLOR="#$col" ALIGN="right">$a\$!. $invoice->{'owed'}.
31           '</A></TD>'.
32         '</TR>';
33       $col = $col eq $col1 ? $col2 : $col1;
34     }
35     $OUT .= '</TABLE>';
36   } else {
37     $OUT .= 'You have no outstanding invoices.<BR><BR>';
38   }
39 %>
40
41 </TD></TR></TABLE>
42 <HR>
43 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>
44 </BODY></HTML>
45
46
47