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
22 { title=>'Recharge my account with a credit card',
23 url=>'make_payment', indent=>2 },
24 { title=>'Recharge my account with a check',
25 url=>'make_ach_payment', indent=>2 },
26 { title=>'Recharge my account with a prepaid card',
27 url=>'recharge_prepay', indent=>2 },
36 { title=>'View my usage', url=>'view_usage', size=>'+1', },
37 { title=>'Setup my services', url=>'provision', size=>'+1', },
41 { title=>'Change my information', size=>'+1', },
42 { title=>'Change billing address', url=>'change_bill', indent=>2 },
43 { title=>'Change service address', url=>'change_ship', indent=>2 },
44 { title=>'Change payment information', url=>'change_pay', indent=>2 },
45 { title=>'Change password(s)', url=>'change_password', indent=>2 },
49 { title=>'Logout', url=>'logout', size=>'+1', },
53 foreach my $item ( @menu ) {
56 if ( exists $item->{'url'} && $action eq $item->{'url'} ) {
57 $OUT .= ' BGCOLOR="#eeeeee" '.
58 ' STYLE="border-top: 1px solid black;'.
59 ' border-left: 1px solid black;'.
60 ' border-bottom: 1px solid black"';
62 $OUT .= ' STYLE="border-right: 1px solid black"';
66 $OUT .= '<FONT SIZE="'. $item->{'size'}. '">'
67 if exists $item->{'size'};
69 $OUT .= ' ' x $item->{'indent'}
70 if exists $item->{'indent'};
72 $OUT .= '<A HREF="'. $url. $item->{'url'}. '">'
73 if exists $item->{'url'} && $action ne $item->{'url'};
75 $item->{'title'} =~ s/ / /g;
76 $OUT .= $item->{'title'};
79 if exists $item->{'size'};
82 if exists $item->{'url'} && $action ne $item->{'url'};
90 <TR><TD STYLE="border-right: 1px solid black" HEIGHT="100%"><BR><BR><BR><BR></TD></TR>