--- loncom/homework/grades.pm 2007/11/08 01:48:18 1.485
+++ loncom/homework/grades.pm 2007/11/08 19:57:30 1.486
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Grading handler
#
-# $Id: grades.pm,v 1.485 2007/11/08 01:48:18 albertel Exp $
+# $Id: grades.pm,v 1.486 2007/11/08 19:57:30 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -745,6 +745,19 @@ sub verifyreceipt {
$env{"course.$courseid.receiptalg"} eq 'receipt3') { $receiptparts=1; }
my $parts=['0'];
if ($receiptparts) { ($parts)=&response_type($symb); }
+
+ my $header =
+ &Apache::loncommon::start_data_table().
+ &Apache::loncommon::start_data_table_header_row().
+ '
Fullname | '."\n".
+ ' Username | '."\n".
+ ' Domain | ';
+ if ($receiptparts) {
+ $header.=' Problem Part | ';
+ }
+ $header.=
+ &Apache::loncommon::end_data_table_header_row();
+
foreach (sort
{
if (lc($$fullname{$a}) ne lc($$fullname{$b})) {
@@ -755,7 +768,9 @@ sub verifyreceipt {
my ($uname,$udom)=split(/\:/);
foreach my $part (@$parts) {
if ($receipt eq &Apache::lonnet::ireceipt($uname,$udom,$courseid,$symb,$part)) {
- $contents.=' '."\n".
+ $contents.=
+ &Apache::loncommon::start_data_table_row().
+ ' | '."\n".
''.$$fullname{$_}.' | '."\n".
' '.$uname.' | '.
@@ -763,7 +778,8 @@ sub verifyreceipt {
if ($receiptparts) {
$contents.=' '.$part.' | ';
}
- $contents.='
'."\n";
+ $contents.=
+ &Apache::loncommon::end_data_table_row()."\n";
$matches++;
}
@@ -775,16 +791,9 @@ sub verifyreceipt {
$string = &jscriptNform($symb).$title.
'The above receipt matches the following student'.
($matches <= 1 ? '.' : 's.')."\n".
- ''."\n".
- ''."\n".
- ' Fullname | '."\n".
- ' Username | '."\n".
- ' Domain | ';
- if ($receiptparts) {
- $string.=' Problem Part | ';
- }
- $string.=' '."\n".$contents.
- '
|
'."\n";
+ $header.
+ $contents.
+ &Apache::loncommon::end_data_table()."\n";
}
return $string.&show_grading_menu_form($symb);
}