Diff for /loncom/homework/caparesponse/caparesponse.pm between versions 1.85 and 1.86

version 1.85, 2003/03/21 15:39:24 version 1.86, 2003/03/26 18:44:13
Line 236  sub end_numericalresponse { Line 236  sub end_numericalresponse {
         if ($target eq 'web') {          if ($target eq 'web') {
   if ($$tagstack[-1] eq 'numericalresponse') {    if ($$tagstack[-1] eq 'numericalresponse') {
     my $id=$Apache::inputtags::response[-1];      my $id=$Apache::inputtags::response[-1];
     if ($unit=~/\S/) {$result.=' (<i>in '.$unit.'</i>)<br /><br />';}      if ($unit=~/\S/) {$result.=' (in '.$unit.')<br /><br />';}
     $result.= '<table border="1"><tr>';      $result.= '<table border="1"><tr>';
     for ($ind=0;$ind<$number_of_bubbles;$ind++) {      for ($ind=0;$ind<$number_of_bubbles;$ind++) {
  my $ans;   my $ans;
Line 259  sub end_numericalresponse { Line 259  sub end_numericalresponse {
     }      }
     $result.='</tr></table>';      $result.='</tr></table>';
   } elsif ($$tagstack[-1] eq 'formularesponse') {    } elsif ($$tagstack[-1] eq 'formularesponse') {
     $result.= '<br /><br /><font color="red"> Formula have to be entered here! </font><br /><br />';      $result.= '<br /><br /><font color="red"><textarea name="formulainput" rows="4" cols="50"> </textarea></font> <br /><br />';
   }    }
  } elsif ($target eq 'tex') {   } elsif ($target eq 'tex') {
  if (defined $unit and $Apache::lonhomework::type eq 'exam') {   if (defined $unit and $Apache::lonhomework::type eq 'exam') {
Line 331  sub end_numericalresponse { Line 331  sub end_numericalresponse {
      $result.='\end{enumerate}';       $result.='\end{enumerate}';
      &Apache::lonxml::increment_counter();       &Apache::lonxml::increment_counter();
          } else {           } else {
      $result.='\fbox{\fbox{\parbox{\textwidth-5mm}{\strut\\\\\strut\\\\\strut\\\\\strut\\\\\strut\\\\\strut\\\\}}}';       $result.='\fbox{\fbox{\parbox{\textwidth-5mm}{\strut\\\\\strut\\\\\strut\\\\\strut\\\\}}}';
     my $id = $Apache::inputtags::part;      my $id = $Apache::inputtags::part;
     my $weight = &Apache::lonnet::EXT("resource.$id.weight");      my $weight = &Apache::lonnet::EXT("resource.$id.weight");
             my $repetition = int $weight/9;              my $repetition = int $weight/9;

Removed from v.1.85  
changed lines
  Added in v.1.86


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