--- loncom/interface/statistics/lonstudentassessment.pm 2006/05/30 12:46:50 1.140
+++ loncom/interface/statistics/lonstudentassessment.pm 2023/07/10 02:33:06 1.169.2.7.2.1
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstudentassessment.pm,v 1.140 2006/05/30 12:46:50 www Exp $
+# $Id: lonstudentassessment.pm,v 1.169.2.7.2.1 2023/07/10 02:33:06 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -166,6 +166,8 @@ sub BuildStudentAssessmentPage {
&Apache::lonstatistics::DisplayClasslist($r);
return;
}
+ $r->print(&Apache::lonhtmlcommon::breadcrumbs('Chart','Chart_Description:Chart_Sections:Chart_Student_Data:Chart_Enrollment_Status:Chart_Sequences:Chart_Output_Formats:Chart_Output_Data'));
+
#
# Print out the HTML headers for the interface
# This also parses the output mode selector
@@ -248,14 +250,14 @@ sub next_and_previous_buttons {
if (defined($previous)) {
my $sname = $previous->{'username'}.':'.$previous->{'domain'};
$previousbutton .= ' ';
} else {
$previousbutton .= ' ';
+ &mt('Previous Student').'" disabled="disabled" />';
}
#
# Build the next student link
@@ -264,20 +266,20 @@ sub next_and_previous_buttons {
if (defined($next)) {
my $sname = $next->{'username'}.':'.$next->{'domain'};
$nextbutton .= ' ';
} else {
$nextbutton .= ' ';
+ &mt('Next Student').'" disabled="disabled" />';
}
#
# Build the 'all students' button
my $all = '';
- $all .= ' ';
$Str .= $previousbutton.(' 'x5).$all.(' 'x5).$nextbutton;
return $Str;
@@ -318,15 +320,22 @@ the chart page.
#######################################################
sub CreateInterface {
my $Str = '';
- $Str .= &Apache::lonhtmlcommon::breadcrumbs('Chart');
-# $Str .= &CreateLegend();
$Str .= '
'."\n";
$Str .= '';
- $Str .= ''.&mt('Sections').' ';
- $Str .= ''.&mt('Groups').' ';
- $Str .= ''.&mt('Student Data ').' ';
- $Str .= ''.&mt('Enrollment Status').' ';
- $Str .= ''.&mt('Sequences and Folders').' ';
+ $Str .= ''.&mt('Sections').' '.
+ &Apache::loncommon::help_open_topic("Chart_Sections").
+ ' ';
+ $Str .= ''.&mt('Groups').' '.
+ ' ';
+ $Str .= ''.&mt('Student Data').' '.
+ &Apache::loncommon::help_open_topic("Chart_Student_Data").
+ ' ';
+ $Str .= ''.&mt('Access Status').' '.
+ &Apache::loncommon::help_open_topic("Chart_Enrollment_Status").
+ ' ';
+ $Str .= ''.&mt('Sequences and Folders').' '.
+ &Apache::loncommon::help_open_topic("Chart_Sequences").
+ ' ';
$Str .= ''.&mt('Output Format').' '.
&Apache::loncommon::help_open_topic("Chart_Output_Formats").
' ';
@@ -352,19 +361,15 @@ sub CreateInterface {
$Str .= &CreateAndParseOutputDataSelector();
$Str .= ' '."\n";
$Str .= '
'."\n";
- $Str .= ' ';
- $Str .= ' 'x5;
$Str .= ' ';
$Str .= ' 'x5;
$Str .= ' ';
- $Str .= ' 'x5;
- $Str .=
- &mt('Status [_1]',
- ' ');
- $Str .= ' ';
+ $Str .= ''
+ .' '
+ .'
';
return $Str;
}
@@ -422,7 +427,7 @@ my @OutputOptions =
sub OutputDescriptions {
my $Str = '';
- $Str .= "Output Formats \n";
+ $Str .= ''.&mt('Output Formats')." \n";
$Str .= "\n";
foreach my $outputmode (@OutputOptions) {
$Str .=" ".$outputmode->{'name'}." \n";
@@ -457,7 +462,7 @@ sub CreateAndParseOutputSelector {
$Str = qq//;
foreach my $option (@OutputOptions) {
$Str .= "\n".' {'value'} eq $selected);
+ $Str .= ' selected="selected"' if ($option->{'value'} eq $selected);
$Str .= ">".&mt($option->{'name'})."<\/option>";
}
$Str .= "\n ";
@@ -537,7 +542,7 @@ my @OutputDataOptions =
summary_table => 1,
maximum_row => 0,
ignore_weight => 1,
- shortdesc => 'Number of Problem Parts completed successfully.',
+ shortdesc => 'Number of Problem Parts completed successfully',
longdesc => 'The Number of Problem Parts completed successfully and '.
'the maximum possible for each student',
},
@@ -545,7 +550,7 @@ my @OutputDataOptions =
sub HTMLifyOutputDataDescriptions {
my $Str = '';
- $Str .= "Output Data \n";
+ $Str .= ''.&mt('Output Data').' '."\n";
$Str .= "\n";
foreach my $option (@OutputDataOptions) {
$Str .= ' '.$option->{'name'}.' ';
@@ -574,7 +579,7 @@ sub CreateAndParseOutputDataSelector {
$Str = qq//;
foreach my $option (@OutputDataOptions) {
$Str .= "\n".' {'value'} eq $chosen_output->{'value'});
+ $Str .= ' selected="selected"' if ($option->{'value'} eq $chosen_output->{'value'});
$Str .= ">".&mt($option->{'name'})."<\/option>";
}
$Str .= "\n ";
@@ -654,28 +659,30 @@ sub html_initialize {
&Apache::lonstatistics::selected_sequences_with_assessments();
if (! ref($navmap)) {
# Unable to get data, so bail out
- $r->print("".
- &mt('Unable to retrieve course information.').
- ' ');
+ $r->print(''
+ .&mt('Unable to retrieve course information.')
+ .'
');
}
# If we're showing links, show a checkbox to open in new
# windows.
if ($show_links ne 'no') {
+ my $labeltext = &mt('Show links in new window');
$r->print(<new_window = true;
-Show links in new window:
-
+
+
+$labeltext
NEW_WINDOW_CHECKBOX
}
#
$r->print("".$env{'course.'.$env{'request.course.id'}.'.description'}.
- " ".localtime(time)." ");
+ " ".&Apache::lonlocal::locallocaltime(time)."");
#
if ($chosen_output->{'base'} !~ /^final table/) {
- $r->print("".$chosen_output->{'shortdesc'}." ");
+ $r->print("".&mt($chosen_output->{'shortdesc'})." ");
}
my $Str = "\n";
# First, the @StudentData fields need to be listed
@@ -703,8 +710,8 @@ NEW_WINDOW_CHECKBOX
$width{$symb}->{'width_sum'} += 1;
}
$total_count += &count_parts($navmap,$seq);
- # Use 3 digits for the sum
- $width{$symb}->{'width_sum'} += 3;
+ # Use 6 digits for the sum
+ $width{$symb}->{'width_sum'} += 6;
}
# Compute width of maximum
if ($chosen_output->{'sequence_max'}) {
@@ -712,8 +719,8 @@ NEW_WINDOW_CHECKBOX
# One digit for the '/'
$width{$symb}->{'width_sum'} +=1;
}
- # Use 3 digits for the total
- $width{$symb}->{'width_sum'}+=3;
+ # Use 6 digits for the total
+ $width{$symb}->{'width_sum'}+=6;
}
#
if ($chosen_output->{'every_problem'}) {
@@ -734,14 +741,15 @@ NEW_WINDOW_CHECKBOX
length($title)
)).$padding;
}
- $total_sum_width = length($total_count)+1;
+ $total_sum_width = length($total_count);
+ if ($total_sum_width < 6) {
+ $total_sum_width = 6;
+ }
$Str .= " total \n";
$Str .= "";
- $r->print($Str);
- $r->rflush();
$r->print(<
+