--- loncom/interface/lonstatistics.pm 2006/05/18 01:08:50 1.135 +++ loncom/interface/lonstatistics.pm 2006/08/18 15:15:38 1.137 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstatistics.pm,v 1.135 2006/05/18 01:08:50 raeburn Exp $ +# $Id: lonstatistics.pm,v 1.137 2006/08/18 15:15:38 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -76,6 +76,8 @@ use Apache::lonpercentage; use Apache::lonstudentsubmissions(); use Apache::lonsurveyreports(); use Apache::longradinganalysis(); +use lib '/home/httpd/lib/perl/'; +use LONCAPA; ####################################################### ####################################################### @@ -430,7 +432,7 @@ sub get_selected_groups { =item §ion_and_enrollment_description Returns a string describing the currently selected section(s), group(s) and -enrollment status. +access status. Inputs: mode = 'plaintext' or 'localized' (defaults to 'localized') 'plaintext' is used for example in Excel spreadsheets. @@ -447,9 +449,9 @@ sub section_and_enrollment_description { my @groups = &Apache::lonstatistics::get_selected_groups(); my $description; if ($mode eq 'localized') { - $description = &mt('Unable to determine section, groups and enrollment'); + $description = &mt('Unable to determine section, groups and access status'); } elsif ($mode eq 'plaintext') { - $description = 'Unable to determine section, groups and enrollment'; + $description = 'Unable to determine section, groups and access status'; } else { $description = 'Bad parameter passed to lonstatistics::section_and_enrollment_description'; &Apache::lonnet::logthis($description); @@ -457,9 +459,9 @@ sub section_and_enrollment_description { $description = §ion_or_group_text($mode,'section',@sections). ' '.§ion_or_group_text($mode,'group',@groups); if ($mode eq 'localized') { - $description .= &mt(' [_1] enrollment status.',$env{'form.Status'}); + $description .= &mt(' [_1] access status.',$env{'form.Status'}); } elsif ($mode eq 'plaintext') { - $description .= ' '.$env{'form.Status'}.' enrollment status.'; + $description .= ' '.$env{'form.Status'}.' access status.'; } return $description; } @@ -929,7 +931,7 @@ sub DisplayClasslist { $Str .= ''; $Str .= ''.&mt('Sections').''; $Str .= ''.&mt('Groups').''; - $Str .= ''.&mt('Enrollment Status').''; + $Str .= ''.&mt('Access Status').''; $Str .= ''.$/; $Str .= ''; $Str .= ''. @@ -1018,10 +1020,10 @@ sub DisplayClasslist { $Str .= ''; if ($field eq 'fullname' || $field eq 'username') { $Str .= ''; + $Str .= &escape($sname).'">'; $Str .= $student->{$field}.' '; $Str .= ''; } elsif ($field eq 'status') {