version 1.146, 2010/01/25 20:54:27
|
version 1.156, 2011/05/03 10:37:14
|
Line 1
|
Line 1
|
# The LearningOnline Network with CAPA |
# $textareaclass The LearningOnline Network with CAPA |
# Routines for messaging display |
# Routines for messaging display |
# |
# |
# $Id$ |
# $Id$ |
Line 222 function folder_choice(targetform,caller
|
Line 222 function folder_choice(targetform,caller
|
|
|
$output .= ' |
$output .= ' |
<form method="post" action="/adm/email" name="folderlist"> |
<form method="post" action="/adm/email" name="folderlist"> |
<table border="0" cellspacing="2" cellpadding="2"> |
<table border="0" cellspacing="2" cellpadding="8"> |
<tr> |
|
<td align="left"> |
|
<table border="0" cellspacing="2" cellpadding="2"> |
|
<tr> |
<tr> |
<td align="center"><b>'.$lt{'fold'}.'</b><br />'."\n". |
<td><b>'.$lt{'fold'}.'</b><br />'."\n". |
&Apache::loncommon::select_form($folder,'folder',%formhash).' |
&Apache::loncommon::select_form($folder,'folder',\%formhash).' |
</td> |
</td> |
<td align="center"><b>'.$lt{'show'}.'</b><br />'."\n". |
<td><b>'.$lt{'show'}.'</b><br />'."\n". |
&Apache::loncommon::select_form($env{'form.interdis'},'interdis', |
&Apache::loncommon::select_form($env{'form.interdis'},'interdis', |
%show).' |
\%show).' |
|
</td> |
|
<td><b>'.$lt{'status'}.'</b><br />'."\n". |
|
&Apache::loncommon::select_form($msgstatus,'msgstatus',\%statushash).' |
</td> |
</td> |
<td align="center"><b>'.$lt{'status'}.'</b><br />'."\n". |
<td><b>'.$lt{'actn'}.'</b><br />'."\n".' |
&Apache::loncommon::select_form($msgstatus,'msgstatus',%statushash).' |
<span class="LC_nobreak">'. |
|
&Apache::loncommon::select_form('view','folderaction',\%actions). |
|
' <input type="button" value="'.$lt{'go'}. |
|
'" onclick="javascript:folder_choice(this.form,'."'change'".');" /> |
|
</span> |
</td> |
</td> |
<td align="center"><b>'.$lt{'actn'}.'</b><br />'. |
<td><b>'.&mt('New Folder').'</b><br />'."\n".' |
&Apache::loncommon::select_form('view','folderaction',%actions).' |
<span class="LC_nobreak"> |
</td><td><br />'. |
<input type="text" size="15" name="newfolder" value="" /> |
'<input type="button" value="'.$lt{'go'}.'" onclick="javascript:folder_choice(this.form,'."'change'".');" /> |
<input type="button" value="'.$lt{'go'}. |
|
'" onclick="javascript:folder_choice(this.form,'."'new'".');" /> |
|
</span> |
</td> |
</td> |
</tr> |
</tr> |
</table> |
</table> |
</td><td> </td><td> </td><td> </td><td> </td> |
'."\n". |
<td align="right"> |
|
<table><tr><td><br /> |
|
<input type="button" value="'.&mt('New Folder'). |
|
'" onclick="javascript:folder_choice(this.form,'."'new'".');" /></td>'. |
|
'<td align="center"><b>'.&mt('Name').'</b><br />'. |
|
'<input type="text" size="15" name="newfolder" value="" /> |
|
</td></tr></table> |
|
</td> |
|
</tr> |
|
</table>'."\n". |
|
'<input type="hidden" name="sortedby" value="'.$env{'form.sortedby'}.'" />'. |
'<input type="hidden" name="sortedby" value="'.$env{'form.sortedby'}.'" />'. |
'<input type="hidden" name="renamed" value="" />'. |
'<input type="hidden" name="renamed" value="" />'. |
($folder=~/^critical/?'</form>':''); |
($folder=~/^critical/?'</form>':''); |
Line 308 sub scrollbuttons {
|
Line 304 sub scrollbuttons {
|
'<input type="submit" name="lastview" value=">|" />'; |
'<input type="submit" name="lastview" value=">|" />'; |
} |
} |
$output .= |
$output .= |
'<br />' |
'<p>' |
.'<b>'.&mt($status.' messages:').'</b> ' |
.'<b>'.&mt($status.' messages:').'</b> ' |
.&mt('showing messages [_1] through [_2] of [_3].', |
.&mt('showing messages [_1] through [_2] of [_3].', |
$first,$finish,$total) |
$first,$finish,$total) |
|
.'</p>' |
.'</form>'; |
.'</form>'; |
|
|
return $output; |
return $output; |
Line 381 sub deletefolder {
|
Line 378 sub deletefolder {
|
my ($folder)=@_; |
my ($folder)=@_; |
my %permfolders = &get_permanent_folders(); |
my %permfolders = &get_permanent_folders(); |
if (defined($permfolders{$folder})) { |
if (defined($permfolders{$folder})) { |
return &mt('The folder "[_1]" may not be deleted',$folder); |
return &mt('The folder "[_1]" may not be deleted.',$folder); |
} |
} |
my %userfolders = &Apache::lonmsg::get_user_folders(); |
my %userfolders = &Apache::lonmsg::get_user_folders(); |
if (!defined($userfolders{$folder})) { |
if (!defined($userfolders{$folder})) { |
Line 629 sub disgroup {
|
Line 626 sub disgroup {
|
return; |
return; |
} else { |
} else { |
$hasfloat = 1; |
$hasfloat = 1; |
unless($env{'environment.wysiwygeditor'} eq 'on') { |
$r->print('<div class="LC_left_float">'); |
$r->print('<div class="LC_left_float">'); |
|
} |
|
my %Sortby = ( |
my %Sortby = ( |
active => {}, |
active => {}, |
previous => {}, |
previous => {}, |
Line 704 sub disgroup {
|
Line 699 sub disgroup {
|
} |
} |
} |
} |
} |
} |
unless($env{'environment.wysiwygeditor'} eq 'on') { |
$r->print('</div>'); |
$r->print('</div>'); |
|
} |
|
} |
} |
return $hasfloat; |
return $hasfloat; |
} |
} |
Line 821 sub discrit {
|
Line 814 sub discrit {
|
foreach my $key (sort(keys(%what))) { |
foreach my $key (sort(keys(%what))) { |
my %content=&Apache::lonmsg::unpackagemsg($what{$key}); |
my %content=&Apache::lonmsg::unpackagemsg($what{$key}); |
next if ($content{'senderdomain'} eq ''); |
next if ($content{'senderdomain'} eq ''); |
|
my %courseinfo=&Apache::lonnet::coursedescription($content{'courseid'}); |
$result .= &Apache::lonhtmlcommon::start_pick_box() |
$result .= &Apache::lonhtmlcommon::start_pick_box() |
.&Apache::lonhtmlcommon::row_title(&mt('From'),undef,'LC_oddrow_value') |
.&Apache::lonhtmlcommon::row_title(&mt('From'),undef,'LC_oddrow_value') |
.'<b>'.&Apache::loncommon::aboutmewrapper( |
.'<b>'.&Apache::loncommon::aboutmewrapper( |
Line 832 sub discrit {
|
Line 826 sub discrit {
|
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::row_title(&mt('Subject'),undef,'LC_oddrow_value') |
.&Apache::lonhtmlcommon::row_title(&mt('Subject'),undef,'LC_oddrow_value') |
.$content{'subject'} |
.$content{'subject'} |
.&Apache::lonhtmlcommon::row_closure(1) |
.&Apache::lonhtmlcommon::row_closure(1); |
.&Apache::lonhtmlcommon::row_title(&mt('Message'),undef,'LC_evenrow_value') |
if ($courseinfo{'description'}) { |
|
$result .= &Apache::lonhtmlcommon::row_title(&mt('Course'),undef,'LC_oddrow_value') |
|
.$courseinfo{'description'} |
|
.&Apache::lonhtmlcommon::row_closure(1); |
|
} |
|
$result .= &Apache::lonhtmlcommon::row_title(&mt('Message'),undef,'LC_evenrow_value') |
.'<pre>'.&Apache::lontexconvert::msgtexconverted($content{'message'}).'</pre>' |
.'<pre>'.&Apache::lontexconvert::msgtexconverted($content{'message'}).'</pre>' |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_closure() |
.&Apache::lonhtmlcommon::row_title('',undef,'LC_oddrow_value') |
.&Apache::lonhtmlcommon::row_title('',undef,'LC_oddrow_value') |
Line 1030 sub disfolder {
|
Line 1029 sub disfolder {
|
my ($startblock,$endblock) = &Apache::loncommon::blockcheck(\%setters,'com'); |
my ($startblock,$endblock) = &Apache::loncommon::blockcheck(\%setters,'com'); |
my %lt = &Apache::lonlocal::texthash( |
my %lt = &Apache::lonlocal::texthash( |
sede => 'Select a destination folder to which the messages will be moved.', |
sede => 'Select a destination folder to which the messages will be moved.', |
nome => 'No messages have been selected to apply ths action to.', |
nome => 'No messages have been selected to apply this action to.', |
chec => 'Check the checkbox for at least one message.', |
chec => 'Check the checkbox for at least one message.', |
); |
); |
my $jscript = &Apache::loncommon::check_uncheck_jscript(); |
my $jscript = &Apache::loncommon::check_uncheck_jscript(); |
Line 1101 ENDDISHEADER
|
Line 1100 ENDDISHEADER
|
if ($lastdis>$#temp) { $lastdis=$#temp; } |
if ($lastdis>$#temp) { $lastdis=$#temp; } |
$r->print(&scrollbuttons($startdis,$number,$firstdis,$lastdis,$totalnumber,$msgstatus)); |
$r->print(&scrollbuttons($startdis,$number,$firstdis,$lastdis,$totalnumber,$msgstatus)); |
$r->print('<form method="post" name="disall" action="/adm/email">'. |
$r->print('<form method="post" name="disall" action="/adm/email">'. |
'<table class="LC_mail_list"><tr><th colspan="1"> </th><th>'); |
&Apache::loncommon::start_data_table(). |
|
&Apache::loncommon::start_data_table_row(). |
|
'<th colspan="1"> </th><th>'); |
if ($env{'form.sortedby'} eq "revdate") { |
if ($env{'form.sortedby'} eq "revdate") { |
$r->print('<a href = "/adm/email?sortedby=date'.$fsqs.'">'.&mt('Date').'</a></th>'); |
$r->print('<a href = "/adm/email?sortedby=date'.$fsqs.'">'.&mt('Date').'</a></th>'); |
} else { |
} else { |
Line 1131 ENDDISHEADER
|
Line 1132 ENDDISHEADER
|
} else { |
} else { |
$r->print('<a href = "/adm/email?sortedby=revcourse'.$fsqs.'">'.&mt('Course').'</a>'); |
$r->print('<a href = "/adm/email?sortedby=revcourse'.$fsqs.'">'.&mt('Course').'</a>'); |
} |
} |
$r->print('</th><th>'); |
$r->print('</th><th colspan="2">'); |
if ($env{'form.sortedby'} eq "revstatus") { |
if ($env{'form.sortedby'} eq "revstatus") { |
$r->print('<a href = "/adm/email?sortedby=status'.$fsqs.'">'.&mt('Status').'</a></th>'); |
$r->print('<a href = "/adm/email?sortedby=status'.$fsqs.'">'.&mt('Status').'</a></th>'); |
} else { |
} else { |
Line 1145 ENDDISHEADER
|
Line 1146 ENDDISHEADER
|
my ($sendtime,$shortsubj,$fromname,$fromdomain,$status,$origID, |
my ($sendtime,$shortsubj,$fromname,$fromdomain,$status,$origID, |
$description,$recv_name,$recv_domain)= |
$description,$recv_name,$recv_domain)= |
@{$temp[$n]}; |
@{$temp[$n]}; |
if (($status ne 'deleted') && defined($sendtime) && $sendtime!~/error/) { |
if (($status ne 'deleted') && defined($sendtime) && $sendtime!~/error/) { |
|
my $class_msgstatus = ''; |
$count ++; |
$count ++; |
if ($status eq 'new') { |
if ($status eq 'new') { |
$r->print('<tr class="LC_mail_new">'); |
$class_msgstatus = 'LC_mail_new'; |
} elsif ($status eq 'read') { |
} elsif ($status eq 'read') { |
$r->print('<tr class="LC_mail_read">'); |
$class_msgstatus = 'LC_mail_read'; |
} elsif ($status eq 'replied') { |
} elsif ($status eq 'replied') { |
$r->print('<tr class="LC_mail_replied">'); |
$class_msgstatus = 'LC_mail_replied'; |
} else { |
} else { |
$r->print('<tr class="LC_mail_other">'); |
$class_msgstatus = 'LC_mail_other'; |
} |
} |
|
$r->print(&Apache::loncommon::start_data_table_row($class_msgstatus)); |
my ($dis_name,$dis_domain) = ($fromname,$fromdomain); |
my ($dis_name,$dis_domain) = ($fromname,$fromdomain); |
if ($folder eq 'sent') { |
if ($folder eq 'sent') { |
if (defined($recv_name) && defined($recv_domain)) { |
if (defined($recv_name) && defined($recv_domain)) { |
Line 1187 ENDDISHEADER
|
Line 1190 ENDDISHEADER
|
'<a href="/adm/email?display='.$origID.$sqs.'">'. |
'<a href="/adm/email?display='.$origID.$sqs.'">'. |
$item.(($status eq 'new')?'</b>':'').'</a></td>'); |
$item.(($status eq 'new')?'</b>':'').'</a></td>'); |
} |
} |
|
# Description and Status |
my $showstatus; |
my $showstatus; |
my %statushash = &get_msgstatus_types(); |
my %statushash = &get_msgstatus_types(); |
if ($status eq '') { |
if ($status eq '') { |
Line 1194 ENDDISHEADER
|
Line 1198 ENDDISHEADER
|
} else { |
} else { |
$showstatus = $statushash{$status}; |
$showstatus = $statushash{$status}; |
} |
} |
$r->print('<td>'.(($status eq 'new')?'<b>':'').$description. |
$r->print('<td>'.(($status eq 'new')?'<b>':'').$description. |
(($status eq 'new')?'</b>':'').'</td><td>'. |
(($status eq 'new')?'</b>':''). |
(($status eq 'new')?'<b>':'').$showstatus. |
'</td>'); |
(($status eq 'new')?'</b>':'').'</td></tr>'."\n"); |
$r->print('<td class="'.$class_msgstatus.'"> </td>'. |
} elsif ($status eq 'deleted') { |
'<td>'. |
|
(($status eq 'new')?'<b>':'').&mt($showstatus). |
|
(($status eq 'new')?'</b>':''). |
|
'</td>'); |
|
|
|
$r->print(&Apache::loncommon::end_data_table_row()); |
|
|
|
} elsif ($status eq 'deleted') { |
# purge |
# purge |
my ($result,$msg) = |
my ($result,$msg) = |
&movemsg(&unescape($origID),$folder,'trash'); |
&movemsg(&unescape($origID),$folder,'trash'); |
|
} |
} |
|
} |
} |
$r->print("</table>\n"); |
$r->print(&Apache::loncommon::end_data_table()); |
$r->print('<table border="0" cellspacing="2" cellpadding="2"> |
|
|
|
|
# Bottom Functions |
|
$r->print('<table border="0" cellspacing="2" cellpadding="8"> |
<tr> |
<tr> |
<td>'. |
<td> |
'<input type="button" onclick="javascript:checkAll(document.disall.delmark)" value="'.&mt('Check All').'" /><br />'."\n". |
<fieldset> |
'<input type="button" onclick="javascript:uncheckAll(document.disall.delmark)" value="'.&mt('Uncheck All').'" />'."\n". |
<legend>'.&mt('Select').'</legend> |
'<input type="hidden" name="sortedby" value="'.$env{'form.sortedby'}.'" /></td><td> </td>'."\n". |
<span class="LC_nobreak"> |
'<td align="center"><b>'.&mt('Action').'</b><br />'."\n". |
<input type="button" onclick="javascript:checkAll(document.disall.delmark)" value="'.&mt('Check All').'" />'."\n". |
|
' <input type="button" onclick="javascript:uncheckAll(document.disall.delmark)" value="'.&mt('Uncheck All').'" />'."\n". |
|
'<input type="hidden" name="sortedby" value="'.$env{'form.sortedby'}.'" /> |
|
</span> |
|
</fieldset> |
|
</td>'."\n". |
|
'<td><b>'.&mt('Action').'</b><br />'."\n". |
' <select name="checkedaction">'."\n"); |
' <select name="checkedaction">'."\n"); |
|
|
if ($folder ne 'trash') { |
if ($folder ne 'trash') { |
Line 1234 ENDDISHEADER
|
Line 1253 ENDDISHEADER
|
$r->print("\n".'</select></td>'."\n"); |
$r->print("\n".'</select></td>'."\n"); |
|
|
if (keys(%gotfolders) > 0) { |
if (keys(%gotfolders) > 0) { |
$r->print('<td align="center"><b>'.&mt('Destination folder').'<b><br />'); |
$r->print('<td><b>'.&mt('Destination folder').'<b><br />'); |
my %userfolders; |
my %userfolders; |
foreach my $key (keys(%gotfolders)) { |
foreach my $key (keys(%gotfolders)) { |
$userfolders{$key} = $key; |
$userfolders{$key} = $key; |
} |
} |
$userfolders{''} = ""; |
$userfolders{''} = ""; |
$r->print(&Apache::loncommon::select_form('','movetofolder',%userfolders). |
$r->print(&Apache::loncommon::select_form('','movetofolder',\%userfolders). |
'</td>'); |
'</td>'); |
} |
} |
$r->print('<td> </td><td> '. |
$r->print('<td>'. |
'<input type="button" name="go" value="'.&mt('Go'). |
'<input type="button" name="go" value="'.&mt('Go'). |
'" onclick="javascript:validate_checkedaction()"/></td>'."\n". |
'" onclick="javascript:validate_checkedaction()"/></td>'."\n". |
'</tr></table>'); |
'</tr></table>'); |
Line 1406 sub compout {
|
Line 1425 sub compout {
|
if ($group eq '') { |
if ($group eq '') { |
my $studentsel = &discourse(\%access_status); |
my $studentsel = &discourse(\%access_status); |
if ($studentsel) { |
if ($studentsel) { |
if ($env{'environment.wysiwygeditor'} eq 'on') { |
$r->print('<div class="LC_left_float">'.$studentsel.'</div>'); |
$r->print($studentsel); |
|
} else { |
|
$r->print('<div class="LC_left_float">'.$studentsel.'</div>'); |
|
} |
|
$hasfloat = 1; |
$hasfloat = 1; |
} |
} |
} else { |
} else { |
Line 1506 ENDREPSCRIPT
|
Line 1521 ENDREPSCRIPT
|
if ($env{'form.text'}) { $dismsg=$env{'form.text'}; } |
if ($env{'form.text'}) { $dismsg=$env{'form.text'}; } |
if ($env{'form.subject'}) { $dissub=$env{'form.subject'}; } |
if ($env{'form.subject'}) { $dissub=$env{'form.subject'}; } |
if ($hasfloat) { |
if ($hasfloat) { |
if ($env{'environment.wysiwygeditor'} eq 'on') { |
$r->print($broadcast_js.'<div class="LC_left_float">'); |
$r->print($broadcast_js); |
|
} else { |
|
$r->print($broadcast_js.'<div class="LC_left_float">'); |
|
} |
|
$onsubmit = ' onsubmit="javascript:courseRecipients();" '; |
$onsubmit = ' onsubmit="javascript:courseRecipients();" '; |
} |
} |
$r->print( |
$r->print( |
Line 1620 ENDREPSCRIPT
|
Line 1631 ENDREPSCRIPT
|
} |
} |
} |
} |
my $latexHelp = &Apache::loncommon::helpLatexCheatsheet(undef,undef,1); |
my $latexHelp = &Apache::loncommon::helpLatexCheatsheet(undef,undef,1); |
my $wysiwyglink=&Apache::lonhtmlcommon::htmlareaselectactive('message').'<br />'; |
my $textareaclass; |
|
if (&Apache::lonhtmlcommon::htmlareabrowser()) { |
|
$r->print(&Apache::lonhtmlcommon::htmlareaselectactive()); |
|
$textareaclass = 'class="LC_richDefaultOff"'; |
|
} |
my $subj_size; |
my $subj_size; |
if ($multiforward) { |
if ($multiforward) { |
$r->print(&additional_rec_row(\%lt)); |
$r->print(&additional_rec_row(\%lt)); |
Line 1642 ENDREPSCRIPT
|
Line 1657 ENDREPSCRIPT
|
<tr><td align="left">'."\n". |
<tr><td align="left">'."\n". |
$latexHelp."<br />\n". |
$latexHelp."<br />\n". |
&mt("Any new text to display before the text of the original messages:").'<br />'."\n". |
&mt("Any new text to display before the text of the original messages:").'<br />'."\n". |
'<textarea name="message" id="message" cols="80" rows="5" wrap="hard"></textarea>'. |
'<textarea name="message" id="message" cols="80" rows="5" wrap="hard" $textareaclass></textarea>'); |
$wysiwyglink); |
|
my @to_forward = &Apache::loncommon::get_env_multiple('form.delmark'); |
my @to_forward = &Apache::loncommon::get_env_multiple('form.delmark'); |
foreach my $msg (@to_forward) { |
foreach my $msg (@to_forward) { |
$r->print('<input type="hidden" name="delmark" value="'.$msg.'" />'); |
$r->print('<input type="hidden" name="delmark" value="'.$msg.'" />'); |
Line 1663 $wysiwyglink);
|
Line 1677 $wysiwyglink);
|
$attachrow |
$attachrow |
</table><br /> |
</table><br /> |
$latexHelp<br /> |
$latexHelp<br /> |
<textarea name="message" id="message" cols="80" rows="15" wrap="hard">$dismsg |
<textarea name="message" id="message" cols="80" rows="15" wrap="hard" $textareaclass>$dismsg |
</textarea>$wysiwyglink |
</textarea> |
|
<br /> |
$sendmode |
$sendmode |
$dispcrit |
$dispcrit |
$disbase |
$disbase |
Line 1689 ENDCOMP
|
Line 1704 ENDCOMP
|
Subject: <input type="text" size="50" name="subject" /> |
Subject: <input type="text" size="50" name="subject" /> |
</p> |
</p> |
<p>$lt{'gmt'}:<br /> |
<p>$lt{'gmt'}:<br /> |
<textarea name="message" id="message" cols="60" rows="10" wrap="hard">$dismsg |
<textarea name="message" id="message" cols="60" rows="10" wrap="hard" $textareaclass>$dismsg |
</textarea>$wysiwyglink</p> |
</textarea></p> |
<p> |
<p> |
$lt{'tff'}: |
$lt{'tff'}: |
ENDBLOCK |
ENDBLOCK |
Line 1716 ENDUPLOAD
|
Line 1731 ENDUPLOAD
|
} |
} |
$r->print('</form>'); |
$r->print('</form>'); |
if ($hasfloat) { |
if ($hasfloat) { |
unless($env{'environment.wysiwygeditor'} eq 'on') { |
$r->print('</div><div class="LC_clear_float_footer"></div>'); |
$r->print('</div><div class="LC_clear_float_footer"></div>'); |
|
} |
|
} |
} |
$r->print(&generate_preview_form); |
$r->print(&generate_preview_form); |
} |
} |
Line 1992 sub facetoface {
|
Line 2005 sub facetoface {
|
.&Apache::lonhtmlcommon::end_pick_box() |
.&Apache::lonhtmlcommon::end_pick_box() |
.'<br />' |
.'<br />' |
.'<input type="submit" value="'.$lt{'subm'}.'" />' |
.'<input type="submit" value="'.$lt{'subm'}.'" />' |
|
.'</form>' |
); |
); |
|
|
if (($stage ne 'query') && |
if (($stage ne 'query') && |
Line 2638 sub displaymessage {
|
Line 2652 sub displaymessage {
|
} |
} |
if ($content{'group'} ne '') { |
if ($content{'group'} ne '') { |
if (&check_group_priv($content{'group'})) { |
if (&check_group_priv($content{'group'})) { |
$groupcclist = join(', ',@{$recipients{'group_cc_broadcast'}}); |
if (ref($recipients{'group_cc_broadcast'}) eq 'ARRAY') { |
if ($groupcclist) { |
$groupcclist = join(', ',@{$recipients{'group_cc_broadcast'}}); |
$r->print(&Apache::lonhtmlcommon::row_title(&mt('Group Cc')) |
if ($groupcclist) { |
.$groupcclist |
$r->print(&Apache::lonhtmlcommon::row_title(&mt('Group Cc')) |
.&Apache::lonhtmlcommon::row_closure() |
.$groupcclist |
); |
.&Apache::lonhtmlcommon::row_closure() |
|
); |
|
} |
} |
} |
} |
} |
} |
} |
Line 3167 sub sendoffmail {
|
Line 3183 sub sendoffmail {
|
my ($recuname,$recdomain)=split(/\:/,$address); |
my ($recuname,$recdomain)=split(/\:/,$address); |
my $msgtxt = $savemsg; |
my $msgtxt = $savemsg; |
if ($toaddr{$address}) { |
if ($toaddr{$address}) { |
$msgtxt.='<hr />'.$toaddr{$address}; |
$msgtxt.="\n".'<hr />'."\n".$toaddr{$address}; |
} |
} |
my @thismsg; |
my @thismsg; |
if ($msgtype eq 'critical') { |
if ($msgtype eq 'critical') { |
Line 3292 sub sendoffmail {
|
Line 3308 sub sendoffmail {
|
$r->print($message); |
$r->print($message); |
} |
} |
} |
} |
|
} else { |
|
&printheader($r,'','Messages cancelled.'); |
|
return 'cancelled'; |
} |
} |
return $sendstatus; |
return $sendstatus; |
} |
} |
Line 3409 sub handler {
|
Line 3428 sub handler {
|
&statuschange($env{'form.markdel'},'deleted',$folder); |
&statuschange($env{'form.markdel'},'deleted',$folder); |
if (!$result) { |
if (!$result) { |
my $message = &Apache::lonhtmlcommon::confirm_success(&mt('Failed to delete the message.'),1); |
my $message = &Apache::lonhtmlcommon::confirm_success(&mt('Failed to delete the message.'),1); |
$message .= '<p class="LC_error">'.$msg.'</p>'; |
$message .= '<p class="LC_error" style="font-size: inherit;">'.$msg.'</p>'; |
$message = &Apache::loncommon::confirmwrapper($message); |
$message = &Apache::loncommon::confirmwrapper($message); |
$r->print($message); |
$r->print($message); |
} |
} |
Line 3459 sub handler {
|
Line 3478 sub handler {
|
&printheader($r,'','Moved Messages'); |
&printheader($r,'','Moved Messages'); |
if (!defined($gotfolders{$destfolder})) { |
if (!defined($gotfolders{$destfolder})) { |
$r->print(&mt('Destination folder [_1] is not a valid folder', |
$r->print(&mt('Destination folder [_1] is not a valid folder', |
$destfolder)); |
'<span class="LC_filename">'.$destfolder.'</span>')); |
} else { |
} else { |
my ($total,$failed,@failed_msg)=(0,0); |
my ($total,$failed,@failed_msg)=(0,0); |
my @to_move = &Apache::loncommon::get_env_multiple('form.delmark'); |
my @to_move = &Apache::loncommon::get_env_multiple('form.delmark'); |
Line 3476 sub handler {
|
Line 3495 sub handler {
|
my $message = ''; |
my $message = ''; |
if ($failed) { |
if ($failed) { |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Failed to move [quant,_1,message]',$failed),1); |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Failed to move [quant,_1,message]',$failed),1); |
$message .= '<p class="LC_error">'. |
$message .= '<p class="LC_error" style="font-size: inherit;">'. |
join("</p>\n<p class=\"LC_error\">",@failed_msg). |
join("</p>\n<p class=\"LC_error\" style=\"font-size: inherit;\">",@failed_msg). |
"</p>\n"; |
"</p>\n"; |
} |
} |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Moved [quant,_1,message]',$total)); |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Moved [quant,_1,message]',$total)); |
Line 3504 sub handler {
|
Line 3523 sub handler {
|
my $message = ''; |
my $message = ''; |
if ($failed) { |
if ($failed) { |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Failed to delete [quant,_1,message]',$failed),1); |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Failed to delete [quant,_1,message]',$failed),1); |
$message .= '<p class="LC_error">'. |
$message .= '<p class="LC_error" style="font-size: inherit;">'. |
join("</p>\n<p class=\"LC_error\">",@failed_msg). |
join("</p>\n<p class=\"LC_error\" style=\"font-size: inherit;\">",@failed_msg). |
"</p>\n"; |
"</p>\n"; |
} |
} |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Deleted [quant,_1,message]',$total)); |
$message .= &Apache::lonhtmlcommon::confirm_success(&mt('Deleted [quant,_1,message]',$total)); |