--- loncom/interface/statistics/lonstudentassessment.pm 2003/06/18 12:55:52 1.61
+++ loncom/interface/statistics/lonstudentassessment.pm 2003/09/03 18:23:10 1.66
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonstudentassessment.pm,v 1.61 2003/06/18 12:55:52 www Exp $
+# $Id: lonstudentassessment.pm,v 1.66 2003/09/03 18:23:10 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -138,7 +138,16 @@ Inputs:
#######################################################
sub BuildStudentAssessmentPage {
my ($r,$c)=@_;
+
undef($Statistics);
+ undef($show_links);
+ undef($output_mode);
+ undef($data);
+ undef($base);
+ undef($datadescription);
+ undef($single_student_mode);
+
+ $single_student_mode = 0;
$single_student_mode = 1 if ($ENV{'form.SelectedStudent'});
if ($ENV{'form.selectstudent'}) {
&Apache::lonstatistics::DisplayClasslist($r);
@@ -582,6 +591,7 @@ sub html_initialize {
$padding = ' 'x3;
$count = 0;
$nodata_count = 0;
+ undef(%prog_state);
#
$r->print("
".$ENV{'course.'.$ENV{'request.course.id'}.'.description'}.
" ".localtime(time)."
");
@@ -833,7 +843,14 @@ my $request_aborted;
sub excel_initialize {
my ($r) = @_;
#
- $request_aborted = undef;
+ undef ($excel_sheet);
+ undef ($excel_workbook);
+ undef ($filename);
+ undef ($rows_output);
+ undef ($cols_output);
+ undef (%prog_state);
+ undef ($request_aborted);
+ #
my $total_columns = scalar(&get_student_fields_to_show());
foreach my $seq (&Apache::lonstatistics::Sequences_with_Assess()) {
# Add 2 because we need a 'sum' and 'total' column for each
@@ -1057,6 +1074,8 @@ END
($r,'Excel File Compilation Status',
'Excel File Compilation Progress', $studentcount);
#
+ &Apache::lonhtmlcommon::Update_PrgWin($r,\%prog_state,
+ 'Processing first student');
return;
}
@@ -1168,8 +1187,9 @@ sub csv_initialize{
my ($r) = @_;
#
# Clean up
- $filename = undef;
- $outputfile = undef;
+ undef($outputfile);
+ undef($filename);
+ undef($request_aborted);
undef(%prog_state);
#
# Deal with unimplemented requests
@@ -1426,7 +1446,7 @@ sub StudentTriesOnSequence {
$symbol = ''.$symbol.'';
}
$value .= $symbol;
@@ -1498,7 +1518,7 @@ sub StudentPerformanceOnSequence {
#
$partscore = $weight*$awarded;
$score += $partscore;
- $symbol = $weight;
+ $symbol = $partscore;
if (length($symbol) > 1) {
$symbol = '*';
}
@@ -1526,7 +1546,7 @@ sub StudentPerformanceOnSequence {
$symbol = ''.$symbol.'';
}
$Str .= $symbol;