version 1.175, 2009/10/10 04:05:12
|
version 1.179, 2009/12/02 18:33:27
|
Line 166 sub languagechanger {
|
Line 166 sub languagechanger {
|
= &Apache::loncommon::plainlanguagedescription($_); |
= &Apache::loncommon::plainlanguagedescription($_); |
} |
} |
} |
} |
my $selectionbox=&Apache::loncommon::select_form($language,'language', |
my $selectionbox= |
%langchoices); |
&Apache::loncommon::select_form( |
|
$language, |
|
'language', |
|
&Apache::lonlocal::texthash(%langchoices)); |
$r->print(<<ENDLSCREEN); |
$r->print(<<ENDLSCREEN); |
<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_languages" /> |
<input type="hidden" name="action" value="verify_and_change_languages" /> |
Line 206 sub texenginechanger {
|
Line 209 sub texenginechanger {
|
my $r = shift; |
my $r = shift; |
Apache::lonhtmlcommon::add_breadcrumb( |
Apache::lonhtmlcommon::add_breadcrumb( |
{ href => '/adm/preferences?action=changetexenginepref', |
{ href => '/adm/preferences?action=changetexenginepref', |
text => 'Change How Math Equations Are Displayed'}); |
text => 'Math display settings'}); |
$r->print(Apache::loncommon::start_page('Content Display Settings')); |
$r->print(Apache::loncommon::start_page('Content Display Settings')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change How Math Equations Are Displayed')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Math display settings')); |
my $user = $env{'user.name'}; |
my $user = $env{'user.name'}; |
my $domain = $env{'user.domain'}; |
my $domain = $env{'user.domain'}; |
my %userenv = &Apache::lonnet::get('environment',['texengine']); |
my %userenv = &Apache::lonnet::get('environment',['texengine']); |
Line 221 sub texenginechanger {
|
Line 224 sub texenginechanger {
|
'mimetex' => 'mimetex (Convert to Images)', |
'mimetex' => 'mimetex (Convert to Images)', |
'raw' => 'Raw (Screen Reader)' |
'raw' => 'Raw (Screen Reader)' |
); |
); |
my $selectionbox=&Apache::loncommon::select_form($texengine,'texengine', |
my $selectionbox= |
%mathchoices); |
&Apache::loncommon::select_form( |
|
$texengine, |
|
'texengine', |
|
&Apache::lonlocal::texthash(%mathchoices)); |
my $jsMath_start=&Apache::lontexconvert::jsMath_header(); |
my $jsMath_start=&Apache::lontexconvert::jsMath_header(); |
my %lt=&Apache::lonlocal::texthash( |
my %lt=&Apache::lonlocal::texthash( |
'headline' => 'Change Math Preferences', |
'headline' => 'Change how math is displayed', |
'preftxt' => 'Preferred method to display Math', |
'preftxt' => 'Preferred method to display math', |
'change' => 'Save', |
'change' => 'Save', |
'exmpl' => 'Examples', |
'exmpl' => 'Examples', |
'jsmath' => 'jsMath:', |
'jsmath' => 'jsMath:', |
Line 281 if (jsMath.nofonts == 1) {
|
Line 287 if (jsMath.nofonts == 1) {
|
|
|
<h3>$lt{'tth'}</h3> |
<h3>$lt{'tth'}</h3> |
<p> |
<p> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=tth" width="400" height="200"></iframe> |
<iframe src="/res/adm/pages/math_example.tex?inhibitmenu=yes&texengine=tth" width="400" height="220"></iframe> |
</p> |
</p> |
ENDLSCREEN |
ENDLSCREEN |
if ($env{'environment.texengine'} ne 'jsMath') { |
if ($env{'environment.texengine'} ne 'jsMath') { |
Line 793 sub msgforwardchanger {
|
Line 799 sub msgforwardchanger {
|
); |
); |
Apache::lonhtmlcommon::add_breadcrumb( |
Apache::lonhtmlcommon::add_breadcrumb( |
{ href => '/adm/preferences?action=changemsgforward', |
{ href => '/adm/preferences?action=changemsgforward', |
text => 'Change Message Forwarding/Notification'}); |
text => 'Messages & Notifications'}); |
$r->print(Apache::loncommon::start_page('Message Management')); |
$r->print(Apache::loncommon::start_page('Messages & Notifications')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Message Forwarding/Notification')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Messages & Notifications')); |
my $forwardingHelp = &Apache::loncommon::help_open_topic("Prefs_Forwarding"); |
my $forwardingHelp = &Apache::loncommon::help_open_topic("Prefs_Forwarding"); |
my $notificationHelp = &Apache::loncommon::help_open_topic("Prefs_Notification"); |
my $notificationHelp = &Apache::loncommon::help_open_topic("Prefs_Notification"); |
my $criticalMessageHelp = &Apache::loncommon::help_open_topic("Course_Critical_Message"); |
my $criticalMessageHelp = &Apache::loncommon::help_open_topic("Course_Critical_Message"); |
Line 1603 sub discussionchanger {
|
Line 1609 sub discussionchanger {
|
Apache::lonhtmlcommon::add_breadcrumb( |
Apache::lonhtmlcommon::add_breadcrumb( |
{ href => '/adm/preferences?action=changediscussions', |
{ href => '/adm/preferences?action=changediscussions', |
text => 'Change Discussion Preferences'}); |
text => 'Change Discussion Preferences'}); |
$r->print(Apache::loncommon::start_page('Message Management')); |
$r->print(Apache::loncommon::start_page('Change Discussion Preferences')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Discussion Preferences')); |
$r->print(Apache::lonhtmlcommon::breadcrumbs('Change Discussion Preferences')); |
my $user = $env{'user.name'}; |
my $user = $env{'user.name'}; |
my $domain = $env{'user.domain'}; |
my $domain = $env{'user.domain'}; |
Line 1898 my @menu=
|
Line 1904 my @menu=
|
icon => 'sctr.png', |
icon => 'sctr.png', |
linktitle => 'Configure the roles hotlist.' |
linktitle => 'Configure the roles hotlist.' |
}, |
}, |
{ linktext => 'Display of Scientific Equations', |
{ linktext => 'Math display settings', |
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 Scientific Equations are displayed.' |
linktitle => 'Change how math is displayed.' |
}, |
}, |
] |
] |
}, |
}, |
{ categorytitle=>'Message Management', |
{ categorytitle=>'Messages & Notifications', |
items =>[ |
items =>[ |
{ linktext => 'Messages & Notifications', |
{ linktext => 'Messages & Notifications', |
url => '/adm/preferences?action=changemsgforward', |
url => '/adm/preferences?action=changemsgforward', |