--- loncom/homework/bridgetask.pm 2005/05/03 05:31:51 1.15 +++ loncom/homework/bridgetask.pm 2005/05/06 20:26:35 1.18 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.15 2005/05/03 05:31:51 albertel Exp $ +# $Id: bridgetask.pm,v 1.18 2005/05/06 20:26:35 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -95,14 +95,17 @@ sub add_grading_button { sub start_Task { my ($target,$token,$tagstack,$parstack,$parser,$safeeval)=@_; - &Apache::structuretags::initialize_storage(); - &Apache::lonhomework::showhash(%Apache::lonhomework::history); my ($status,$accessmsg,$slot); + if ($target ne 'webgrade') { + &Apache::structuretags::initialize_storage(); + &Apache::lonhomework::showhash(%Apache::lonhomework::history); + } + $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); - + if ($target eq 'web') { $body_tag_start.=&add_previous_version_button(); if ($Apache::lonhomework::modifygrades) { @@ -177,15 +180,21 @@ sub start_Task { } } elsif ($target eq 'webgrade') { $result.=$head_tag_start.$body_tag_start.$form_tag_start; + $result.= + ''; $result.=&show_queue(); my $todo=&get_from_queue(); if ($todo) { + &setup_env_for_other_user($todo,$safeeval); my ($symb,$uname,$udom)=&decode_queue_key($todo); - $result.="\n".'
Found'. - $symb.':'.$uname.':'.$udom.' |
Found '. + &Apache::lonnet::gettitle($symb).' for '.$uname.' at '.$udom.' |
No user to be graded. |
resource | user | Time available for grading |
---|
resource | user | type | data | |
---|---|---|---|---|
$title | $uname | "; - my $slot=$queue{$key}->[0]; - my %slot_data=&Apache::lonnet::get_slot($slot); - $result.="End time: ".&Apache::lonlocal::locallocaltime($slot_data{'endtime'})." | ||
$title | $uname | "; + $result.=' | lock | '.$queue{$key}.' |
$title | "; + $result.=' | last queue modification time | '. + &Apache::lonlocal::locallocaltime($queue{$key})." | |
$title | $uname | "; + my $slot=$queue{$key}->[0]; + my %slot_data=&Apache::lonnet::get_slot($slot); + $result.=' | queue entry | End time: '.&Apache::lonlocal::locallocaltime($slot_data{'endtime'})." |
'. - $dimension{$instance.'.criteria.'.$id}.' | |||
'.
+ ''.
+ ''.
+ ' '. + #$dimension{$instance.'.criteria.'.$id}. + ' | '.
+ 'Additional Comment for Student '. + ''. + ' | '.
+ ''.
+ ' '. + ' '. + ' '. + ' '. + ' | '.
+ ''.
+ 'Prev '. + 'Next '. + ' |