--- loncom/interface/lonmsgdisplay.pm 2007/05/05 06:13:46 1.79
+++ loncom/interface/lonmsgdisplay.pm 2008/06/06 17:46:15 1.87
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging display
#
-# $Id: lonmsgdisplay.pm,v 1.79 2007/05/05 06:13:46 albertel Exp $
+# $Id: lonmsgdisplay.pm,v 1.87 2008/06/06 17:46:15 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -513,22 +513,34 @@ sub discourse {
$result .= ' '."\n";
- $result .= &Apache::lonselstudent::render_student_list($current_members,
- "compemail",
- "current",
- \%defaultUsers,
- 1,"selectedusers",1);
-
- $result .= &Apache::lonselstudent::render_student_list($expired_members,
- "compemail",
- "expired",
- \%defaultUsers,
- 1, "selectedusers",0);
- $result .= &Apache::lonselstudent::render_student_list($future_members,
- "compemail",
- "future",
- \%defaultUsers,
- 1, "selectedusers", 0);
+ my $tmptext;
+ if ($tmptext = &Apache::lonselstudent::render_student_list($current_members,
+ "compemail",
+ "current",
+ \%defaultUsers,
+ 1,"selectedusers",1)
+ ) {
+ $result .= '
'.&mt('Course members with current access').' ';
+ $result .= $tmptext;
+ }
+ if ($tmptext = &Apache::lonselstudent::render_student_list($expired_members,
+ "compemail",
+ "expired",
+ \%defaultUsers,
+ 1, "selectedusers",0)
+ ) {
+ $result .= ''.&mt('Course members with expired access').' ';
+ $result .= $tmptext;
+ }
+ if ($tmptext = &Apache::lonselstudent::render_student_list($future_members,
+ "compemail",
+ "future",
+ \%defaultUsers,
+ 1, "selectedusers", 0)
+ ) {
+ $result .= ''.&mt('Course members with future access').' ';
+ $result .= $tmptext;
+ }
return $result;
}
@@ -555,7 +567,7 @@ sub disgroup {
'recipients to select.');
return $result;
} else {
- $result = &mt('Select message recipients from the group members listed below. ');
+ $result = &mt('Select message recipients from the group members listed below.').' ';
my %Sortby = (
active => {},
previous => {},
@@ -737,7 +749,7 @@ $content{'sendername'}.':'.
' '.&mt('Subject').': '.$content{'subject'}.
''.
&Apache::lontexconvert::msgtexconverted($content{'message'}).
- ' ';
+ ' ';
my ($rec_button,$reprec_button);
$rec_button = &mt('Move to Inbox');
if (!$content{'noreplies'}) {
@@ -752,7 +764,7 @@ $content{'sendername'}.':'.
} else {
$result .= &mt('Access to other pages will be prevented until you have moved the message to your inbox.');
}
- $result .= ' '.
+ $result .= '
'.
' ';
if (!$content{'noreplies'}) {
$result .= ' 'scalar',
- 'msgstatus' => 'scalar',
+ my %saveable = ('msgstatus' => 'scalar',
'sortedby' => 'scalar',
'interdis' => 'scalar',
);
@@ -930,16 +941,6 @@ sub disfolder {