we're at now now
[freeside.git] / fs_selfservice / FS-SelfService / cgi / myaccount_menu.html
1 <%= $url = "$selfurl?session=$session_id;action="; ''; %>
2 <TABLE BORDER=0><TR>
3 <TD VALIGN="top" HEIGHT=384 BGCOLOR="#dddddd">
4
5 <TABLE CELLSPACING=0 BORDER=0>
6
7 <%= 
8
9 my @menu = (
10 { title=>' ' },
11 { title=>'Overview', url=>'myaccount', size=>'+1', },
12 { title=>' ' },
13
14 { title=>'Purchase', size=>'+1', },
15   { title=>'Purchase additional package',
16     url=>'customer_order_pkg', 'indent'=>2 },
17 );
18
19 if ( 1 ) { #XXXFIXME "enable selfservice prepay features" flag or something, eventually per-pkg or something really fancy
20
21   push @menu, (
22     { title=>'Recharge my account with a credit card',
23       url=>'make_payment', indent=>2 },
24     { title=>'Recharge my account with a prepaid card',
25       url=>'recharge_prepay', indent=>2 },
26   );
27
28 }
29
30 push @menu, (
31
32 { title=>' ' },
33
34 { title=>'View my usage', url=>'view_usage', size=>'+1', },
35 { title=>'Setup my services', url=>'provision', size=>'+1', },
36
37 { title=>' ' },
38
39 { title=>'Change my information', size=>'+1', },
40 #  { title=>'Change payment information*', url=>'change_bill',     indent=>2 },
41 #  { title=>'Change service address*',     url=>'change_ship',     indent=>2 },
42   { title=>'Change password(s)',          url=>'change_password', indent=>2 },
43
44 { title=>' ' },
45
46 { title=>'Logout',   url=>'logout', size=>'+1', },
47
48 );
49
50 foreach my $item ( @menu ) {
51
52   $OUT .= '<TR><TD'; 
53   if ( exists $item->{'url'} && $action eq $item->{'url'} ) {
54     $OUT .= ' BGCOLOR="#eeeeee" '.
55             ' STYLE="border-top: 1px solid black;'.
56                    ' border-left: 1px solid black;'.
57                    ' border-bottom: 1px solid black"';
58   } else {
59     $OUT .= ' STYLE="border-right: 1px solid black"';
60   }
61   $OUT.='>';
62
63   $OUT .= '<FONT SIZE="'. $item->{'size'}. '">'
64     if exists $item->{'size'};
65
66   $OUT .= '&nbsp;' x $item->{'indent'}
67     if exists $item->{'indent'};
68
69   $OUT .= '<A HREF="'. $url. $item->{'url'}. '">'
70     if exists $item->{'url'} && $action ne $item->{'url'};
71
72   $item->{'title'} =~ s/ /&nbsp;/g;
73   $OUT .= $item->{'title'};
74
75   $OUT .= '</FONT>'
76     if exists $item->{'size'};
77
78   $OUT .= '</A>'
79     if exists $item->{'url'} && $action ne $item->{'url'};
80
81   $OUT .= '</TD></TR>';
82
83 }
84
85 %>
86
87 <TR><TD STYLE="border-right: 1px solid black" HEIGHT="100%"><BR><BR><BR><BR></TD></TR>
88
89 </TABLE>
90
91 </TD>