--- loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2004/07/06 16:01:48 1.17
+++ loncom/interface/statistics/lonsubmissiontimeanalysis.pm 2005/02/28 20:16:03 1.18
@@ -1,6 +1,6 @@
# The LearningOnline Network with CAPA
#
-# $Id: lonsubmissiontimeanalysis.pm,v 1.17 2004/07/06 16:01:48 matthew Exp $
+# $Id: lonsubmissiontimeanalysis.pm,v 1.18 2005/02/28 20:16:03 matthew Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -85,7 +85,7 @@ sub BuildSubmissionTimePage {
&mt('Graph Problem Submission Times').'" />');
$r->print(' 'x5);
$r->print('
'.&mt('Please select a problem to analyze').'
');
- $r->print(&Apache::lonstathelpers::ProblemSelector('.'));
+ $r->print(&Apache::lonstathelpers::problem_selector('.'));
} else {
foreach my $button (@SubmitButtons) {
$r->print('print('resource is undefined');
} else {
- $r->print(''.$resource->{'title'}.'
');
- $r->print(''.$resource->{'src'}.'
');
+ $r->print(''.$resource->compTitle.'
');
+ $r->print(''.$resource->src.'
');
$r->rflush();
$r->print(&Apache::lonstathelpers::render_resource($resource));
$r->print('
');
$r->rflush();
- $r->print(&analyze_times($r,$resource,\@Students,
+ $r->print(&analyze_times($r,$resource->symb,\@Students,
$current_problem->{'part'}));
}
$r->print('
');
@@ -158,7 +158,7 @@ sub get_week_start {
}
sub analyze_times {
- my ($r,$resource,$students,$part) = @_;
+ my ($r,$symb,$students,$part) = @_;
my $htmltable;
#
# Convenience arrays
@@ -170,9 +170,11 @@ sub analyze_times {
my $html; # holds results of analysis
# Get the data
my $SubData = &Apache::loncoursedata::get_response_time_data
- ($students,$resource->{'symb'},$part);
+ (\@Apache::lonstatistics::SelectedSections,
+ $Apache::lonstatistics::enrollment_status,
+ $symb,$part);
if (! defined($SubData) || ! ref($SubData)) {
- $html.= 'There is no submission data for this problem
';
+ $html.= 'There is no submission data for this problem at all
';
return $html;
}
my $NumSub = scalar(@{$SubData});