--- loncom/interface/statistics/lonproblemanalysis.pm 2003/10/09 22:10:02 1.28 +++ loncom/interface/statistics/lonproblemanalysis.pm 2007/01/04 02:44:07 1.130 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lonproblemanalysis.pm,v 1.28 2003/10/09 22:10:02 matthew Exp $ +# $Id: lonproblemanalysis.pm,v 1.130 2007/01/04 02:44:07 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -24,425 +24,1985 @@ # # http://www.lon-capa.org/ # - package Apache::lonproblemanalysis; use strict; -use Apache::lonnet(); +use Apache::lonnet; use Apache::loncommon(); use Apache::lonhtmlcommon(); use Apache::loncoursedata(); use Apache::lonstatistics; use Apache::lonlocal; +use Apache::lonstathelpers(); +use Apache::lonstudentsubmissions(); +use HTML::Entities(); +use Time::Local(); +use capa; +use lib '/home/httpd/lib/perl/'; +use LONCAPA; + + +my $plotcolors = ['#33ff00', + '#0033cc', '#990000', '#aaaa66', '#663399', '#ff9933', + '#66ccff', '#ff9999', '#cccc33', '#660000', '#33cc66', + ]; + +my @SubmitButtons = ({ name => 'PrevProblemAnalysis', + text => 'Previous Problem' }, + { name => 'ProblemAnalysis', + text => 'Analyze Problem Again' }, + { name => 'NextProblemAnalysis', + text => 'Next Problem' }, + { name => 'break'}, + { name => 'SelectAnother', + text => 'Choose a different Problem' }); sub BuildProblemAnalysisPage { my ($r,$c)=@_; - $r->print('