'."\n";
$Str .= ''."\n";
foreach my $field (@Fields) {
- $Str .= ''.$field.
+ $Str .= ' | '.&mt($field).
' | ';
}
$Str .= ' '."\n";
@@ -1018,6 +1038,8 @@ sub DisplayClasslist {
$Str .= &Apache::lonnet::escape($sname).'">';
$Str .= $student->{$field}.' ';
$Str .= '';
+ } elsif ($field eq 'status') {
+ $Str .= &mt($student->{$field});
} else {
$Str .= $student->{$field};
}
@@ -1048,27 +1070,44 @@ sub CreateMainMenu {
short_description =>
&mt('Detailed statistics and graphs of student performance on problems.'),
},
- { internal_name => 'student_assessment',
- name => &mt('Problem Status Chart'),
+ { internal_name => 'submissiontime_analysis',
+ name => &mt('Submission Time Plots'),
short_description =>
- &mt('Brief view of each students performance in course.'),
+ &mt('Display and analysis of submission times on assessments.'),
},
+ { internal_name => 'student_submission_reports',
+ name => &mt('Student Submission Reports'),
+ short_description =>
+ &mt('Prepare Excel spreadsheets of student submissions.'),
+ },
+ { internal_name => 'survey_reports',
+ name => &mt('Survey Reports'),
+ short_description =>
+ &mt('Prepare reports on survey results.'),
+ },
+ { internal_name => 'correct_problems_plot',
+ name => &mt('Correct Problems Plot'),
+ short_description =>
+ &mt('Display a histogram of student performance in the course.'),
+ },
+# { internal_name => 'student_assessment',
+# name => &mt('Problem Status Chart'),
+# short_description =>
+# &mt('Brief view of each students performance in course.'),
+# },
# 'percentage' => 'Correct-problems Plot',
# 'activitylog' => 'Activity Log',
);
-
#
# Create the menu
my $Str;
- $Str = "".&mt('Statistics and Problem Analysis')."\n";
- $Str .= &mt('Please select a report to generate.');
- $Str .= "\n";
+ $Str .= ''.&mt('Please select a report to generate').'';
foreach my $reportdata (@reports) {
- $Str .=' - {'internal_name'}.'" >'.
- $reportdata->{'name'}."
\n";
- $Str .= ' - '.$reportdata->{'short_description'}.
- "
\n";
+ $reportdata->{'name'}."\n";
+ $Str .= ' '.(' 'x8).$reportdata->{'short_description'}.
+ "\n";
}
$Str .=" \n";
#
@@ -1101,21 +1140,11 @@ sub handler {
}
}
#
- # Set document type for header only
- if($r->header_only) {
- if ($ENV{'browser.mathml'}) {
- $r->content_type('text/xml');
- } else {
- $r->content_type('text/html');
- }
- &Apache::loncommon::no_cache($r);
- $r->send_http_header;
- return OK;
- }
- #
# Send the header
- $r->content_type('text/html');
+ &Apache::loncommon::no_cache($r);
+ &Apache::loncommon::content_type($r,'text/html');
$r->send_http_header;
+ if ($r->header_only) { return OK; }
#
# Extract form elements from query string
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},
@@ -1123,13 +1152,24 @@ sub handler {
'SelectedStudent']);
#
# Give the LON-CAPA page header
- $r->print(&Apache::lonhtmlcommon::Title('Course Statistics and Charts'));
+ $r->print(''.
+ &mt('Course Statistics and Charts').
+ "\n".
+ &Apache::loncommon::bodytag('Course Statistics and Charts'));
$r->rflush();
#
# Either print out a menu for them or send them to a report
+ &Apache::lonhtmlcommon::clear_breadcrumbs();
+ &Apache::lonhtmlcommon::add_breadcrumb({href=>'/adm/statistics',
+ title=>'Statistics',
+ text =>'Statistics',
+ faq=>139,
+ bug=>'Statistics and Charts'});
if (! exists($ENV{'form.reportSelected'}) ||
$ENV{'form.reportSelected'} eq '') {
- $r->print(&CreateMainMenu());
+ $r->print(&Apache::lonhtmlcommon::breadcrumbs
+ (undef,&mt('Statistics Main Page')).
+ &CreateMainMenu());
} else {
#
if (! &Apache::lonmysql::verify_sql_connection()) {
@@ -1154,30 +1194,59 @@ sub handler {
&Apache::loncoursedata::delete_caches($ENV{'requres.course.id'});
}
#
- # Set up the statistics and chart environment
- &PrepareClasslist();
- &PrepareCourseData($r);
- #
# Begin form output
$r->print('\n");
|