version 1.97, 2004/03/10 18:41:37
|
version 1.100, 2004/04/01 18:49:39
|
Line 153 sub BuildStudentAssessmentPage {
|
Line 153 sub BuildStudentAssessmentPage {
|
# |
# |
$single_student_mode = 0; |
$single_student_mode = 0; |
$single_student_mode = 1 if ($ENV{'form.SelectedStudent'}); |
$single_student_mode = 1 if ($ENV{'form.SelectedStudent'}); |
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
|
['selectstudent']); |
if ($ENV{'form.selectstudent'}) { |
if ($ENV{'form.selectstudent'}) { |
&Apache::lonstatistics::DisplayClasslist($r); |
&Apache::lonstatistics::DisplayClasslist($r); |
return; |
return; |
Line 632 sub html_initialize {
|
Line 634 sub html_initialize {
|
# Comptue column widths |
# Comptue column widths |
$sequence->{'width_sum'} = 0; |
$sequence->{'width_sum'} = 0; |
if ($chosen_output->{'sequence_sum'}) { |
if ($chosen_output->{'sequence_sum'}) { |
|
if ($chosen_output->{'every_problem'}) { |
|
# Use 1 digit for a space |
|
$sequence->{'width_sum'} += 1; |
|
} |
# Use 3 digits for the sum |
# Use 3 digits for the sum |
$sequence->{'width_sum'} = 3; |
$sequence->{'width_sum'} += 3; |
} |
} |
if ($chosen_output->{'sequence_max'}) { |
if ($chosen_output->{'sequence_max'}) { |
if ($sequence->{'width_sum'}>0) { |
if ($sequence->{'width_sum'}>0) { |
Line 715 sub html_outputstudent {
|
Line 721 sub html_outputstudent {
|
$seq,$show_links); |
$seq,$show_links); |
} |
} |
my $ratio=''; |
my $ratio=''; |
|
if ($chosen_output->{'every_problem'}) { |
|
$ratio .= ' '; |
|
} |
if ($chosen_output->{'sequence_sum'} && $score ne ' ') { |
if ($chosen_output->{'sequence_sum'} && $score ne ' ') { |
$ratio .= sprintf("%3d",$score); |
$ratio .= sprintf("%3.0f",$score); |
} else { |
} elsif($chosen_output->{'sequence_sum'}) { |
$ratio .= ' 'x3; |
$ratio .= ' 'x3; |
} |
} |
if ($chosen_output->{'sequence_max'}) { |
if ($chosen_output->{'sequence_max'}) { |
if ($chosen_output->{'sequence_sum'}) { |
if ($chosen_output->{'sequence_sum'}) { |
$ratio .= '/'; |
$ratio .= '/'; |
} |
} |
$ratio .= sprintf("%3d",$seq_max); |
$ratio .= sprintf("%3.0f",$seq_max); |
} |
} |
# |
# |
if (! $chosen_output->{'every_problem'}) { |
if (! $chosen_output->{'every_problem'}) { |