version 1.2, 2004/02/20 16:24:20
|
version 1.8, 2004/03/12 21:13:11
|
Line 163 sub BuildStudentSubmissionsPage {
|
Line 163 sub BuildStudentSubmissionsPage {
|
######################################################### |
######################################################### |
sub prepare_excel_output { |
sub prepare_excel_output { |
my ($r,$problem,$ProblemData,$Students) = @_; |
my ($r,$problem,$ProblemData,$Students) = @_; |
|
my $c = $r->connection(); |
my ($resource,$respid,$partid) = ($problem->{'resource'}, |
my ($resource,$respid,$partid) = ($problem->{'resource'}, |
$problem->{'respid'}, |
$problem->{'respid'}, |
$problem->{'part'}); |
$problem->{'part'}); |
Line 209 sub prepare_excel_output {
|
Line 210 sub prepare_excel_output {
|
# |
# |
# Populate the worksheet with the student data |
# Populate the worksheet with the student data |
foreach my $student (@$Students) { |
foreach my $student (@$Students) { |
|
last if ($c->aborted()); |
my $results = &Apache::loncoursedata::get_response_data_by_student |
my $results = &Apache::loncoursedata::get_response_data_by_student |
($student,$resource->{'symb'},$respid); |
($student,$resource->{'symb'},$respid); |
my %row; |
my %row; |
Line 288 sub prepare_excel_output {
|
Line 290 sub prepare_excel_output {
|
|
|
sub GetStudentAnswers { |
sub GetStudentAnswers { |
my ($r,$problem,$Students) = @_; |
my ($r,$problem,$Students) = @_; |
|
my $c = $r->connection(); |
my %Answers; |
my %Answers; |
my ($resource,$partid,$respid) = ($problem->{'resource'}, |
my ($resource,$partid,$respid) = ($problem->{'resource'}, |
$problem->{'part'}, |
$problem->{'part'}, |
Line 299 sub GetStudentAnswers {
|
Line 302 sub GetStudentAnswers {
|
$r->print("<table>\n"); |
$r->print("<table>\n"); |
$r->rflush(); |
$r->rflush(); |
foreach my $student (@$Students) { |
foreach my $student (@$Students) { |
|
last if ($c->aborted()); |
my $sname = $student->{'username'}; |
my $sname = $student->{'username'}; |
my $sdom = $student->{'domain'}; |
my $sdom = $student->{'domain'}; |
my $answer = &Apache::lonstathelpers::analyze_problem_as_student |
my $answer = &Apache::lonstathelpers::analyze_problem_as_student |
($resource,$sname,$sdom,$partid,$respid); |
($resource,$sname,$sdom,$partid,$respid); |
&Apache::lonnet::logthis('answer = "'.$answer.'"'); |
|
&Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state, |
&Apache::lonhtmlcommon::Increment_PrgWin($r,\%prog_state, |
&mt('last student')); |
&mt('last student')); |
$student->{'answer'} = $answer; |
$student->{'answer'} = $answer; |
} |
} |
|
return if ($c->aborted()); |
$r->print("</table>\n"); |
$r->print("</table>\n"); |
$r->rflush(); |
$r->rflush(); |
# close progress window |
# close progress window |
Line 345 sub CreateInterface {
|
Line 349 sub CreateInterface {
|
$Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); |
$Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); |
$Str .= '</td>'; |
$Str .= '</td>'; |
# |
# |
|
$Str .= '<td></td>'; |
|
# |
my $only_seq_with_assessments = sub { |
my $only_seq_with_assessments = sub { |
my $s=shift; |
my $s=shift; |
if ($s->{'num_assess'} < 1) { |
if ($s->{'num_assess'} < 1) { |