diff options
author | ivan <ivan> | 2007-01-26 08:04:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-01-26 08:04:37 +0000 |
commit | f01e2ce0aa6c1925e6266d78797025ec68bfac07 (patch) | |
tree | 4b2efa16a130989e97eee59bfc72621d4d7a53fe /httemplate/pref/pref.html | |
parent | 4d68624491e3500a0bdb737a421c3711e5defebf (diff) |
top bar option!
Diffstat (limited to 'httemplate/pref/pref.html')
-rw-r--r-- | httemplate/pref/pref.html | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/httemplate/pref/pref.html b/httemplate/pref/pref.html index 2595239..2dca3b8 100644 --- a/httemplate/pref/pref.html +++ b/httemplate/pref/pref.html @@ -4,6 +4,8 @@ <% include('/elements/error.html') %> + +Change password (leave blank for no change) <% ntable("#cccccc",2) %> <TR> @@ -22,7 +24,31 @@ </TR> </TABLE> +<BR> + +Interface +<% ntable("#cccccc",2) %> + +<TR> + <TD>Menu location: </TD> + <TD> + <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> + <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> + </TD> + <TD><IMG NAME="menu_example" SRC="../images/menu-<% $menu_position %>-example.png"></TD> +</TR> + +</TABLE> +<BR> -<INPUT TYPE="submit" VALUE="Change password"> +<INPUT TYPE="submit" VALUE="Update preferences"> <% include('/elements/footer.html') %> +<%init> + +# XSS via your own preferences? seems unlikely, but nice try anyway... +( $FS::CurrentUser::CurrentUser->option('menu_position') || 'left' ) + =~ /^(\w+)$/ or die "illegal menu_position"; +my $menu_position = $1; + +</%init> |