order package from self-service
[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=>'Setup my services', url=>'provision', size=>'+1', },
35
36 { title=>' ' },
37
38 { title=>'Change my information', size=>'+1', },
39 #  { title=>'Change payment information*', url=>'change_bill',     indent=>2 },
40 #  { title=>'Change service address*',     url=>'change_ship',     indent=>2 },
41   { title=>'Change password(s)',          url=>'change_password', indent=>2 },
42
43 { title=>' ' },
44
45 { title=>'Logout',   url=>'logout', size=>'+1', },
46
47 );
48
49 foreach my $item ( @menu ) {
50
51   $OUT .= '<TR><TD'; 
52   if ( exists $item->{'url'} && $action eq $item->{'url'} ) {
53     $OUT .= ' BGCOLOR="#eeeeee" '.
54             ' STYLE="border-top: 1px solid black;'.
55                    ' border-left: 1px solid black;'.
56                    ' border-bottom: 1px solid black"';
57   } else {
58     $OUT .= ' STYLE="border-right: 1px solid black"';
59   }
60   $OUT.='>';
61
62   $OUT .= '<FONT SIZE="'. $item->{'size'}. '">'
63     if exists $item->{'size'};
64
65   $OUT .= '&nbsp;' x $item->{'indent'}
66     if exists $item->{'indent'};
67
68   $OUT .= '<A HREF="'. $url. $item->{'url'}. '">'
69     if exists $item->{'url'} && $action ne $item->{'url'};
70
71   $item->{'title'} =~ s/ /&nbsp;/g;
72   $OUT .= $item->{'title'};
73
74   $OUT .= '</FONT>'
75     if exists $item->{'size'};
76
77   $OUT .= '</A>'
78     if exists $item->{'url'} && $action ne $item->{'url'};
79
80   $OUT .= '</TD></TR>';
81
82 }
83
84 %>
85
86 <!-- <TR><TD STYLE="border-right: 1px solid black"><BR><BR>*&nbsp;coming&nbsp;soon</TD></TR> -->
87
88 <TR><TD STYLE="border-right: 1px solid black" HEIGHT="100%"><BR><BR><BR><BR></TD></TR>
89
90 </TABLE>
91
92 </TD>