--- loncom/homework/bridgetask.pm 2006/04/10 07:37:39 1.138
+++ loncom/homework/bridgetask.pm 2006/05/12 04:32:58 1.148
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: bridgetask.pm,v 1.138 2006/04/10 07:37:39 albertel Exp $
+# $Id: bridgetask.pm,v 1.148 2006/05/12 04:32:58 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -170,8 +170,8 @@ sub add_grading_button {
my (undef,$cid)=&Apache::lonxml::whichuser();
my $cnum=$env{'course.'.$cid.'.num'};
my $cdom=$env{'course.'.$cid.'.domain'};
- my %sections;
- my $numsections=&Apache::loncommon::get_sections($cdom,$cnum,\%sections);
+ my %sections = &Apache::loncommon::get_sections($cdom,$cnum);
+
my $size=5;
if (scalar(keys(%sections)) < 3) {
$size=scalar(keys(%sections))+2;
@@ -214,7 +214,7 @@ sub add_grading_button {
'gradingdomain');
$result.=&Apache::loncommon::studentbrowser_javascript();
$result.= '
';
- }
+ }
return $result;
}
@@ -349,12 +349,15 @@ sub webgrade_standard_info {
my %lt=&Apache::lonlocal::texthash('done' => 'Next Item',
'stop' => 'Quit Grading',
+ 'fail' => 'Fail Rest',
);
my $result=<
+
$file_list
INFO
@@ -375,28 +378,32 @@ sub start_Task {
}
$Apache::lonhomework::parsing_a_task=1;
- #should get back a or the neccesary stuff to start XML/MathML
- my ($result,$head_tag_start,$body_tag_start,$form_tag_start)=
- &Apache::structuretags::page_start($target,$token,$tagstack,$parstack,$parser,$safeeval);
-
- $head_tag_start .= &style($target);
- $body_tag_start .= '