version 1.10, 2006/02/14 15:44:25
|
version 1.14, 2006/08/18 15:15:38
|
Line 37 use Apache::lonstathelpers;
|
Line 37 use Apache::lonstathelpers;
|
use Spreadsheet::WriteExcel; |
use Spreadsheet::WriteExcel; |
use HTML::Entities(); |
use HTML::Entities(); |
use Time::Local(); |
use Time::Local(); |
|
use lib '/home/httpd/lib/perl/'; |
|
use LONCAPA; |
|
|
|
|
my @SubmitButtons = ( |
my @SubmitButtons = ( |
{ name => 'break'}, |
{ name => 'break'}, |
Line 201 sub SurveyProblemSelector {
|
Line 204 sub SurveyProblemSelector {
|
$checked = 'checked '; |
$checked = 'checked '; |
} |
} |
my $link = $problem->{'res'}->src. |
my $link = $problem->{'res'}->src. |
'?symb='.&Apache::lonnet::escape($problem->{'res'}->symb); |
'?symb='.&escape($problem->{'res'}->symb); |
$Str .= '<tr><td>'. |
$Str .= '<tr><td>'. |
'<input type="radio" name="problemchoice" id="'.$id.'" '. |
'<input type="radio" name="problemchoice" id="'.$id.'" '. |
'value="'.$value.'" '.$checked.'/>'.'</td>'. |
'value="'.$value.'" '.$checked.'/>'.'</td>'. |
Line 249 sub compile_student_answers {
|
Line 252 sub compile_student_answers {
|
foreach my $response (@responses) { |
foreach my $response (@responses) { |
my ($foilid,$option) = |
my ($foilid,$option) = |
map { |
map { |
&Apache::lonnet::unescape($_); |
&unescape($_); |
} split('=',$response); |
} split('=',$response); |
$data->{'foil_count'}->{$foilid}++; |
$data->{'foil_count'}->{$foilid}++; |
$data->{'foil_responses'}->{$foilid}->{$option}++; |
$data->{'foil_responses'}->{$foilid}->{$option}++; |
} |
} |
} elsif ($resptype =~ /^(radiobutton)$/) { |
} elsif ($resptype =~ /^(radiobutton)$/) { |
my ($foil,$value) = map { &Apache::lonnet::unescape($_); } split('=',$student_response); |
my ($foil,$value) = map { &unescape($_); } split('=',$student_response); |
$value += 1; # explicitly increment it... |
$value += 1; # explicitly increment it... |
$data->{'foil_responses'}->{$foil}++; |
$data->{'foil_responses'}->{$foil}++; |
$data->{'foil_values'}->{$value}++; |
$data->{'foil_values'}->{$value}++; |
Line 606 sub CreateInterface {
|
Line 609 sub CreateInterface {
|
$output_selector.= '>'.$output_format->{'text'}.'</option>'.$/; |
$output_selector.= '>'.$output_format->{'text'}.'</option>'.$/; |
} |
} |
$output_selector .= '</select>'.$/; |
$output_selector .= '</select>'.$/; |
$Str .= &Apache::lonhtmlcommon::breadcrumbs |
$Str .= &Apache::lonhtmlcommon::breadcrumbs('Student Submission Reports'); |
(undef,'Student Submission Reports'); |
|
$Str .= '<p>'; |
$Str .= '<p>'; |
$Str .= '<table cellspacing="5">'."\n"; |
$Str .= '<table cellspacing="5">'."\n"; |
$Str .= '<tr>'; |
$Str .= '<tr>'; |
$Str .= '<th>'.&mt('Sections').'</th>'; |
$Str .= '<th>'.&mt('Sections').'</th>'; |
$Str .= '<th>'.&mt('Enrollment Status').'</th>'; |
$Str .= '<th>'.&mt('Groups').'</th>'; |
|
$Str .= '<th>'.&mt('Access Status').'</th>'; |
$Str .= '<th>'.&mt('Output Format').'</th>'; |
$Str .= '<th>'.&mt('Output Format').'</th>'; |
$Str .= '<th>'.' '.'</th>'; |
$Str .= '<th>'.' '.'</th>'; |
$Str .= '</tr>'."\n"; |
$Str .= '</tr>'."\n"; |
Line 621 sub CreateInterface {
|
Line 624 sub CreateInterface {
|
$Str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); |
$Str .= &Apache::lonstatistics::SectionSelect('Section','multiple',5); |
$Str .= '</td>'; |
$Str .= '</td>'; |
# |
# |
|
$Str .= '<td align="center">'."\n"; |
|
$Str .= &Apache::lonstatistics::GroupSelect('Group','multiple',5); |
|
$Str .= '</td>'; |
|
# |
$Str .= '<td align="center">'; |
$Str .= '<td align="center">'; |
$Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); |
$Str .= &Apache::lonhtmlcommon::StatusOptions(undef,undef,5); |
$Str .= '</td>'; |
$Str .= '</td>'; |