--- loncom/homework/bridgetask.pm 2005/05/31 21:11:56 1.36 +++ loncom/homework/bridgetask.pm 2005/06/04 08:17:06 1.37 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # definition of tags that give a structure to a document # -# $Id: bridgetask.pm,v 1.36 2005/05/31 21:11:56 albertel Exp $ +# $Id: bridgetask.pm,v 1.37 2005/06/04 08:17:06 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -36,6 +36,7 @@ use Apache::File(); use Apache::lonmenu; use Apache::lonlocal; use Apache::lonxml; +use Apache::slotrequest(); use Time::HiRes qw( gettimeofday tv_interval ); BEGIN { @@ -166,13 +167,23 @@ sub add_grading_button { sub add_request_another_attempt_button { my $result; my $symb=&Apache::lonnet::symbread(); - if ($env{'request.enc'}) { $symb=&Apache::lonenc::encrypted($symb); } - $symb=&Apache::lonnet::escape($symb); - $result.='
'. - ''. - ''. - '
'; + my ($slot_name,$slot)=&Apache::slotrequest::check_for_reservation($symb); + if ($slot_name) { + my $description=&Apache::slotrequest::get_description($slot_name, + $slot); + $result.=(< Will be next available: $description

+STUFF + + } else { + if ($env{'request.enc'}) { $symb=&Apache::lonenc::encrypted($symb); } + $symb=&Apache::lonnet::escape($symb); + $result.='
'. + ''. + ''. + '
'; + } return $result; }