'.
''.
- ' No | '.
+ ' No | '.
' Title | '.
' Answer | '.
' Grade | ';
my $question=1;
foreach (@titles) {
my ($minder,$showtitle) = ($_ =~ /(\d+)\.(.*)/);
- $studentTable.=''.$question.' | ';
+ my @parts = split(/::/,$parts{$_});
+ $studentTable.=' '.$question.
+ (scalar(@parts) == 1 ? '' : ' ('.scalar(@parts).' parts)').' | ';
$studentTable.=' '.$showtitle.' | ';
$studentTable.=' '.
&Apache::loncommon::get_student_answers($symbx{$_},$uname,$udom,$ENV{'request.course.id'}).' | ';
- my (undef,undef,$requesturl)=split(/___/,$symbx{$_});
- $requesturl=&Apache::lonnet::clutter($requesturl);
- my $subresult=&Apache::lonnet::ssi($requesturl,
- ('grade_target' => 'analyze'),
- ('grade_domain' => $udom),
- ('grade_user' => $uname),
- ('grade_symb' => $symbx{$_}),
- ('grade_courseid' => $ENV{'request.course.id'}));
- (undef,$subresult)=split(/_HASH_REF__/,$subresult,2);
- my %analyze=&Apache::lonnet::str2hash($subresult);
-
+ my %record = &Apache::lonnet::restore($symbx{$_},$ENV{'request.course.id'},$udom,$uname);
$studentTable.=' ';
- while (my($key,$value) = each (%analyze)){
- $studentTable.='key='.$key.'->value='.$value.' ';
+ foreach my $partid (@parts) {
+ $studentTable.=&gradeBox($symbx{$_},$uname,$udom,$question,$partid,\%record);
+ $question++;
}
$studentTable.=' | ';
- $question++;
}
$studentTable.='
|