--- loncom/interface/lonselstudent.pm 2008/06/06 19:12:59 1.12 +++ loncom/interface/lonselstudent.pm 2008/11/04 03:25:53 1.13 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # lonselstudent.pm : Reusable subs for student selection. # -# $Id: lonselstudent.pm,v 1.12 2008/06/06 19:12:59 bisitz Exp $ +# $Id: lonselstudent.pm,v 1.13 2008/11/04 03:25:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -178,12 +178,14 @@ sub get_people_in_class { # This should be true for the first call for a page # and false for all other calls... only matters if # multiselect is true. +# $context - If email, do not include

tags at the end +# of the data table. # Returns: # HTML text to add to the rendering of the helper. # sub render_student_list { my ($students, $formname, $formprefix, $defaultusers, - $multiselect, $resultname, $javascript) = @_; + $multiselect, $resultname, $javascript, $context) = @_; my $result = ""; @@ -330,7 +332,7 @@ SCRIPT foreach my $sec (sort {lc($a) cmp lc($b)} (keys(%sections))) { $result .= ''."\n"; } - $result .= ''; + $result .= ''; $result .= ''; $result .= '
\n"; + $result .= &Apache::loncommon::end_data_table(); + if ($context ne 'email') { + $result .= "

\n"; + } return $result; }