version 1.105, 2008/12/16 22:57:31
|
version 1.111, 2009/02/04 20:14:45
|
Line 583 sub disgroup {
|
Line 583 sub disgroup {
|
return; |
return; |
} else { |
} else { |
$hasfloat = 1; |
$hasfloat = 1; |
$r->print('<div class="LC_left_float">'); |
unless($env{'environment.wysiwygeditor'} eq 'on') { |
|
$r->print('<div class="LC_left_float">'); |
|
} |
my %Sortby = ( |
my %Sortby = ( |
active => {}, |
active => {}, |
previous => {}, |
previous => {}, |
Line 651 sub disgroup {
|
Line 653 sub disgroup {
|
} |
} |
} |
} |
$r->print(&Apache::loncommon::end_data_table().'</form>'. |
$r->print(&Apache::loncommon::end_data_table().'</form>'. |
'</fieldset><br /></div>'); |
'</fieldset><br />'); |
} |
} |
} |
} |
} |
} |
|
unless($env{'environment.wysiwygeditor'} eq 'on') { |
|
$r->print('</div>'); |
|
} |
} |
} |
return $hasfloat; |
return $hasfloat; |
} |
} |
Line 1235 sub compout {
|
Line 1240 sub compout {
|
} elsif ($multiforward) { |
} elsif ($multiforward) { |
&Apache::lonhtmlcommon::add_breadcrumb |
&Apache::lonhtmlcommon::add_breadcrumb |
({href=>"/adm/email?folder=".&escape($folder), |
({href=>"/adm/email?folder=".&escape($folder), |
text=>"Display All Messages"}); |
text=>"Display all Messages"}); |
&printheader($r,'/adm/email?compose=multiforward', |
&printheader($r,'/adm/email?compose=multiforward', |
'Forwarding Multiple Messages'); |
'Forwarding Multiple Messages'); |
if ($multiforward > 1) { |
if ($multiforward > 1) { |
Line 1319 sub compout {
|
Line 1324 sub compout {
|
if ($group eq '') { |
if ($group eq '') { |
my $studentsel = &discourse(\%access_status); |
my $studentsel = &discourse(\%access_status); |
if ($studentsel) { |
if ($studentsel) { |
$r->print('<div class="LC_left_float">'.$studentsel.'</div>'); |
if ($env{'environment.wysiwygeditor'} eq 'on') { |
|
$r->print($studentsel); |
|
} else { |
|
$r->print('<div class="LC_left_float">'.$studentsel.'</div>'); |
|
} |
$hasfloat = 1; |
$hasfloat = 1; |
} |
} |
} else { |
} else { |
Line 1411 ENDREPSCRIPT
|
Line 1420 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) { |
$r->print($broadcast_js.'<div class="LC_left_float">'); |
if ($env{'environment.wysiwygeditor'} eq 'on') { |
|
$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 1520 ENDREPSCRIPT
|
Line 1533 ENDREPSCRIPT
|
$r->print(&recipient_input_row($defdom,%lt)); |
$r->print(&recipient_input_row($defdom,%lt)); |
} |
} |
} |
} |
my $latexHelp = &Apache::loncommon::helpLatexCheatsheet(); |
my $latexHelp = &Apache::loncommon::helpLatexCheatsheet(undef,undef,1); |
my $wysiwyglink=&Apache::lonhtmlcommon::htmlareaselectactive('message').'<br />'; |
my $wysiwyglink=&Apache::lonhtmlcommon::htmlareaselectactive('message').'<br />'; |
my $subj_size; |
my $subj_size; |
if ($multiforward) { |
if ($multiforward) { |
Line 1617 ENDUPLOAD
|
Line 1630 ENDUPLOAD
|
} |
} |
$r->print('</form>'); |
$r->print('</form>'); |
if ($hasfloat) { |
if ($hasfloat) { |
$r->print('</div><div class="LC_clear_float_footer"></div>'); |
unless($env{'environment.wysiwygeditor'} eq 'on') { |
|
$r->print('</div><div class="LC_clear_float_footer"></div>'); |
|
} |
} |
} |
$r->print(&generate_preview_form); |
$r->print(&generate_preview_form); |
} |
} |
Line 1667 sub additional_rec_row {
|
Line 1682 sub additional_rec_row {
|
<tr><td colspan="3"><fieldset id="LC_additionalrecips"><legend><b>$lt->{'ad'}</b> <tt>($exmpl)</tt>:</legend><table> |
<tr><td colspan="3"><fieldset id="LC_additionalrecips"><legend><b>$lt->{'ad'}</b> <tt>($exmpl)</tt>:</legend><table> |
<tr><td> </td><td>$lt->{'to'}</td><td><input type="text" size="50" name="additionalrec_to" /></td></tr> |
<tr><td> </td><td>$lt->{'to'}</td><td><input type="text" size="50" name="additionalrec_to" /></td></tr> |
<tr><td> </td><td>$cc</td><td><input type="text" size="50" name="additionalrec_cc" /></td></tr> |
<tr><td> </td><td>$cc</td><td><input type="text" size="50" name="additionalrec_cc" /></td></tr> |
<tr><td> </td><td>$bcc</td><td><input type="text" size="50" name="additionalrec_bcc" /></td></tr></table></fieldset> |
<tr><td> </td><td>$bcc</td><td><input type="text" size="50" name="additionalrec_bcc" /></td></tr></table></fieldset></td></tr> |
ENDADD |
ENDADD |
return $output; |
return $output; |
} |
} |
Line 1813 $content{'sendername'}.':'.
|
Line 1828 $content{'sendername'}.':'.
|
} |
} |
# Check to see if there were any messages. |
# Check to see if there were any messages. |
if ($result eq '') { |
if ($result eq '') { |
my $lctype = lc(&Apache::loncommon::course_type()); |
my $lctype = &mt(lc(&Apache::loncommon::course_type())); |
if ($target ne 'tex') { |
if ($target ne 'tex') { |
$r->print("<p><b>".&mt('No notes, face-to-face discussion records, critical messages, or broadcast messages in this [_1].',$lctype)."</b></p>"); |
$r->print("<p><b>".&mt('No notes, face-to-face discussion records, critical messages, or broadcast messages in this [_1].',$lctype)."</b></p>"); |
} else { |
} else { |
Line 2377 sub displaymessage {
|
Line 2392 sub displaymessage {
|
$bcclist = join(', ',@{$recipients{'bcc'}}); |
$bcclist = join(', ',@{$recipients{'bcc'}}); |
} |
} |
} |
} |
if (!$tolist && ref($content{'recuser'}) eq 'ARRAY') { |
|
|
my $broadcast_link; |
|
if (($content{'courseid'}) && ($content{'recipid'} && |
|
(ref($recipients{'course_broadcast'}) eq 'ARRAY') || |
|
(ref($recipients{'group_cc_broadcast'}) eq 'ARRAY') || |
|
(ref($recipients{'group_bcc_broadcast'}) eq 'ARRAY'))) { |
|
$broadcast_link = &recipients_link($r,\%content,\%recipients); |
|
} |
|
|
|
if (((!$tolist) && (!$broadcast_link)) && ref($content{'recuser'}) eq 'ARRAY') { |
my @recipients; |
my @recipients; |
for (my $i=0; $i<@{$content{'recuser'}}; $i++) { |
for (my $i=0; $i<@{$content{'recuser'}}; $i++) { |
$recipients[$i] = &Apache::loncommon::aboutmewrapper( |
$recipients[$i] = &Apache::loncommon::aboutmewrapper( |
Line 2404 sub displaymessage {
|
Line 2428 sub displaymessage {
|
$r->print(&Apache::loncommon::student_image_tag($content{'senderdomain'},$content{'sendername'}).'</br>'); |
$r->print(&Apache::loncommon::student_image_tag($content{'senderdomain'},$content{'sendername'}).'</br>'); |
} |
} |
|
|
my $broadcast_link; |
|
if (($content{'courseid'}) && ($content{'recipid'} && |
|
(ref($recipients{'course_broadcast'}) eq 'ARRAY') || |
|
(ref($recipients{'group_cc_broadcast'}) eq 'ARRAY') || |
|
(ref($recipients{'group_bcc_broadcast'}) eq 'ARRAY'))) { |
|
$broadcast_link = &recipients_link($r,\%content,\%recipients); |
|
} |
|
|
|
# Display LON-CAPA Message (Start) |
# Display LON-CAPA Message (Start) |
# Subject |
# Subject |
$r->print('</div>' |
$r->print('</div>' |
Line 2422 sub displaymessage {
|
Line 2438 sub displaymessage {
|
); |
); |
if ($folder eq 'sent') { |
if ($folder eq 'sent') { |
# To |
# To |
$r->print(&Apache::lonhtmlcommon::row_title(&mt('To')) |
if ($tolist) { |
.$tolist |
$r->print(&Apache::lonhtmlcommon::row_title(&mt('To')) |
.&Apache::lonhtmlcommon::row_closure() |
.$tolist |
); |
.&Apache::lonhtmlcommon::row_closure() |
|
); |
|
} |
if ($cclist) { |
if ($cclist) { |
$r->print(&Apache::lonhtmlcommon::row_title(&mt('Cc')) |
$r->print(&Apache::lonhtmlcommon::row_title(&mt('Cc')) |
.$cclist |
.$cclist |
Line 2679 sub recipients_link {
|
Line 2697 sub recipients_link {
|
$nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
$nothing=&Apache::lonhtmlcommon::javascript_nothing(); |
$height = 400; |
$height = 400; |
$width = 600; |
$width = 600; |
my $start_page = |
$start_page = |
&Apache::loncommon::start_page('Broadcast List', undef, |
&Apache::loncommon::start_page('Broadcast List', undef, |
{only_body => 1, |
{only_body => 1, |
js_ready => 1,}); |
js_ready => 1,}); |
my $end_page = &Apache::loncommon::end_page({js_ready => 1,}); |
$end_page = &Apache::loncommon::end_page({js_ready => 1,}); |
my $body = '<h3>'.&mt("Recipients of broadcast message").'</h3>'. |
$body = '<h3>'.&mt("Recipients of broadcast message").'</h3>'. |
&Apache::loncommon::start_data_table(); |
&Apache::loncommon::start_data_table(); |
my $cell = 0; |
my $cell = 0; |
$body .= &Apache::loncommon::start_data_table_row(); |
$body .= &Apache::loncommon::start_data_table_row(); |
foreach my $item (@{$recipients->{$show.'_broadcast'}}) { |
foreach my $item (@{$recipients->{$show.'_broadcast'}}) { |
Line 3501 sub handler {
|
Line 3519 sub handler {
|
&Apache::loncommunicate::menu($r); |
&Apache::loncommunicate::menu($r); |
&disall($r,$showfolder,$msgstatus); |
&disall($r,$showfolder,$msgstatus); |
} else { |
} else { |
&printheader($r,'','Display All Messages'); |
&printheader($r,'','Display all Messages'); |
&Apache::loncommunicate::menu($r); |
&Apache::loncommunicate::menu($r); |
&disall($r,($folder?$folder:$dismode),$msgstatus); |
&disall($r,($folder?$folder:$dismode),$msgstatus); |
} |
} |