version 1.23, 2004/09/23 14:35:54
|
version 1.24, 2004/09/23 14:55:24
|
Line 219 sub prepare_html_output {
|
Line 219 sub prepare_html_output {
|
if (! $single_part) { |
if (! $single_part) { |
my $tmpname = $partid; |
my $tmpname = $partid; |
if ($partid =~/^\d+$/) { |
if ($partid =~/^\d+$/) { |
$tmpname = &mt('Part [_1]',$partid); |
$tmpname = $prob->part_display($partid); |
} |
} |
$headers{'part'} .= qq{<th colspan="$part_span">$tmpname</th>}; |
$headers{'part'} .= qq{<th colspan="$part_span">$tmpname</th>}; |
$nonempty_part_headers = 1; |
$nonempty_part_headers = 1; |
Line 392 sub html_essay_results {
|
Line 392 sub html_essay_results {
|
if (! $single_response) { |
if (! $single_response) { |
my $id = $prob->compTitle; |
my $id = $prob->compTitle; |
if (defined($partid) && $partid ne '0') { |
if (defined($partid) && $partid ne '0') { |
$id .= ' '.$partid; |
$id .= ' '.$prob->part_display($partid); |
} |
} |
if (defined($respid)) { |
if (defined($respid)) { |
$id .= ' '.$respid; |
$id .= ' '.$respid; |
Line 569 sub prepare_excel_output {
|
Line 569 sub prepare_excel_output {
|
$worksheet->write($title_row,$cols_output, |
$worksheet->write($title_row,$cols_output, |
$title,$format->{'h3'}); |
$title,$format->{'h3'}); |
foreach my $partid (@{$prob->parts}) { |
foreach my $partid (@{$prob->parts}) { |
$worksheet->write($partid_row,$cols_output,$partid); |
$worksheet->write($partid_row,$cols_output, |
|
$prob->part_display($partid)); |
my $responses = [$prob->responseIds($partid)]; |
my $responses = [$prob->responseIds($partid)]; |
my $resptypes = [$prob->responseType($partid)]; |
my $resptypes = [$prob->responseType($partid)]; |
for (my $i=0;$i<scalar(@$responses);$i++) { |
for (my $i=0;$i<scalar(@$responses);$i++) { |
Line 781 sub prepare_csv_output {
|
Line 782 sub prepare_csv_output {
|
$headers{'problem'}->[$prob_start_idx] = $prob->compTitle; |
$headers{'problem'}->[$prob_start_idx] = $prob->compTitle; |
my $part_start_idx = $prob_start_idx; |
my $part_start_idx = $prob_start_idx; |
foreach my $partid (@{$prob->parts}) { |
foreach my $partid (@{$prob->parts}) { |
$headers{'part'}->[$part_start_idx] = &mt('Part [_1]',$partid); |
$headers{'part'}->[$part_start_idx] = $prob->part_display($partid); |
my $responses = [$prob->responseIds($partid)]; |
my $responses = [$prob->responseIds($partid)]; |
for (my $i=0;$i<scalar(@$responses);$i++) { |
for (my $i=0;$i<scalar(@$responses);$i++) { |
my $resp_idx = $prob_start_idx + $response_multiplier * $i; |
my $resp_idx = $prob_start_idx + $response_multiplier * $i; |