1 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
3 <TD VALIGN="top" HEIGHT="100%" BGCOLOR="#dddddd">
5 <TABLE CELLSPACING=0 BORDER=0 HEIGHT="100%">
11 { title=>'Overview', url=>'myaccount', size=>'+1', },
14 { title=>'Purchase', size=>'+1', },
15 { title=>'Purchase additional package',
16 url=>'customer_order_pkg', 'indent'=>2 },
19 if ( 1 ) { #XXXFIXME "enable selfservice prepay features" flag or something, eventually per-pkg or something really fancy
21 #XXXFIXME still a bit sloppy for multi-gateway of differing namespace
23 while($i < scalar(@cust_paybys)) { last if $cust_paybys[$i] =~ /^CARD/; $i++ }
24 if ( $cust_paybys[$i] =~ /^CARD/ ) {
25 push @menu, { title => 'Recharge my account with a credit card',
26 url => $hide_payment_fields[$i]
27 ? 'make_thirdparty_payment&payby_method=CC'
34 while($i < scalar(@cust_paybys)) { last if $cust_paybys[$i] =~ /^CHEK/; $i++ }
35 if ( $cust_paybys[$i] =~ /^CHEK/ ) {
36 push @menu, { title => 'Recharge my account with a check',
37 url => $hide_payment_field[$i]
38 ? 'make_thirdparty_payment&payby_method=ECHECK'
44 push @menu, { title => 'Recharge my account with a prepaid card',
45 url => 'recharge_prepay',
48 if grep(/^PREP/, @cust_paybys);
56 { title=>'View my usage', url=>'view_usage', size=>'+1', },
57 { title=>'Setup my services', url=>'provision', size=>'+1', },
61 { title=>'Change my information', size=>'+1', },
62 { title=>'Change billing address', url=>'change_bill', indent=>2 },
63 { title=>'Change service address', url=>'change_ship', indent=>2 },
64 { title=>'Change payment information', url=>'change_pay', indent=>2 },
65 { title=>'Change password(s)', url=>'change_password', indent=>2 },
69 { title=>'Logout', url=>'logout', size=>'+1', },
73 foreach my $item ( @menu ) {
76 if ( exists $item->{'url'} && $action eq $item->{'url'} ) {
77 $OUT .= ' BGCOLOR="#eeeeee" '.
78 ' STYLE="border-top: 1px solid black;'.
79 ' border-left: 1px solid black;'.
80 ' border-bottom: 1px solid black"';
82 $OUT .= ' STYLE="border-right: 1px solid black"';
86 $OUT .= '<FONT SIZE="'. $item->{'size'}. '">'
87 if exists $item->{'size'};
89 $OUT .= ' ' x $item->{'indent'}
90 if exists $item->{'indent'};
92 $OUT .= '<A HREF="'. $url. $item->{'url'}. '">'
93 if exists $item->{'url'} && $action ne $item->{'url'};
95 $item->{'title'} =~ s/ / /g;
96 $OUT .= $item->{'title'};
99 if exists $item->{'size'};
102 if exists $item->{'url'} && $action ne $item->{'url'};
104 $OUT .= '</TD></TR>';
110 <TR><TD STYLE="border-right: 1px solid black" HEIGHT="100%"><BR><BR><BR><BR></TD></TR>