'."\n";
$Str .= ''."\n";
my $displayString = 'DISPLAYDATA  | '."\n";
- $Str .= &Apache::lonhtmlcommon::CreateHeadings(\%cache,
+ $Str .= &Apache::lonhtmlcommon::CreateHeadings(\%cache,
$studentInformation,
$headings, $displayString);
$Str .= ' '."\n";
my $alternate=0;
foreach (@$students) {
+# if ($mySections{$cache{$_.':'.'section'}} ne 'True') {next;}
my ($username, $domain) = split(':', $_);
if($alternate) {
$Str .= '';
@@ -504,14 +1278,12 @@ sub CreateMainMenu {
my $Str = '';
$Str .= ''."\n";
- $Str .= ' | | '."\n";
- $Str .= 'Analysis Reports: | '."\n";
- $Str .= 'Student Status: | '."\n";
+ $Str .= ' | '."\n";
+ $Str .= 'Select a Report | '."\n";
+ $Str .= 'Student Status | '."\n";
$Str .= ''."\n";
$Str .= ' 'Class list',
'problem_statistics' => 'Problem Statistics',
'student_assessment' => 'Student Assessment',
- 'activitylog' => 'Activity Log',
+ 'percentage' => 'Correct-problems Plot',
+# 'activitylog' => 'Activity Log',
'reportSelected' => 'Class list');
my %cache;
@@ -556,29 +1330,36 @@ sub BuildStatistics {
my $cacheDB = "/home/httpd/perl/tmp/$ENV{'user.name'}".
"_$ENV{'user.domain'}_$courseID\_statistics.db";
- my ($returnValue, $students) = &PrepareData($c, $cacheDB,
- \@studentInformation,
+ $r->print(&Apache::lonhtmlcommon::Title('Course Statistics and Charts'));
+
+ my ($returnValue, $students) = &PrepareData($c, $cacheDB,
+ \@studentInformation,
\@headings,$r);
if($returnValue ne 'OK') {
- $r->print(''.$returnValue."\n".'');
+ $r->print($returnValue."\n".' |
|