version 1.210, 2007/03/15 02:51:29
|
version 1.211, 2007/04/16 23:25:12
|
Line 1025 sub get_sigrange {
|
Line 1025 sub get_sigrange {
|
return ($sig_ubound,$sig_lbound); |
return ($sig_ubound,$sig_lbound); |
} |
} |
|
|
|
sub setup_prior_tries_hash_string { |
|
my $part=$Apache::inputtags::part; |
|
my $id=$Apache::inputtags::response[-1]; |
|
foreach my $i (1..$Apache::lonhomework::history{'version'}) { |
|
my $key = "$i:resource.$part.$id.submission"; |
|
next if (!exists($Apache::lonhomework::history{"$key"})); |
|
$Apache::inputtags::submission_display{$key} = |
|
'<span class="LC_prior_string">'. |
|
&HTML::Entities::encode($Apache::lonhomework::history{$key}, |
|
'"<>&').'</span>'; |
|
} |
|
} |
|
|
sub start_stringresponse { |
sub start_stringresponse { |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$tagstack,$parstack,$parser,$safeeval,$style)=@_; |
my $result; |
my $result; |
Line 1202 sub end_stringresponse {
|
Line 1215 sub end_stringresponse {
|
} |
} |
} elsif ($target eq 'edit') { |
} elsif ($target eq 'edit') { |
$result.='</td></tr>'.&Apache::edit::end_table; |
$result.='</td></tr>'.&Apache::edit::end_table; |
|
} elsif ($target eq 'web' || $target eq 'tex') { |
|
&setup_prior_tries_hash_string(); |
} |
} |
if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' || |
if ($target eq 'grade' || $target eq 'web' || $target eq 'answer' || |
$target eq 'tex' || $target eq 'analyze') { |
$target eq 'tex' || $target eq 'analyze') { |