--- loncom/interface/statistics/lonstudentassessment.pm 2003/06/11 16:19:39 1.58 +++ loncom/interface/statistics/lonstudentassessment.pm 2003/10/03 15:37:29 1.65.2.1 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonstudentassessment.pm,v 1.58 2003/06/11 16:19:39 matthew Exp $ +# $Id: lonstudentassessment.pm,v 1.65.2.1 2003/10/03 15:37:29 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -138,8 +138,15 @@ Inputs: ####################################################### sub BuildStudentAssessmentPage { my ($r,$c)=@_; + undef($Statistics); + + $single_student_mode = 0; $single_student_mode = 1 if ($ENV{'form.SelectedStudent'}); + if ($ENV{'form.selectstudent'}) { + &Apache::lonstatistics::DisplayClasslist($r); + return; + } # # Print out the HTML headers for the interface # This also parses the output mode selector @@ -187,6 +194,9 @@ sub BuildStudentAssessmentPage { # are immediately reflected in the chart. &Apache::lonnet::clear_EXT_cache_status(); # + # Clean out loncoursedata's package data, just to be safe. + &Apache::loncoursedata::clear_internal_caches(); + # # Call the initialize routine selected above $initialize->($r); foreach my $student (@Students) { @@ -326,7 +336,13 @@ sub CreateInterface { $Str .= ''."\n"; $Str .= ''."\n"; $Str .= ''; - $Str .= ' 'x8; + $Str .= ' 'x5; + $Str .= ''; + $Str .= ' 'x5; + $Str .= ''; + $Str .= ' 'x5; + $Str .= '
'; return $Str; } @@ -1047,6 +1063,8 @@ END ($r,'Excel File Compilation Status', 'Excel File Compilation Progress', $studentcount); # + &Apache::lonhtmlcommon::Update_PrgWin($r,\%prog_state, + 'Processing first student'); return; } @@ -1416,7 +1434,7 @@ sub StudentTriesOnSequence { $symbol = ''.$symbol.''; } $value .= $symbol; @@ -1488,7 +1506,7 @@ sub StudentPerformanceOnSequence { # $partscore = $weight*$awarded; $score += $partscore; - $symbol = $weight; + $symbol = $partscore; if (length($symbol) > 1) { $symbol = '*'; } @@ -1507,19 +1525,20 @@ sub StudentPerformanceOnSequence { } } # + if (! defined($partscore)) { + $partscore = $symbol; + } + push (@ScoreData,$partscore); + # if ( ($links eq 'yes' && $symbol ne ' ') || ($links eq 'all')) { $symbol = ''.$symbol.''; } - if (! defined($partscore)) { - $partscore = $symbol; - } - push (@ScoreData,$partscore); + $Str .= $symbol; } - $Str .= $symbol; } return ($Str,$performance_length,$score,$max,\@ScoreData); }