version 1.43, 2008/10/16 16:35:53
|
version 1.48, 2009/05/16 23:21:00
|
Line 81 sub real_handler {
|
Line 81 sub real_handler {
|
my $res = $navmap->firstResource(); # temp resource to access constants |
my $res = $navmap->firstResource(); # temp resource to access constants |
|
|
# Header |
# Header |
my $title = $showPoints ? "Points Display" : "Completed Problems Display"; |
my $title = "Grading and Statistics";#$showPoints ? "Points Display" : "Completed Problems Display"; |
$r->print(&Apache::loncommon::start_page($title)); |
my $brcrum = [{href=>"/adm/quickgrades",text => "Points Display"}]; |
|
$r->print(&Apache::loncommon::start_page($title,undef, |
|
{'bread_crumbs' => $brcrum}) |
|
); |
|
|
if (!$showPoints && !$notshowSPRSlink ) { |
if (!$showPoints && !$notshowSPRSlink ) { |
$r->print('<p>' |
$r->print('<p>' |
Line 256 sub real_handler {
|
Line 259 sub real_handler {
|
|
|
$r->print("$thisIndent$title</td>"); |
$r->print("$thisIndent$title</td>"); |
if ($totalAttempted) { |
if ($totalAttempted) { |
$r->print("<td valign='top'>$thisIndent<nobr>$correct / $attempted / $total</nobr></td>" |
$r->print('<td valign="top">' |
.&Apache::loncommon::end_data_table_row()); |
.$thisIndent |
|
.'<span class="LC_nobreak">' |
|
.$correct.' / '.$attempted.' / '.$total |
|
.'</span></td>' |
|
.&Apache::loncommon::end_data_table_row() |
|
); |
} else { |
} else { |
$r->print("<td valign='top'>$thisIndent<nobr>$correct / $total</nobr></td>" |
$r->print('<td valign="top">' |
|
.$thisIndent |
|
.'<span class="LC_nobreak">' |
|
.$correct.' / '.$total |
|
.'</span></td>' |
.&Apache::loncommon::end_data_table_row()); |
.&Apache::loncommon::end_data_table_row()); |
} |
} |
} |
} |
Line 285 sub real_handler {
|
Line 297 sub real_handler {
|
$title = $showPoints ? "Points" : "Parts Done"; |
$title = $showPoints ? "Points" : "Parts Done"; |
my $totaltitle = $showPoints ? &mt("Awarded Total Points") : &mt("Total Parts Done"); |
my $totaltitle = $showPoints ? &mt("Awarded Total Points") : &mt("Total Parts Done"); |
$r->print(&Apache::loncommon::start_data_table_row() |
$r->print(&Apache::loncommon::start_data_table_row() |
.'<td colspan="2" align="right">'.$totaltitle.': <b>'.$totalRight.'</b><br>'); |
.'<td colspan="2" align="right">'.$totaltitle.': <b>'.$totalRight.'</b><br />'); |
$r->print(&mt("Max Possible To Date")." $maxHelpLink: <b>$totalPossible</b><br>"); |
$r->print(&mt('Max Possible To Date')." $maxHelpLink: <b>$totalPossible</b><br />"); |
$title = $showPoints ? "Points" : "Parts"; |
$title = $showPoints ? "Points" : "Parts"; |
$r->print(&mt("Total $title In Course").': <b>'.$totalParts.'</b></td>' |
$r->print(&mt("Total $title In Course").': <b>'.$totalParts.'</b></td>' |
.&Apache::loncommon::end_data_table_row()); |
.&Apache::loncommon::end_data_table_row()); |