version 1.32, 2004/10/07 22:12:47
|
version 1.34, 2005/01/01 18:54:52
|
Line 170 HEADER
|
Line 170 HEADER
|
my $status = $curRes->simpleStatus($part); |
my $status = $curRes->simpleStatus($part); |
my $thisright = 0; |
my $thisright = 0; |
$partsCount++; |
$partsCount++; |
if ($status == $curRes->CORRECT || |
if ($status == $curRes->CORRECT ) { |
$status == $curRes->INCORRECT ) { |
|
$partsRight++; |
$partsRight++; |
$totalRight++; |
$totalRight++; |
$thisright = 1; |
$thisright = 1; |
Line 274 HEADER
|
Line 273 HEADER
|
$r->print("$topLevelRight / $topLevelParts</td></tr>"); |
$r->print("$topLevelRight / $topLevelParts</td></tr>"); |
} |
} |
|
|
my $maxHelpLink = Apache::loncommon::help_open_topic("Quick_Grades_Possibly_Correct"); |
unless ($notshowSPRSlink) { |
|
my $maxHelpLink = Apache::loncommon::help_open_topic("Quick_Grades_Possibly_Correct"); |
$title = $showPoints ? "Points" : "Parts Done"; |
|
|
|
$r->print("<tr><td colspan='2' align='right'>Total $title: <b>$totalRight</b><br>"); |
|
$r->print(&mt("Max Possible To Date")." $maxHelpLink: <b>$totalPossible</b><br>"); |
|
$title = $showPoints ? "Points" : "Parts"; |
|
$r->print(&mt("Total $title In Course").": <b>$totalParts</b></td></tr>\n\n"); |
|
|
|
|
$title = $showPoints ? "Points" : "Parts Done"; |
|
|
|
$r->print("<tr><td colspan='2' align='right'>Total $title: <b>$totalRight</b><br>"); |
|
$r->print(&mt("Max Possible To Date")." $maxHelpLink: <b>$totalPossible</b><br>"); |
|
$title = $showPoints ? "Points" : "Parts"; |
|
$r->print(&mt("Total $title In Course").": <b>$totalParts</b></td></tr>\n\n"); |
|
} |
|
|
$r->print("</table></body></html>"); |
$r->print("</table></body></html>"); |
|
|