version 1.19, 2000/10/09 14:09:41
|
version 1.21, 2000/10/11 21:08:49
|
Line 9 use Apache::lonnet;
|
Line 9 use Apache::lonnet;
|
|
|
sub BEGIN { |
sub BEGIN { |
&Apache::lonxml::register('Apache::scripttag',('script','scriptlib', |
&Apache::lonxml::register('Apache::scripttag',('script','scriptlib', |
'parserlib','import')); |
'parserlib','import', |
|
'footnote')); |
} |
} |
|
|
$Apache::scripttag::SCRIPT_RESULT=''; |
$Apache::scripttag::SCRIPT_RESULT=''; |
Line 24 sub start_script {
|
Line 25 sub start_script {
|
$Apache::scripttag::SCRIPT_RESULT=''; |
$Apache::scripttag::SCRIPT_RESULT=''; |
if ($type eq "loncapa/perl") { |
if ($type eq "loncapa/perl") { |
$safeeval->share('$SCRIPT_RESULT'); |
$safeeval->share('$SCRIPT_RESULT'); |
my $bodytext=&Apache::lonxml::get_all_text("script",$$parser[$#$parser]); |
my $bodytext=&Apache::lonxml::get_all_text("/script",$$parser[$#$parser]); |
|
|
if ( $target eq "modified" ) { |
if ( $target eq "modified" ) { |
} |
} |
Line 98 sub end_parserlib {
|
Line 99 sub end_parserlib {
|
|
|
sub start_footnote { |
sub start_footnote { |
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; |
my $result ="footnote"; |
my $result = ''; |
|
$Apache::lonxml::redirection = 0; |
return $result; |
return $result; |
} |
} |
|
|
sub end_footnote { |
sub end_footnote { |
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; |
my ($target,$token,$parstack,$parser,$safeeval,$style)=@_; |
|
$Apache::lonxml::outputstack =~ s/\"/\"\;/g; |
|
my $result = "<a href=\"javascript:newWindow=open(\'\',\'new_W\',\'width=500,height=200\');newWindow.document.open(\'text/html\',\'replace\');newWindow.document.writeln(\'<html><head><title>newwindow</title></head><body bgcolor="#FFFFFF"> $Apache::lonxml::outputstack </body></html>\');newWindow.document.close();void(0);\"><sup>*</sup></a>"; |
|
$Apache::lonxml::outputstack = ""; |
|
$Apache::lonxml::redirection = 1; |
|
return $result; |
} |
} |
|
|
sub start_import { |
sub start_import { |