--- loncom/interface/lonquickgrades.pm 2002/12/06 19:29:28 1.9 +++ loncom/interface/lonquickgrades.pm 2003/03/23 07:12:41 1.12 @@ -64,7 +64,7 @@ sub real_handler { $r->send_http_header; # Create the nav map - my $navmap = Apache::lonnavmaps::navmap->new( + my $navmap = Apache::lonnavmaps::navmap->new($r, $ENV{"request.course.fn"}.".db", $ENV{"request.course.fn"}."_parms.db", 1, 0); @@ -77,12 +77,6 @@ sub real_handler { # Keep this hash in sync with %statusIconMap in lonnavmaps; they # should match color/icon my $res = $navmap->firstResource(); # temp resource to access constants - - if (!defined($navmap)) { - my $requrl = $r->uri; - $ENV{'user.error.msg'} = "$requrl:bre:0:0:Course not initialized"; - return HTTP_NOT_ACCEPTABLE; - } # Header $r->print(&Apache::loncommon::bodytag('Quick Score Display','', @@ -173,7 +167,7 @@ HEADER # Second pass: Print the maps. $r->print('
Sequence | '); - $r->print('Correct / Total |
Done / Total | |
Total Parts Correct: $totalRight "); + $r->print(" | |
Total Parts Done: $totalRight "); $r->print("Max Possible To Date $maxHelpLink: $totalPossible "); $r->print("Total Parts In Course: $totalParts |