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 <%= include('myaccount_menu') %>
7 Hello <%= $name %>!<BR><BR>
10 <%= if ( $balance > 0 ) {
11 $OUT .= qq! <B><A HREF="${url}make_payment">Make a payment</A></B><BR><BR>!;
14 if ( @open_invoices ) {
15 $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
16 '<TR><TH BGCOLOR="#ff6666" COLSPAN=5>Open Invoices</TH></TR>';
17 my $link = qq!<A HREF="<%= $url %>myaccount!;
22 foreach my $invoice ( @open_invoices ) {
23 my $td = qq!<TD BGCOLOR="#$col">!;
24 my $a=qq!<A HREF="${url}view_invoice;invnum=!. $invoice->{'invnum'}. '">';
26 "<TR>$td${a}Invoice #". $invoice->{'invnum'}. "</A></TD>$td</TD>".
27 "$td$a". $invoice->{'date'}. "</A></TD>$td</TD>".
28 qq!<TD BGCOLOR="#$col" ALIGN="right">$a\$!. $invoice->{'owed'}.
31 $col = $col eq $col1 ? $col2 : $col1;
33 $OUT .= '</TABLE><BR>';
35 $OUT .= 'You have no outstanding invoices.<BR><BR>';
40 if ( defined($support_time) ) {
41 $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
42 '<TR><TH BGCOLOR="#ff6666">Support Time Remaining</TH></TR>'.
43 "<TR><TD>$support_time</TD></TR></TABLE><BR>";
49 $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
50 '<TR><TH BGCOLOR="#ff6666" COLSPAN=5>Open Tickets</TH></TR>'.
51 '<TR><TH>#</TH><TH>Subject</TH><TH>Priority</TH><TH>Queue</TH>'.
52 '<TH>Status</TH></TR>';
57 foreach my $ticket ( @tickets ) {
58 my $td = qq!<TD BGCOLOR="#$col">!;
60 "<TR>$td". $ticket->{'id'}. "</TD>".
61 $td. $ticket->{'subject'}. "</TD>".
62 $td. ($ticket->{'content'} || $ticket->{'priority'}). "</TD>".
63 $td. $ticket->{'name'}. "</TD>".
64 $td. $ticket->{'status'}. "</TD>".
66 $col = $col eq $col1 ? $col2 : $col1;
76 <FONT SIZE="-2">powered by <a href="http://www.sisd.com/freeside">freeside</a></FONT>