[LON-CAPA-cvs] cvs: loncom /interface lonmsgdisplay.pm
bisitz
lon-capa-cvs-allow@mail.lon-capa.org
Fri, 06 Jun 2008 17:46:17 -0000
bisitz Fri Jun 6 13:46:17 2008 EDT
Modified files:
/loncom/interface lonmsgdisplay.pm
Log:
When creating a broadcast message the recipient lists now have headlines (current, expired, future)
Index: loncom/interface/lonmsgdisplay.pm
diff -u loncom/interface/lonmsgdisplay.pm:1.86 loncom/interface/lonmsgdisplay.pm:1.87
--- loncom/interface/lonmsgdisplay.pm:1.86 Fri Jun 6 01:24:28 2008
+++ loncom/interface/lonmsgdisplay.pm Fri Jun 6 13:46:15 2008
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Routines for messaging display
#
-# $Id: lonmsgdisplay.pm,v 1.86 2008/06/06 05:24:28 raeburn 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 @@
$result .= '<input type="hidden" name="sendmode" value="group" />'."\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 .= '<h2>'.&mt('Course members with current access').'</h2>';
+ $result .= $tmptext;
+ }
+ if ($tmptext = &Apache::lonselstudent::render_student_list($expired_members,
+ "compemail",
+ "expired",
+ \%defaultUsers,
+ 1, "selectedusers",0)
+ ) {
+ $result .= '<h2>'.&mt('Course members with expired access').'</h2>';
+ $result .= $tmptext;
+ }
+ if ($tmptext = &Apache::lonselstudent::render_student_list($future_members,
+ "compemail",
+ "future",
+ \%defaultUsers,
+ 1, "selectedusers", 0)
+ ) {
+ $result .= '<h2>'.&mt('Course members with future access').'</h2>';
+ $result .= $tmptext;
+ }
return $result;
}