version 1.69, 2002/03/28 22:02:27
|
version 1.73, 2002/05/03 22:28:36
|
Line 62 sub start_script {
|
Line 62 sub start_script {
|
if (($target eq 'answer') && ($Apache::lonhomework::viewgrades == 'F')) { |
if (($target eq 'answer') && ($Apache::lonhomework::viewgrades == 'F')) { |
$Apache::lonxml::evaluate--; |
$Apache::lonxml::evaluate--; |
$result.="<a href=\"javascript:newWindow=open(\'\',\'new_W\',\'width=500,height=200,scrollbars=1\');newWindow.document.open(\'text/html\',\'replace\');newWindow.document.writeln(\'<html><head><title>newwindow</title></head><body bgcolor="#FFFFFF"><pre>"; |
$result.="<a href=\"javascript:newWindow=open(\'\',\'new_W\',\'width=500,height=200,scrollbars=1\');newWindow.document.open(\'text/html\',\'replace\');newWindow.document.writeln(\'<html><head><title>newwindow</title></head><body bgcolor="#FFFFFF"><pre>"; |
my $listing= &Apache::run::dump($target,$safeeval); |
my $listing= &HTML::Entities::encode(&Apache::run::dump($target,$safeeval)); |
$listing =~ s/\n/\\n/g; |
|
$listing =~ s/\"/"/g; |
|
$listing =~ s/\'/’/g; |
|
$listing =~ s/</</g; |
|
$listing =~ s/>/>/g; |
|
$listing =~ s/&/&/g; |
|
$result.=$listing; |
$result.=$listing; |
$result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars</a><br />"; |
$result.= "</pre></body></html>\');newWindow.document.close();void(0);\">Script Vars</a><br />"; |
} |
} |
Line 98 sub end_script {
|
Line 93 sub end_script {
|
return $token->[2]; |
return $token->[2]; |
} elsif ($target eq 'edit' ) { |
} elsif ($target eq 'edit' ) { |
return &Apache::edit::end_table(); |
return &Apache::edit::end_table(); |
} elsif (($ENV{'request.state'} eq 'construct') && ($target eq 'answer')) { |
} elsif (($target eq 'answer')) { |
$Apache::lonxml::evaluate++; |
$Apache::lonxml::evaluate++; |
} |
} |
return ''; |
return ''; |