version 1.8, 2001/06/08 19:44:48
|
version 1.9, 2001/07/26 15:50:25
|
Line 163 sub setstudentgrade {
|
Line 163 sub setstudentgrade {
|
if ( scalar(keys(%newrecord)) > 0 ) { |
if ( scalar(keys(%newrecord)) > 0 ) { |
$newrecord{"resource.regrader"}="$ENV{'user.name'}:$ENV{'user.domain'}"; |
$newrecord{"resource.regrader"}="$ENV{'user.name'}:$ENV{'user.domain'}"; |
&Apache::lonnet::cstore(\%newrecord,$symb,$courseid,$domain,$stuname); |
&Apache::lonnet::cstore(\%newrecord,$symb,$courseid,$domain,$stuname); |
|
|
$result.="Stored away ".scalar(keys(%newrecord))." elements.<br />\n"; |
$result.="Stored away ".scalar(keys(%newrecord))." elements.<br />\n"; |
} |
} |
return $result; |
return $result; |
Line 178 sub submission {
|
Line 177 sub submission {
|
if ($uname eq '') { &moreinfo($request,"Unable to find student"); return ''; } |
if ($uname eq '') { &moreinfo($request,"Unable to find student"); return ''; } |
my $symb=&Apache::lonnet::symbread($url); |
my $symb=&Apache::lonnet::symbread($url); |
if ($symb eq '') { $request->print("Unable to handle ambiguous references:$url:."); return ''; } |
if ($symb eq '') { $request->print("Unable to handle ambiguous references:$url:."); return ''; } |
my $home=&Apache::lonnet::homeserver($uname,$udom); |
my $answer=&Apache::loncommon::get_previous_attempt($symb,$uname,$udom, |
my $answer=&Apache::loncommon::get_previous_attempt($symb,$uname,$udom,$home, |
|
$ENV{'request.course.id'}); |
$ENV{'request.course.id'}); |
my $result="<h2> Submission Record </h2> $uname:$udom for $url".$answer; |
my $result="<h2> Submission Record </h2> $uname:$udom for $url".$answer; |
return $result; |
return $result; |