version 1.77, 2008/02/06 16:32:30
|
version 1.78, 2008/03/12 02:46:52
|
Line 186 sub jme_img {
|
Line 186 sub jme_img {
|
my $result='<img alt="'.$smile.'" src="/cgi-bin/convertjme.pl?'.$id.'"'; |
my $result='<img alt="'.$smile.'" src="/cgi-bin/convertjme.pl?'.$id.'"'; |
if ($options =~ /border/) { $result.= ' border="1"'; } |
if ($options =~ /border/) { $result.= ' border="1"'; } |
$result.=' />'; |
$result.=' />'; |
&Apache::lonnet::appenv('cgi.'.$id.'.JME' => |
&Apache::lonnet::appenv({'cgi.'.$id.'.JME' => |
&escape($jme), |
&escape($jme), |
'cgi.'.$id.'.PNG' => 1, |
'cgi.'.$id.'.PNG' => 1, |
'cgi.'.$id.'.WIDTH' => $width); |
'cgi.'.$id.'.WIDTH' => $width}); |
return $result; |
return $result; |
} |
} |
|
|
Line 365 sub start_organicstructure {
|
Line 365 sub start_organicstructure {
|
if ($options =~ /border/) { $result.= ' border="1"'; } |
if ($options =~ /border/) { $result.= ' border="1"'; } |
$result.=' />'; |
$result.=' />'; |
&Apache::lonnet::appenv( |
&Apache::lonnet::appenv( |
'cgi.'.$id.'.JME' => &escape($molecule), |
{'cgi.'.$id.'.JME' => &escape($molecule), |
'cgi.'.$id.'.PNG' => 1, |
'cgi.'.$id.'.PNG' => 1, |
'cgi.'.$id.'.WIDTH' => $width ); |
'cgi.'.$id.'.WIDTH' => $width}); |
} elsif ($target eq 'tex') { |
} elsif ($target eq 'tex') { |
my $texwidth=&Apache::lonxml::get_param('texwidth',$parstack,$safeeval,undef,1); |
my $texwidth=&Apache::lonxml::get_param('texwidth',$parstack,$safeeval,undef,1); |
my $webwidth=&Apache::lonxml::get_param('width', $parstack, $safeeval); |
my $webwidth=&Apache::lonxml::get_param('width', $parstack, $safeeval); |
Line 381 sub start_organicstructure {
|
Line 381 sub start_organicstructure {
|
'_'.time.'_'.$$.int(rand(1000)).'_organicstructure'; |
'_'.time.'_'.$$.int(rand(1000)).'_organicstructure'; |
my $id=$filename; |
my $id=$filename; |
&Apache::lonnet::appenv( |
&Apache::lonnet::appenv( |
'cgi.'.$id.'.JME' => &escape($molecule), |
{'cgi.'.$id.'.JME' => &escape($molecule), |
'cgi.'.$id.'.PS' => 1, |
'cgi.'.$id.'.PS' => 1, |
'cgi.'.$id.'.WIDTH' => $texwidth ); |
'cgi.'.$id.'.WIDTH' => $texwidth}); |
$id=&escape($id); |
$id=&escape($id); |
&Apache::lonxml::register_ssi("/cgi-bin/convertjme.pl?$id"); |
&Apache::lonxml::register_ssi("/cgi-bin/convertjme.pl?$id"); |
if ($options =~ /border/) { $result.= '\fbox{'; } |
if ($options =~ /border/) { $result.= '\fbox{'; } |