--- loncom/interface/statistics/lonproblemstatistics.pm 2002/08/05 20:53:38 1.13
+++ loncom/interface/statistics/lonproblemstatistics.pm 2002/08/06 02:01:05 1.14
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# (Publication Handler
#
-# $Id: lonproblemstatistics.pm,v 1.13 2002/08/05 20:53:38 stredwic Exp $
+# $Id: lonproblemstatistics.pm,v 1.14 2002/08/06 02:01:05 minaeibi Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -105,7 +105,7 @@ sub BuildProblemStatisticsPage {
# 'ProblemStatisticsHeading',
# 'ProblemStatisticsHeading',
# 'Homework Sets Order');
- $r->print("
state=".$state);
+# $r->print("
state=".$state);
my $TempCache;
@@ -146,12 +146,6 @@ sub BuildProblemStatisticsPage {
#---- Problem Statistics Web Page ---------------------------------------
-
-sub NumericSort {
- $a <=> $b;
-}
-
-
sub CreateProblemStatisticsTableHeading {
my ($displayFormat,$sequenceSource,$sequenceTitle,$headings,$r)=@_;
if($displayFormat eq 'Display CSV Format') {
@@ -159,10 +153,12 @@ sub CreateProblemStatisticsTableHeading
$r->print($sequenceSource.'"');
return;
}
-
- $r->print('
'.$sequenceTitle.'');
-
+ if ($sequenceSource eq 'Sorted by: ') {
+ $r->print('
'.$sequenceSource.$sequenceTitle.'');
+ } else {
+ $r->print('
'.$sequenceTitle.'');
+ }
my $Result = "\n".'
P# | '."\n"; for(my $nIndex=0; $nIndex < (scalar (keys %$headings)); $nIndex++) { $Result .= ''.''. "\n".' | '.($RealIdx+1).' | '. - # "\n".''.$PrOrd.$Temp.' | '. "\n".''.$Temp.' | '. "\n".''.$StdNo.' | '. "\n".''.$TotalTries.' | '. @@ -740,7 +722,7 @@ sub TableRow { "\n".''.$DiscNo.' | '; $r->print("\n".$Ptr.'
---|