version 1.99, 2007/04/17 18:28:44
|
version 1.101, 2007/05/02 01:33:49
|
Line 526 sub iconchanger {
|
Line 526 sub iconchanger {
|
('environment',['icons']); |
('environment',['icons']); |
my $iconic='checked="checked"'; |
my $iconic='checked="checked"'; |
my $classic=''; |
my $classic=''; |
|
my $onlyicon=''; |
if ($userenv{'icons'} eq 'classic') { |
if ($userenv{'icons'} eq 'classic') { |
$classic='checked="checked"'; |
$classic='checked="checked"'; |
$iconic=''; |
$iconic=''; |
} |
} |
my $useicons=&mt('Use icons'); |
if ($userenv{'icons'} eq 'iconsonly') { |
my $usebuttons=&mt('Use classic buttons'); |
$onlyicon='checked="checked"'; |
|
$iconic=''; |
|
} |
|
my $useicons=&mt('Use icons and text'); |
|
my $usebuttons=&mt('Use buttons and text'); |
|
my $useicononly=&mt('Use icons only'); |
my $change=&mt('Change'); |
my $change=&mt('Change'); |
$r->print(<<ENDSCREEN); |
$r->print(<<ENDSCREEN); |
<form name="prefs" action="/adm/preferences" method="post"> |
<form name="prefs" action="/adm/preferences" method="post"> |
<input type="hidden" name="action" value="verify_and_change_icons" /> |
<input type="hidden" name="action" value="verify_and_change_icons" /> |
<label><input type="radio" name="menumode" value="iconic" $iconic /> $useicons</label><br /> |
<label><input type="radio" name="menumode" value="iconic" $iconic /> $useicons</label><br /> |
<label><input type="radio" name="menumode" value="classic" $classic /> $usebuttons</label><br /> |
<label><input type="radio" name="menumode" value="classic" $classic /> $usebuttons</label><br /> |
|
<label><input type="radio" name="menumode" value="iconsonly" $onlyicon /> $useicononly</label><br /> |
<input type="submit" value="$change" /> |
<input type="submit" value="$change" /> |
</form> |
</form> |
ENDSCREEN |
ENDSCREEN |
Line 1028 sub verify_and_change_password {
|
Line 1035 sub verify_and_change_password {
|
if ($caller eq 'reset_by_email') { |
if ($caller eq 'reset_by_email') { |
$tryagain_text = &mt('Please try again later.'); |
$tryagain_text = &mt('Please try again later.'); |
} |
} |
my $unable=&mt("Unable to retrieve stored token for password decryption"); |
my $unable=&mt("Unable to retrieve saved token for password decryption"); |
$r->print(<<ENDERROR); |
$r->print(<<ENDERROR); |
<p> |
<p> |
<span class="LC_error">$unable. $tryagain_text</span> |
<span class="LC_error">$unable. $tryagain_text</span> |
Line 1201 END
|
Line 1208 END
|
$r->print(<<"END"); |
$r->print(<<"END"); |
<br /> |
<br /> |
<br /> |
<br /> |
<input type="submit" name="sub" value="Store Changes" /> |
<input type="submit" name="sub" value="Save Changes" /> |
<br /> |
<br /> |
<br /> |
<br /> |
Note: $lt{'thde'} |
Note: $lt{'thde'} |
Line 1517 sub handler {
|
Line 1524 sub handler {
|
} |
} |
|
|
push (@Options,({ action => 'changeicons', |
push (@Options,({ action => 'changeicons', |
linktext => 'Change How Main Menu is Displayed', |
linktext => 'Change How Menus are Displayed', |
href => '/adm/preferences', |
href => '/adm/preferences', |
subroutine => \&iconchanger, |
subroutine => \&iconchanger, |
breadcrumb => |
breadcrumb => |