--- loncom/interface/Attic/lonchart.pm 2002/07/01 21:12:06 1.49
+++ loncom/interface/Attic/lonchart.pm 2002/07/02 15:13:06 1.50
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# (Publication Handler
#
-# $Id: lonchart.pm,v 1.49 2002/07/01 21:12:06 stredwic Exp $
+# $Id: lonchart.pm,v 1.50 2002/07/02 15:13:06 stredwic Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -60,7 +60,7 @@ my $jr;
sub FormatStudentInformation {
my ($cache,$name,$studentInformation,$reselected,$spacePadding)=@_;
- my $Str='
';
+ my $Str='';
for(my $index=0; $index<(scalar @$studentInformation); $index++) {
if(!&ShouldShowColumn($reselected, 'heading', $index)) {
@@ -95,22 +95,15 @@ sub FormatStudentData {
# Handle errors
if($CacheData{$name.':error'} =~ /environment/) {
+ $Str .= '
';
untie(%CacheData);
- $Str .= '
';
return $Str;
-# my $errorMessage = $CacheData{$name.':error'};
-# return ''.$sname.' | '.$sdom.
-# ' | '.$errorMessage.' | ';
}
if($CacheData{$name.':error'} =~ /course/) {
+ $Str .= '
';
untie(%CacheData);
- $Str .= '';
- return $Str;
-# my $errorMessage = 'May have no course data or '.
-# $CacheData{$name.':error'};
-# return ''.$sname.' | '.$sdom.
-# ' | '.$errorMessage.' | ';
+ return $Str;
}
# Handle problem data ------------------------------------------------
@@ -216,7 +209,7 @@ sub FormatStudentData {
}
$Str .= ''.$problemsSolved.
- ' / '.$totalProblems.'';
+ ' / '.$totalProblems.'
';
untie(%CacheData);
return $Str;
@@ -265,9 +258,9 @@ sub CreateColumnSelectionBox {
my ($CacheData,$studentInformation,$headings,$reselected,$spacePadding)=@_;
my $missing=0;
- my $notThere='
Select column to view:
';
+ my $notThere='Select column to view:';
my $name;
- $notThere .= '  ';
+ $notThere .= ' | ';
$notThere .= '
';
+ $notThere .= '';
} else {
- $notThere='';
+ $notThere=' |
';
}
- return $notThere;
+ return $notThere.' |
';
}
sub CreateColumnSelectors {
@@ -356,42 +349,46 @@ sub CreateForm {
elsif ($Status eq 'Expired' ) { $OpSel2 = 'selected'; }
else { $OpSel1 = 'selected'; }
- my $Ptr = '