Diff for /loncom/homework/structuretags.pm between versions 1.55 and 1.57

version 1.55, 2001/08/17 14:24:29 version 1.57, 2001/08/17 16:50:04
Line 92  sub start_problem { Line 92  sub start_problem {
   my ($result,$head_tag_start,$body_tag_start)=    my ($result,$head_tag_start,$body_tag_start)=
     &page_start($target,$token,$tagstack,$parstack,$parser,$safeeval);      &page_start($target,$token,$tagstack,$parstack,$parser,$safeeval);
   
     if ($target eq 'web') {
         if ($ENV{'form.doescheckout'}) {
     $body_tag_start.=&Apache::lonxml::maketoken('web');
         }
     }
   if ($target eq 'web' || $target eq 'grade') {    if ($target eq 'web' || $target eq 'grade') {
     ($status,$accessmsg) = &Apache::lonhomework::check_access('0');      ($status,$accessmsg) = &Apache::lonhomework::check_access('0');
     push (@Apache::inputtags::status,$status);      push (@Apache::inputtags::status,$status);
Line 109  sub start_problem { Line 114  sub start_problem {
         if ($status eq 'CLOSED') {          if ($status eq 'CLOSED') {
     $msg.='The problem '.$accessmsg;      $msg.='The problem '.$accessmsg;
  } elsif ($status eq 'UNCHECKEDOUT') {   } elsif ($status eq 'UNCHECKEDOUT') {
             $msg.='The resource needs to be checked out';              $msg.=(<<ENDCHECKOUT);
   <h2>The resource needs to be checked out</h2>
   As a resource gets checked out, a unique timestamped ID is given to it, and a
   permanent record is left in the system.<p />
   <font color=red>
   Checking out resources is subject to course policies, and may exclude future
   credit even if done erroneously.<p />
   </font>  
   <form method=post>
   <input type=submit name="doescheckout" 
   value="Check out Exam for Viewing" />
   </form>
   ENDCHECKOUT
         }          }
  return $result.$msg.'<br />';   return $result.$msg.'<br />';
       }        }

Removed from v.1.55  
changed lines
  Added in v.1.57


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>