version 1.36, 2005/03/10 17:28:59
|
version 1.39, 2005/03/17 18:50:06
|
Line 110 sub BuildStudentSubmissionsPage {
|
Line 110 sub BuildStudentSubmissionsPage {
|
push(@Problems,$resource); |
push(@Problems,$resource); |
} |
} |
# |
# |
|
$r->print('<h4>'. |
|
&Apache::lonstatistics::section_and_enrollment_description(). |
|
'</h4>'); |
if (! scalar(@Problems) || ! defined($Problems[0])) { |
if (! scalar(@Problems) || ! defined($Problems[0])) { |
$r->print('resource is undefined'); |
$r->print('resource is undefined'); |
} else { |
} else { |
Line 215 sub prepare_html_output {
|
Line 218 sub prepare_html_output {
|
my @extra_resp_headers = &get_extra_response_headers(); |
my @extra_resp_headers = &get_extra_response_headers(); |
# |
# |
# Create the table header |
# Create the table header |
my @student_columns = ('username','domain','id'); |
my @student_columns = ('username','domain','id','section'); |
# |
# |
my %headers; |
my %headers; |
my $student_column_count = scalar(@student_columns); |
my $student_column_count = scalar(@student_columns); |
Line 551 sub html_non_essay_results {
|
Line 554 sub html_non_essay_results {
|
$option = $submission{$header}; |
$option = $submission{$header}; |
} |
} |
push(@values,&HTML::Entities::encode($option)); |
push(@values,&HTML::Entities::encode($option)); |
|
} elsif ($original_header eq 'Time') { |
|
push(@values,&Apache::lonlocal::locallocaltime($response->{$original_header})); |
} else { |
} else { |
# A normal column |
# A normal column |
push(@values,$response->{$original_header}); |
push(@values,$response->{$original_header}); |
Line 643 sub prepare_excel_output {
|
Line 648 sub prepare_excel_output {
|
$worksheet->write($partid_row,0,'Part ID',$format->{'bold'}); |
$worksheet->write($partid_row,0,'Part ID',$format->{'bold'}); |
$worksheet->write($respid_row,0,'Response ID',$format->{'bold'}); |
$worksheet->write($respid_row,0,'Response ID',$format->{'bold'}); |
# Student headers |
# Student headers |
my @StudentColumns = ('username','domain','id'); |
my @StudentColumns = ('username','domain','id','section'); |
foreach (@StudentColumns) { |
foreach (@StudentColumns) { |
$worksheet->write($header_row,$cols_output++,ucfirst($_), |
$worksheet->write($header_row,$cols_output++,ucfirst($_), |
$format->{'bold'}); |
$format->{'bold'}); |
Line 887 sub prepare_csv_output {
|
Line 892 sub prepare_csv_output {
|
my @extra_resp_headers = &get_extra_response_headers(); |
my @extra_resp_headers = &get_extra_response_headers(); |
# |
# |
# Create the table header |
# Create the table header |
my @student_columns = ('username','domain','id'); |
my @student_columns = ('username','domain','id','section'); |
# |
# |
my %headers; |
my %headers; |
push(@{$headers{'student'}},@student_columns); |
push(@{$headers{'student'}},@student_columns); |
Line 1081 sub CreateInterface {
|
Line 1086 sub CreateInterface {
|
} |
} |
$prob_status_checkbox .= 'value="true" />'; |
$prob_status_checkbox .= 'value="true" />'; |
# |
# |
$Str .= '<td align="right" halign="top">'. |
$Str .= '<td align="right" valign="top">'. |
'<label><b>'. |
'<label><b>'. |
&mt('Show problem [_1]',$prob_checkbox).'</b></label><br />'. |
&mt('Show problem [_1]',$prob_checkbox).'</b></label><br />'. |
'<label><b>'. |
'<label><b>'. |