--- loncom/homework/grades.pm 2007/06/16 01:37:44 1.410 +++ loncom/homework/grades.pm 2007/07/04 18:37:30 1.419 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Grading handler # -# $Id: grades.pm,v 1.410 2007/06/16 01:37:44 www Exp $ +# $Id: grades.pm,v 1.419 2007/07/04 18:37:30 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -93,6 +93,7 @@ sub get_symb { return (); } } + &Apache::lonenc::check_decrypt(\$symb); return ($symb); } @@ -492,7 +493,7 @@ sub jscriptNform { ' }'."\n". ''."\n"; $jscript.= '
'."\n"; + 'onClick="javascript:submit();" target="_self" />'."\n"; if (scalar(%$fullname) eq 0) { my $colspan=3+scalar(@parts); $result='There are no students in section "'.$env{'form.section'}. @@ -3107,7 +3093,7 @@ sub viewstudentgrade { ''. "\n".$ctr.''.&mt('Correctness determined by the following IDs').'';
foreach my $id (sort(keys(%correct_ids))) {
- $result.=''.$id.' - ';
+ $result.='
'.$id.' - ';
if ($correct_ids{$id} eq 'specified') {
$result.=&mt('specified');
} else {
my ($uname,$udom)=split(/\:/,$correct_ids{$id});
$result.=&Apache::loncommon::plainname($uname,$udom);
}
- $result.='
';
$number++;
}
+ $result.="
@@ -6326,6 +6349,9 @@ sub process_clicker_file {
+
+
+
ENDHEADER
my %responses;
my @questiontitles;
@@ -6334,20 +6360,57 @@ ENDHEADER
if ($env{'form.upfiletype'} eq 'iclicker') {
($errormsg,$number)=&iclicker_eval(\@questiontitles,\%responses);
}
- $result.=' '.&mt('Found [_1] question(s)',$number).' '; - my $found_correct_flag=0; + if ($env{'form.upfiletype'} eq 'interwrite') { + ($errormsg,$number)=&interwrite_eval(\@questiontitles,\%responses); + } + $result.=' '.&mt('Found [_1] question(s)',$number).' '. + ''. + &mt('Awarding [_1] percent for correct and [_2] percent for incorrect responses', + $env{'form.pcorrect'},$env{'form.pincorrect'}). + ' '; +# Remember Question Titles +# FIXME: Possibly need delimiter other than ":" + for (my $i=0;$i<$number;$i++) { + $result.='').'" />'; + } + my $correct_count=0; + my $student_count=0; + my $unknown_count=0; +# Match answers with usernames +# FIXME: Possibly need delimiter other than ":" foreach my $id (keys(%responses)) { if ($correct_ids{$id}) { - $result.="\n".''; - $found_correct_flag++; + $result.="\n".''; + $correct_count++; } elsif ($clicker_ids{$id}) { $result.="\n".''; + $student_count++; } else { - $result.="\n Unknown: ".$id." - ".$responses{$id}; + $result.="\n ".&mt('Unregistered Clicker')." ".$id." "; + $result.="\n".''. + "\n".&mt("Username").": ". + "\n".&mt("Domain").": ". + &Apache::loncommon::select_dom_form($env{'course.'.$env{'request.course.id'}.'.domain'},'udom'.$id).' '. + &Apache::loncommon::selectstudent_link('clickeranalysis','uname'.$id,'udom'.$id); + $unknown_count++; } } - $result.=''; - $result.=' |
+
|