--- loncom/interface/statistics/lonproblemanalysis.pm 2005/02/22 04:32:46 1.112 +++ loncom/interface/statistics/lonproblemanalysis.pm 2006/01/22 04:10:04 1.123 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.112 2005/02/22 04:32:46 matthew Exp $ +# $Id: lonproblemanalysis.pm,v 1.123 2006/01/22 04:10:04 bowersj2 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -27,7 +27,7 @@ package Apache::lonproblemanalysis; use strict; -use Apache::lonnet(); +use Apache::lonnet; use Apache::loncommon(); use Apache::lonhtmlcommon(); use Apache::loncoursedata(); @@ -73,7 +73,7 @@ sub BuildProblemAnalysisPage { # my @Students = @Apache::lonstatistics::Students; # - if (@Students < 1 && exists($ENV{'form.firstrun'})) { + if (@Students < 1 && exists($env{'form.firstrun'})) { $r->print('
'.&mt('Correct').' | '. ''.&mt('Count').' | '. ''.$/; - for (my $i=0;$i|||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
'.$labels->[$i].' | '. @@ -706,7 +751,7 @@ sub circle { sub radio_response_analysis { my ($r,$problem,$problem_analysis,$students) = @_; # - if ($ENV{'form.AnalyzeOver'} !~ /^(tries|time)$/) { + if ($env{'form.AnalyzeOver'} !~ /^(tries|time)$/) { $r->print('Bad request'); } # @@ -735,9 +780,9 @@ sub radio_response_analysis { $analysis_html .= $table; # Gather student data my $response_data = &Apache::loncoursedata::get_response_data - (\@Apache::lonstatistics::SelectedSections, + ([&Apache::lonstatistics::get_selected_sections()], $Apache::lonstatistics::enrollment_status, - $resource->{'symb'},$respid); + $resource->symb,$respid); my $correct; # either a hash reference or a scalar if ($problem_analysis->{'answercomputed'} || scalar(@$concepts) > 1) { # This takes a while for large classes... @@ -767,13 +812,13 @@ sub radio_response_analysis { } # $analysis_html.='
'. ''. &mt($pre_graph_text, $plot_num,$foil_choice_data->{'_count'}, $correct, - $foil_choice_data->{'_count'}-$correct, + $incorrect, $foil_choice_data->{'_students'}, @extra_data). ' | |||||||||
'.
&mt('[_1] submissions from [_2] students, [_3] correct, [_4] incorrect',
@@ -1771,8 +1816,8 @@ sub build_foil_key {
sub CreateInterface {
##
## Environment variable initialization
- if (! exists$ENV{'form.AnalyzeOver'}) {
- $ENV{'form.AnalyzeOver'} = 'tries';
+ if (! exists($env{'form.AnalyzeOver'})) {
+ $env{'form.AnalyzeOver'} = 'tries';
}
##
## Build the menu
@@ -1783,7 +1828,6 @@ sub CreateInterface {
$Str .= ''.&mt('Sections').' | ';
$Str .= ''.&mt('Enrollment Status').' | ';
-# $Str .= ''.&mt('Sequences and Folders').' | ';
$Str .= ' | ';
$Str .= ' | ';
#
-# $Str .= ''; - my $only_seq_with_assessments = sub { - my $s=shift; - if ($s->{'num_assess'} < 1) { - return 0; - } else { - return 1; - } - }; - &Apache::lonstatistics::MapSelect('Maps','multiple,all',5, - $only_seq_with_assessments); ## ## $Str .= ' | ';
##
my $showprob_checkbox =
'';
@@ -1823,14 +1856,14 @@ sub CreateInterface {
##
my $analyze_selector = '';
$Str .= ' '.$/; ## my $numplots_selector = ' '; |