1 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
2 <%= include('header', 'My Account') %>
4 Hello <%= $name %>!<BR><BR>
6 <%= include('small_custview') %>
9 <%= if ( $access_pkgnum ) {
10 $OUT .= qq!Balance: <B>\$$balance</B><BR><BR>!;
16 $OUT .= qq! <B><A HREF="${url}invoices">View All Invoices</A></B> !;
19 <%= if ( $balance > 0 ) {
20 if (scalar(grep $_, @hide_payment_fields)) {
21 $OUT .= qq! <B><A HREF="${url}make_thirdparty_payment&payby_method=CC">Make a payment</A></B><BR><BR>!;
23 $OUT .= qq! <B><A HREF="${url}make_payment">Make a payment</A></B><BR>!;
24 foreach my $term ( sort { $b <=> $a } keys %discount_terms_hash ) {
25 my $saved = $discount_terms_hash{$term}->[1];
26 my $amount = $discount_terms_hash{$term}->[2];
27 my $savings = ( $amount + $saved > 0 )
28 ? sprintf('%d', $saved / ( $amount + $saved ) * 100 ) : '0';
29 $OUT .= qq! <B><A HREF="${url}make_term_payment;discount_term=$term;amount=$amount">Save $savings\% by paying for $term months: $amount</A></B><BR>!;
35 if ( @open_invoices ) {
36 $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
37 '<TR><TH BGCOLOR="#ff6666" COLSPAN=5>Open Invoices</TH></TR>';
38 my $link = qq!<A HREF="<%= $url %>myaccount!;
39 my $col1 = $stripe1_bgcolor || '#ffffff';
40 my $col2 = $stripe2_bgcolor || '#dddddd';
43 foreach my $invoice ( @open_invoices ) {
44 my $td = qq!<TD BGCOLOR="$col">!;
45 my $a=qq!<A HREF="${url}view_invoice;invnum=!. $invoice->{'invnum'}. '">';
47 "<TR>$td${a}Invoice #". $invoice->{'invnum'}. "</A></TD>$td</TD>".
48 "$td$a". $invoice->{'date'}. "</A></TD>$td</TD>".
49 qq!<TD BGCOLOR="$col" ALIGN="right">$a\$!. $invoice->{'owed'}.
52 $col = $col eq $col1 ? $col2 : $col1;
54 $OUT .= '</TABLE><BR>';
56 $OUT .= 'You have no outstanding invoices.<BR><BR>';
61 if ( @support_services ) {
62 $OUT .= '<TABLE BORDER=0 CELLSPACING=0 CELLPADDING=2 BGCOLOR="#eeeeee">'.
63 '<TR><TH BGCOLOR="#ff6666" COLSPAN="3">Support Time Remaining</TH>'.
64 '</TR><TR><TH>Package</TH><TH></TH>'.
65 '<TH>Time Remaining</TH></TR>';
66 my $col1 = $stripe1_bgcolor || '#ffffff';
67 my $col2 = $stripe2_bgcolor || '#dddddd';
70 foreach my $support ( @support_services ) {
71 my $td = qq!<TD BGCOLOR="$col">!;
72 my $a = qq!<A HREF="${url}view_support_details;svcnum=!.
73 $support->{'svcnum'}. '">';
76 $td.$a. $support->{'pkg'}. "</A></TD>".
78 $td.$a. $support->{'time'}. "</A></TD>".
80 $col = $col eq $col1 ? $col2 : $col1;
82 $OUT .= '</TABLE><BR>';
89 $OUT .= include('ticket_summary');
95 <%= include('footer') %>