version 1.135, 2006/05/18 01:08:50
|
version 1.137, 2006/08/18 15:15:38
|
Line 76 use Apache::lonpercentage;
|
Line 76 use Apache::lonpercentage;
|
use Apache::lonstudentsubmissions(); |
use Apache::lonstudentsubmissions(); |
use Apache::lonsurveyreports(); |
use Apache::lonsurveyreports(); |
use Apache::longradinganalysis(); |
use Apache::longradinganalysis(); |
|
use lib '/home/httpd/lib/perl/'; |
|
use LONCAPA; |
|
|
####################################################### |
####################################################### |
####################################################### |
####################################################### |
Line 430 sub get_selected_groups {
|
Line 432 sub get_selected_groups {
|
=item §ion_and_enrollment_description |
=item §ion_and_enrollment_description |
|
|
Returns a string describing the currently selected section(s), group(s) and |
Returns a string describing the currently selected section(s), group(s) and |
enrollment status. |
access status. |
|
|
Inputs: mode = 'plaintext' or 'localized' (defaults to 'localized') |
Inputs: mode = 'plaintext' or 'localized' (defaults to 'localized') |
'plaintext' is used for example in Excel spreadsheets. |
'plaintext' is used for example in Excel spreadsheets. |
Line 447 sub section_and_enrollment_description {
|
Line 449 sub section_and_enrollment_description {
|
my @groups = &Apache::lonstatistics::get_selected_groups(); |
my @groups = &Apache::lonstatistics::get_selected_groups(); |
my $description; |
my $description; |
if ($mode eq 'localized') { |
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') { |
} elsif ($mode eq 'plaintext') { |
$description = 'Unable to determine section, groups and enrollment'; |
$description = 'Unable to determine section, groups and access status'; |
} else { |
} else { |
$description = 'Bad parameter passed to lonstatistics::section_and_enrollment_description'; |
$description = 'Bad parameter passed to lonstatistics::section_and_enrollment_description'; |
&Apache::lonnet::logthis($description); |
&Apache::lonnet::logthis($description); |
Line 457 sub section_and_enrollment_description {
|
Line 459 sub section_and_enrollment_description {
|
$description = §ion_or_group_text($mode,'section',@sections). |
$description = §ion_or_group_text($mode,'section',@sections). |
' '.§ion_or_group_text($mode,'group',@groups); |
' '.§ion_or_group_text($mode,'group',@groups); |
if ($mode eq 'localized') { |
if ($mode eq 'localized') { |
$description .= &mt(' [_1] enrollment status.',$env{'form.Status'}); |
$description .= &mt(' [_1] access status.',$env{'form.Status'}); |
} elsif ($mode eq 'plaintext') { |
} elsif ($mode eq 'plaintext') { |
$description .= ' '.$env{'form.Status'}.' enrollment status.'; |
$description .= ' '.$env{'form.Status'}.' access status.'; |
} |
} |
return $description; |
return $description; |
} |
} |
Line 929 sub DisplayClasslist {
|
Line 931 sub DisplayClasslist {
|
$Str .= '<tr>'; |
$Str .= '<tr>'; |
$Str .= '<th align="center"><b>'.&mt('Sections').'</b></th>'; |
$Str .= '<th align="center"><b>'.&mt('Sections').'</b></th>'; |
$Str .= '<th align="center"><b>'.&mt('Groups').'</b></th>'; |
$Str .= '<th align="center"><b>'.&mt('Groups').'</b></th>'; |
$Str .= '<th align="center"><b>'.&mt('Enrollment Status').'</b></th>'; |
$Str .= '<th align="center"><b>'.&mt('Access Status').'</b></th>'; |
$Str .= '</tr>'.$/; |
$Str .= '</tr>'.$/; |
$Str .= '<tr>'; |
$Str .= '<tr>'; |
$Str .= '<td>'. |
$Str .= '<td>'. |
Line 1018 sub DisplayClasslist {
|
Line 1020 sub DisplayClasslist {
|
$Str .= '<td>'; |
$Str .= '<td>'; |
if ($field eq 'fullname' || $field eq 'username') { |
if ($field eq 'fullname' || $field eq 'username') { |
$Str .= '<a href="/adm/statistics?reportSelected='; |
$Str .= '<a href="/adm/statistics?reportSelected='; |
$Str .= &Apache::lonnet::escape('student_assessment'); |
$Str .= &escape('student_assessment'); |
$Str .= '&sort='.&Apache::lonnet::escape($env{'form.sort'}); |
$Str .= '&sort='.&escape($env{'form.sort'}); |
$Str .= '&SelectedStudent='; |
$Str .= '&SelectedStudent='; |
$Str .= &Apache::lonnet::escape($sname).'">'; |
$Str .= &escape($sname).'">'; |
$Str .= $student->{$field}.' '; |
$Str .= $student->{$field}.' '; |
$Str .= '</a>'; |
$Str .= '</a>'; |
} elsif ($field eq 'status') { |
} elsif ($field eq 'status') { |