--- loncom/interface/statistics/lonproblemanalysis.pm 2004/01/19 21:31:08 1.60
+++ loncom/interface/statistics/lonproblemanalysis.pm 2004/01/28 14:53:34 1.62
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonproblemanalysis.pm,v 1.60 2004/01/19 21:31:08 matthew Exp $
+# $Id: lonproblemanalysis.pm,v 1.62 2004/01/28 14:53:34 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -76,7 +76,7 @@ sub BuildProblemAnalysisPage {
#
&Apache::lonstatistics::PrepareClasslist();
#
- $r->print('
'.&mt('Option Response Problem Analysis').'
');
+ $r->print('
'.&mt('Detailed Problem Analysis').'
');
$r->print(&CreateInterface());
#
my @Students = @Apache::lonstatistics::Students;
@@ -115,9 +115,14 @@ sub BuildProblemAnalysisPage {
$r->rflush();
#
# Determine which problem we are to analyze
- my $current_problem = &get_target_from_id($ENV{'form.problemchoice'});
+ my $current_problem = &Apache::lonstathelpers::get_target_from_id
+ ($ENV{'form.problemchoice'});
#
- my ($prev,$curr,$next) = &get_prev_curr_next($current_problem);
+ my ($prev,$curr,$next) =
+ &Apache::lonstathelpers::get_prev_curr_next($current_problem,
+ '(option|radiobutton)',
+ 'response',
+ );
if (exists($ENV{'form.PrevProblemAnalysis'}) && defined($prev)) {
$current_problem = $prev;
} elsif (exists($ENV{'form.NextProblemAnalysis'}) && defined($next)) {
@@ -127,7 +132,8 @@ sub BuildProblemAnalysisPage {
}
#
# Store the current problem choice and send it out in the form
- $ENV{'form.problemchoice'} = &make_target_id($current_problem);
+ $ENV{'form.problemchoice'} =
+ &Apache::lonstathelpers::make_target_id($current_problem);
$r->print('');
#
@@ -161,7 +167,8 @@ sub BuildProblemAnalysisPage {
&mt('Analyze Problem').'" />');
$r->print(' 'x5);
$r->print('