version 1.126, 2008/12/01 22:19:33
|
version 1.132, 2008/12/23 19:22:13
|
Line 148 sub languagechanger {
|
Line 148 sub languagechanger {
|
|
|
Apache::lonhtmlcommon::add_breadcrumb( |
Apache::lonhtmlcommon::add_breadcrumb( |
{ href => '/adm/preferences?action=changelanguages', |
{ href => '/adm/preferences?action=changelanguages', |
text => 'Change Colors'}); |
text => 'Change Language'}); |
$r->print(Apache::loncommon::start_page('Change Language')); |
$r->print(Apache::loncommon::start_page('Change Language')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Language')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Language')); |
my $user = $env{'user.name'}; |
my $user = $env{'user.name'}; |
Line 193 sub verify_and_change_languages {
|
Line 193 sub verify_and_change_languages {
|
&Apache::lonnet::delenv('environment\.languages'); |
&Apache::lonnet::delenv('environment\.languages'); |
$message=&mt('Reset preferred language.'); |
$message=&mt('Reset preferred language.'); |
} |
} |
|
&Apache::loncommon::flush_langs_cache($user,$domain); |
print_main_menu($r, $message); |
print_main_menu($r, $message); |
# $r->print(<<ENDVCSCREEN); |
# $r->print(<<ENDVCSCREEN); |
#$message |
#$message |
Line 772 sub msgforwardchanger {
|
Line 773 sub msgforwardchanger {
|
foad => 'Forwarding Address(es)', |
foad => 'Forwarding Address(es)', |
noti => 'Notification E-mail Address(es)', |
noti => 'Notification E-mail Address(es)', |
foad_exmpl => 'e.g. <tt>userA:domain1,userB:domain2,...</tt>', |
foad_exmpl => 'e.g. <tt>userA:domain1,userB:domain2,...</tt>', |
mnot => 'Email Address(es) which should be notified about new LON-CAPA messages', # old: 'Message Notification Email Address(es)', |
mnot => 'E-mail Address(es) which should be notified about new LON-CAPA messages', |
|
# old: 'Message Notification Email Address(es)', |
mnot_exmpl => 'e.g. <tt>joe@doe.com</tt>', |
mnot_exmpl => 'e.g. <tt>joe@doe.com</tt>', |
chg => 'Change', |
chg => 'Change', |
email => 'The e-mail address entered in row ', |
email => 'The e-mail address entered in row ', |
Line 1798 sub print_main_menu {
|
Line 1800 sub print_main_menu {
|
# build the data structure for menu generation |
# build the data structure for menu generation |
my $aboutmeurl='/adm/'.$env{'user.domain'}.'/'.$env{'user.name'}.'/aboutme'; |
my $aboutmeurl='/adm/'.$env{'user.domain'}.'/'.$env{'user.name'}.'/aboutme'; |
my $role = ($env{'user.adv'} ? 'Roles' : 'Course'); |
my $role = ($env{'user.adv'} ? 'Roles' : 'Course'); |
|
my %permissions; |
|
if (&Apache::lonnet::usertools_access($user,$domain,'aboutme')) { |
|
$permissions{'aboutme'} = 'F'; |
|
} |
my @menu= |
my @menu= |
({ categorytitle=>'Personal Data', |
({ categorytitle=>'Personal Data', |
items =>[ |
items =>[ |
{ linktext => 'About Me', |
{ linktext => 'About Me', |
url => $aboutmeurl, |
url => $aboutmeurl, |
permission => 'F', |
permission => $permissions{'aboutme'}, |
#help => 'Prefs_About_Me', |
#help => 'Prefs_About_Me', |
icon => 'system-users.png', |
icon => 'system-users.png', |
linktitle => 'Edit information about yourself that should be displayed on your public profile.' |
linktitle => 'Edit information about yourself that should be displayed on your public profile.' |
Line 1836 my @menu=
|
Line 1842 my @menu=
|
|
|
] |
] |
}, |
}, |
{ categorytitle=>'Message Management', |
|
items =>[ |
|
{ linktext => 'Messages & Notifications', |
|
url => '/adm/preferences?action=changemsgforward', |
|
permission => 'F', |
|
#help => 'Prefs_Messages', |
|
icon => 'mail-reply-all.png', |
|
linktitle => 'Change messageforwarding or notifications settings.' |
|
}, |
|
{ linktext => 'Discussion Display Preferences', |
|
url => '/adm/preferences?action=changediscussions', |
|
permission => 'F', |
|
#help => 'Change_Discussion_Display', |
|
icon => 'mail-message-new.png', |
|
linktitle => 'Set display preferences for discussion posts for both bulletin boards and individual resources in all your courses.' |
|
}, |
|
] |
|
}, |
|
{ categorytitle=>'Content Display Settings', |
{ categorytitle=>'Content Display Settings', |
items =>[ |
items =>[ |
{ linktext => 'Language', |
{ linktext => 'Language', |
Line 1861 my @menu=
|
Line 1849 my @menu=
|
permission => 'F', |
permission => 'F', |
#help => 'Prefs_Language', |
#help => 'Prefs_Language', |
icon => 'preferences-desktop-locale.png', |
icon => 'preferences-desktop-locale.png', |
linktitle => 'Choose the default language for LON-CAPA.' |
linktitle => 'Choose the default language for this user.' |
}, |
}, |
{ linktext => 'WYSIWYG Editor Preferences', |
{ linktext => 'WYSIWYG Editor', |
url => '/adm/preferences?action=changewysiwyg', |
url => '/adm/preferences?action=changewysiwyg', |
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'edit-select-all.png', |
icon => 'edit-select-all.png', |
linktitle => 'Enable or disable the WYSIWYG-Editor.' |
linktitle => 'Enable or disable the WYSIWYG-Editor.' |
}, |
}, |
{ linktext => $role.' Page Preferences', |
{ linktext => $role.' Page', |
url => '/adm/preferences?action=changerolespref', |
url => '/adm/preferences?action=changerolespref', |
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'sctr.png', |
icon => 'sctr.png', |
linktitle => 'Configure the roles hotlist.' |
linktitle => 'Configure the roles hotlist.' |
}, |
}, |
{ linktext => 'Display of Math Equations', |
{ linktext => 'Display of Scientific Equations', |
url => '/adm/preferences?action=changetexenginepref', |
url => '/adm/preferences?action=changetexenginepref', |
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
icon => 'stat.png', |
icon => 'stat.png', |
linktitle => 'Change how Math Equations are displayed.' |
linktitle => 'Change how Scientific Equations are displayed.' |
|
}, |
|
] |
|
}, |
|
{ categorytitle=>'Message Management', |
|
items =>[ |
|
{ linktext => 'Messages & Notifications', |
|
url => '/adm/preferences?action=changemsgforward', |
|
permission => 'F', |
|
#help => 'Prefs_Messages', |
|
icon => 'mail-reply-all.png', |
|
linktitle => 'Change messageforwarding or notifications settings.' |
|
}, |
|
{ linktext => 'Discussion Display', |
|
url => '/adm/preferences?action=changediscussions', |
|
permission => 'F', |
|
#help => 'Change_Discussion_Display', |
|
icon => 'mail-message-new.png', |
|
linktitle => 'Set display preferences for discussion posts for both bulletin boards and individual resources in all your courses.' |
}, |
}, |
] |
] |
}, |
}, |
Line 1944 push(@{ $menu[4]->{items} }, {
|
Line 1950 push(@{ $menu[4]->{items} }, {
|
|| &Apache::lonnet::allowed('whn',$env{'request.course.id'}.'/' |
|| &Apache::lonnet::allowed('whn',$env{'request.course.id'}.'/' |
.$env{'request.course.sec'})) { |
.$env{'request.course.sec'})) { |
push(@{ $menu[4]->{items} }, { |
push(@{ $menu[4]->{items} }, { |
linktext => 'Course Initialization Preference', |
linktext => 'Course Initialization', |
url => '/adm/preferences?action=changecourseinit', |
url => '/adm/preferences?action=changecourseinit', |
permission => 'F', |
permission => 'F', |
#help => '', |
#help => '', |
Line 2119 sub handler2 {
|
Line 2125 sub handler2 {
|
})); |
})); |
|
|
push (@Options,({ action => 'changemsgforward', |
push (@Options,({ action => 'changemsgforward', |
linktext => 'Change Message Forwarding and Notification Email Addresses', |
linktext => 'Change Message Forwarding and Notification E-mail Addresses', |
href => '/adm/preferences', |
href => '/adm/preferences', |
help => 'Prefs_Messages', |
help => 'Prefs_Messages', |
breadcrumb => |
breadcrumb => |