ticket 1568 config options for new echeck fields and addition to selfservice interface
[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 check',
25       url=>'make_ach_payment', indent=>2 },
26     { title=>'Recharge my account with a prepaid card',
27       url=>'recharge_prepay', indent=>2 },
28   );
29
30 }
31
32 push @menu, (
33
34 { title=>' ' },
35
36 { title=>'View my usage', url=>'view_usage', size=>'+1', },
37 { title=>'Setup my services', url=>'provision', size=>'+1', },
38
39 { title=>' ' },
40
41 { title=>'Change my information', size=>'+1', },
42 #  { title=>'Change payment information*', url=>'change_bill',     indent=>2 },
43 #  { title=>'Change service address*',     url=>'change_ship',     indent=>2 },
44   { title=>'Change password(s)',          url=>'change_password', indent=>2 },
45
46 { title=>' ' },
47
48 { title=>'Logout',   url=>'logout', size=>'+1', },
49
50 );
51
52 foreach my $item ( @menu ) {
53
54   $OUT .= '<TR><TD'; 
55   if ( exists $item->{'url'} && $action eq $item->{'url'} ) {
56     $OUT .= ' BGCOLOR="#eeeeee" '.
57             ' STYLE="border-top: 1px solid black;'.
58                    ' border-left: 1px solid black;'.
59                    ' border-bottom: 1px solid black"';
60   } else {
61     $OUT .= ' STYLE="border-right: 1px solid black"';
62   }
63   $OUT.='>';
64
65   $OUT .= '<FONT SIZE="'. $item->{'size'}. '">'
66     if exists $item->{'size'};
67
68   $OUT .= '&nbsp;' x $item->{'indent'}
69     if exists $item->{'indent'};
70
71   $OUT .= '<A HREF="'. $url. $item->{'url'}. '">'
72     if exists $item->{'url'} && $action ne $item->{'url'};
73
74   $item->{'title'} =~ s/ /&nbsp;/g;
75   $OUT .= $item->{'title'};
76
77   $OUT .= '</FONT>'
78     if exists $item->{'size'};
79
80   $OUT .= '</A>'
81     if exists $item->{'url'} && $action ne $item->{'url'};
82
83   $OUT .= '</TD></TR>';
84
85 }
86
87 %>
88
89 <TR><TD STYLE="border-right: 1px solid black" HEIGHT="100%"><BR><BR><BR><BR></TD></TR>
90
91 </TABLE>
92
93 </TD>