Diff for /loncom/homework/hint.pm between versions 1.10 and 1.11

version 1.10, 2001/04/05 00:08:40 version 1.11, 2001/04/10 22:06:59
Line 22  sub start_hintgroup { Line 22  sub start_hintgroup {
     my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries");      my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries");
     if ( $hinttries eq '') { $hinttries = 1; }      if ( $hinttries eq '') { $hinttries = 1; }
     &Apache::lonxml::debug("found :$id:$numtries:$hinttries:");      &Apache::lonxml::debug("found :$id:$numtries:$hinttries:");
     if ( $numtries <= $hinttries ) {      if ( $numtries < $hinttries ) {
       $skiptoend='1';         $skiptoend='1';
     } else {      } else {
       if ($target eq 'web') {$result='<table bgcolor="#dddddd"><tr><td>';}        if ($target eq 'web') {$result='<table bgcolor="#dddddd"><tr><td>';}
     }      }
Line 46  sub end_hintgroup { Line 46  sub end_hintgroup {
     my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries");      my $hinttries=&Apache::lonnet::EXT("resource.$id.hinttries");
     if ( $hinttries eq '') { $hinttries = 1; }      if ( $hinttries eq '') { $hinttries = 1; }
     &Apache::lonxml::debug("found :$id:$numtries:$hinttries:");      &Apache::lonxml::debug("found :$id:$numtries:$hinttries:");
     if ( $numtries <= $hinttries ) {      if ( $numtries => $hinttries ) {
       if ($target eq 'web') {$result='</td></tr></table>';}        if ($target eq 'web') {$result='</td></tr></table>';}
     }      }
   }    }
Line 56  sub end_hintgroup { Line 56  sub end_hintgroup {
   
 sub start_numericalhint {  sub start_numericalhint {
   #do everything in end, so intervening <responseparams> work    #do everything in end, so intervening <responseparams> work
     return '';
 }  }
   
 sub end_numericalhint {  sub end_numericalhint {
Line 110  sub start_hintpart { Line 111  sub start_hintpart {
 }  }
   
 sub end_hintpart {  sub end_hintpart {
     return '';
 }  }
   
 1;  1;

Removed from v.1.10  
changed lines
  Added in v.1.11


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