version 1.112, 2008/01/20 22:38:06
|
version 1.114, 2008/03/03 11:29:57
|
Line 581 sub clickerchanger {
|
Line 581 sub clickerchanger {
|
$clickers=~s/\,/\n/gs; |
$clickers=~s/\,/\n/gs; |
my $text=&mt('Enter response device ("clicker") numbers'); |
my $text=&mt('Enter response device ("clicker") numbers'); |
my $change=&mt('Register'); |
my $change=&mt('Register'); |
my $helplink=&Apache::loncommon::help_open_topic('Clicker_Registration', 'Locating your clicker ID'); |
my $helplink=&Apache::loncommon::help_open_topic('Clicker_Registration',&mt('Locating your clicker ID')); |
$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_clicker" /> |
<input type="hidden" name="action" value="verify_and_change_clicker" /> |
Line 624 sub msgforwardchanger {
|
Line 624 sub msgforwardchanger {
|
crit => 'Critical only', |
crit => 'Critical only', |
reg => 'Non-critical only', |
reg => 'Non-critical only', |
foad => 'Forwarding Address(es)', |
foad => 'Forwarding 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 => 'Email 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>', |
Line 633 sub msgforwardchanger {
|
Line 634 sub msgforwardchanger {
|
toen => "To enter multiple addresses, enter one address at a time, click 'Change' and then add the next one", |
toen => "To enter multiple addresses, enter one address at a time, click 'Change' and then add the next one", |
prme => 'Back to preferences menu', |
prme => 'Back to preferences menu', |
); |
); |
my $forwardingHelp = Apache::loncommon::help_open_topic("Prefs_Forwarding", |
my $forwardingHelp = &Apache::loncommon::help_open_topic("Prefs_Forwarding"); |
&mt("What are forwarding and notification addresses?")); |
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"); |
&mt("What are critical messages?")); |
|
my @allow_html = split(/,/,$userenv{'notifywithhtml'}); |
my @allow_html = split(/,/,$userenv{'notifywithhtml'}); |
my %allnot = &get_notifications(\%userenv); |
my %allnot = &get_notifications(\%userenv); |
my $validatescript = &Apache::lonhtmlcommon::javascript_valid_email(); |
my $validatescript = &Apache::lonhtmlcommon::javascript_valid_email(); |
Line 699 $validatescript
|
Line 699 $validatescript
|
$r->print(<<ENDMSG); |
$r->print(<<ENDMSG); |
$jscript |
$jscript |
$message |
$message |
$forwardingHelp |
<h3>$lt{'foad'} $forwardingHelp</h3> |
<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_msgforward" /> |
<input type="hidden" name="action" value="verify_and_change_msgforward" /> |
$lt{'foad'} ($lt{'foad_exmpl'}): |
$lt{'foad'} ($lt{'foad_exmpl'}): |
<input type="text" size="40" value="$msgforward" name="msgforward" /><hr /> |
<input type="text" size="40" value="$msgforward" name="msgforward" /><br /> |
$criticalMessageHelp |
<h3>$lt{'noti'} $notificationHelp</h3> |
$lt{'mnot'} ($lt{'mnot_exmpl'}):<br /> |
$lt{'mnot'} ($lt{'mnot_exmpl'}):<br /> |
ENDMSG |
ENDMSG |
my @sortforwards = sort (keys(%allnot)); |
my @sortforwards = sort (keys(%allnot)); |
Line 713 ENDMSG
|
Line 713 ENDMSG
|
'<th> </th>'. |
'<th> </th>'. |
'<th>'.&mt('Action').'</th>'. |
'<th>'.&mt('Action').'</th>'. |
'<th>'.&mt('Notification address').'</th><th>'. |
'<th>'.&mt('Notification address').'</th><th>'. |
&mt('Types of message for which notification is sent').'</th><th>'. |
&mt('Types of message for which notification is sent'). |
|
$criticalMessageHelp.'</th><th>'. |
&mt('Excerpt retains HTML tags in message').'</th>'. |
&mt('Excerpt retains HTML tags in message').'</th>'. |
&Apache::loncommon::end_data_table_header_row(); |
&Apache::loncommon::end_data_table_header_row(); |
my $num = 0; |
my $num = 0; |
Line 796 ENDMSG
|
Line 797 ENDMSG
|
$num ++; |
$num ++; |
$r->print($output); |
$r->print($output); |
$r->print(qq| |
$r->print(qq| |
<hr /> |
<br /><hr /> |
<input type="hidden" name="numnotify" value="$num" /> |
<input type="hidden" name="numnotify" value="$num" /> |
<input type="button" value="$lt{'chg'}" onclick="javascript:validate()" /> |
<input type="button" value="$lt{'chg'}" onclick="javascript:validate()" /> |
<input type="button" value="$lt{'prme'}" onclick="location.href='/adm/preferences'" /> |
<input type="button" value="$lt{'prme'}" onclick="location.href='/adm/preferences'" /> |
Line 1667 sub handler {
|
Line 1668 sub handler {
|
push (@Options,({ action => 'changemsgforward', |
push (@Options,({ action => 'changemsgforward', |
linktext => 'Change Message Forwarding and Notification Email Addresses', |
linktext => 'Change Message Forwarding and Notification Email Addresses', |
href => '/adm/preferences', |
href => '/adm/preferences', |
help => 'Prefs_Forwarding', |
help => 'Prefs_Messages', |
breadcrumb => |
breadcrumb => |
{ href => '/adm/preferences?action=changemsgforward', |
{ href => '/adm/preferences?action=changemsgforward', |
text => 'Change Message Forwarding'}, |
text => 'Change Message Forwarding/Notification'}, |
subroutine => \&msgforwardchanger, |
subroutine => \&msgforwardchanger, |
}, |
}, |
{ action => 'verify_and_change_msgforward', |
{ action => 'verify_and_change_msgforward', |
|
help => 'Prefs_Messages', |
breadcrumb => |
breadcrumb => |
{ href => '/adm/preferences?action=changemsgforward', |
{ href => '/adm/preferences?action=changemsgforward', |
text => 'Change Message Forwarding'}, |
text => 'Change Message Forwarding/Notification'}, |
printmenu => 'no', |
printmenu => 'no', |
subroutine => \&verify_and_change_msgforward })); |
subroutine => \&verify_and_change_msgforward })); |
my $aboutmeaction= |
my $aboutmeaction= |