--- loncom/interface/lonstatistics.pm 2003/04/21 15:12:37 1.67 +++ loncom/interface/lonstatistics.pm 2003/05/12 22:07:17 1.68 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.67 2003/04/21 15:12:37 matthew Exp $ +# $Id: lonstatistics.pm,v 1.68 2003/05/12 22:07:17 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -240,6 +240,10 @@ sub PrepareClasslist { } # + # get the status requested + my $requested_status = 'Active'; + $requested_status = $ENV{'form.Status'} if (exists($ENV{'form.Status'})); + # # Process the classlist while (my ($student,$student_data) = each (%$classlist)) { my $studenthash = (); @@ -266,7 +270,11 @@ sub PrepareClasslist { # # Only put in the list those students we are interested in foreach my $sect (@SelectedSections) { - if (($sect eq 'all') || ($section eq $sect)) { + if ( (($sect eq 'all') || + ($section eq $sect)) && + (($studenthash->{'status'} eq $requested_status) || + ($requested_status eq 'Any')) + ){ push (@Students,$studenthash); last; } @@ -834,7 +842,6 @@ sub CreateMainMenu { $Str .= ''."\n"; $Str .= ''."\n"; $Str .= 'Select a Report'."\n"; - $Str .= 'Student Status'."\n"; $Str .= ''."\n"; # $Str .= ''. @@ -855,10 +862,6 @@ sub CreateMainMenu { } $Str .= ''."\n"; # - $Str .= ''; - $Str .= &Apache::lonhtmlcommon::StatusOptions($status, 'Statistics'); - $Str .= ''."\n"; - # $Str .= ''."\n"; $Str .= '
'."\n"; #