vonage click2call integration should not be sitewide, especially now that we have...
[freeside.git] / httemplate / pref / pref.html
1 <% include('/elements/header.html', 'Preferences for '. getotaker ) %>
2
3 <FORM METHOD="POST" NAME="pref_form" ACTION="pref-process.html">
4
5 <% include('/elements/error.html') %>
6
7
8 Change password (leave blank for no change)
9 <% ntable("#cccccc",2) %>
10
11   <TR>
12     <TH ALIGN="right">Current password: </TH>
13     <TD><INPUT TYPE="password" NAME="_password"></TD>
14   </TR>
15
16   <TR>
17     <TH ALIGN="right">New password: </TH>
18     <TD><INPUT TYPE="password" NAME="new_password"></TD>
19   </TR>
20
21   <TR>
22    <TH ALIGN="right">Re-enter new password: </TH>
23    <TD><INPUT TYPE="password" NAME="new_password2"></TD>
24   </TR>
25
26 </TABLE>
27 <BR>
28
29
30 Interface
31 <% ntable("#cccccc",2) %>
32
33   <TR>
34     <TH>Menu location: </TH>
35     <TD>
36       <INPUT TYPE="radio" NAME="menu_position" VALUE="left" onClick="document.images['menu_example'].src='../images/menu-left-example.png';" <% $menu_position eq 'left' ? ' CHECKED' : ''%>> Left<BR>
37       <INPUT TYPE="radio" NAME="menu_position" VALUE="top"onClick="document.images['menu_example'].src='../images/menu-top-example.png';" <% $menu_position eq 'top' ? ' CHECKED' : ''%>> Top <BR>
38     </TD>
39     <TD><IMG NAME="menu_example" SRC="../images/menu-<% $menu_position %>-example.png"></TD>
40   </TR>
41
42 </TABLE>
43 <BR>
44
45
46 Vonage integration (see <a href="https://secure.click2callu.com/">Click2Call</a>)
47 <% ntable("#cccccc",2) %>
48
49   <TR>
50     <TH ALIGN="right">Vonage phone number</TH>
51     <TD><INPUT TYPE="text" NAME="vonage-fromnumber"></TD>
52   </TR>
53
54   <TR>
55     <TH ALIGN="right">Vonage username</TH>
56     <TD><INPUT TYPE="text" NAME="vonage-username"></TD>
57   </TR>
58
59   <TR>
60     <TH ALIGN="right">Vonage password</TH>
61     <TD><INPUT TYPE="password" NAME="vonage-password"></TD>
62   </TR>
63
64 </TABLE>
65 <BR>
66
67
68 % foreach my $prop (qw( height width availHeight availWidth colorDepth )) {
69   <INPUT TYPE="hidden" NAME="<% $prop %>" VALUE="">
70   <SCRIPT TYPE="text/javascript">
71   document.pref_form.<% $prop %>.value = screen.<% $prop %>;
72   </script>
73 % }
74
75 <INPUT TYPE="submit" VALUE="Update preferences">
76
77 <% include('/elements/footer.html') %>
78 <%init>
79
80 # XSS via your own preferences?  seems unlikely, but nice try anyway...
81 ( $FS::CurrentUser::CurrentUser->option('menu_position') || 'left' )
82   =~ /^(\w+)$/ or die "illegal menu_position";
83 my $menu_position = $1;
84
85 </%init>