version 1.8, 2005/08/16 16:31:14
|
version 1.12, 2006/05/17 22:08:08
|
Line 50 use tth;
|
Line 50 use tth;
|
|
|
# ================================================================ Main Handler |
# ================================================================ Main Handler |
|
|
|
sub footer { |
|
my ($errorstring) = @_; |
|
my $xmlstring=''; |
|
if ($env{'request.state'} eq 'construct') { |
|
$xmlstring.='<address>'. |
|
$Apache::lontexconvert::errorstring.'</address>'; |
|
} else { |
|
&Apache::lonmsg::author_res_msg($env{'request.filename'}, |
|
$Apache::lonxml::errorstring); |
|
} |
|
# -------------------------------------------------------------------- End Body |
|
$xmlstring.=&Apache::loncommon::end_page({'discussion' => 1}); |
|
return $xmlstring; |
|
} |
|
|
sub handler { |
sub handler { |
my $r=shift; |
my ($r)= @_; |
my @texcontents; |
my @texcontents; |
my $texstring; |
my $texstring; |
|
|
Line 77 sub handler {
|
Line 92 sub handler {
|
|
|
# --------------------------------------------------------------- Render Output |
# --------------------------------------------------------------- Render Output |
|
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['mode', |
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'}, |
'buttons']); |
['texengine','inhibitmenu']); |
|
|
$r->print(&Apache::lontexconvert::header()); |
|
$r->print( |
$r->print(&Apache::loncommon::start_page(undef,undef, |
'<body bgcolor="#FFFFFF" onLoad="'. |
{'bgcolor' => '#FFFFFF', |
&Apache::lonmenu::loadevents(). |
'force_register' => 1, |
'" onUnload="'. |
'only_body' => |
&Apache::lonmenu::unloadevents(). |
($env{'form.inhibitmenu'} |
'">'); |
eq 'yes'), })); |
if ($env{'form.buttons'} ne 'no') { |
|
$r->print(&Apache::lonmenu::menubuttons(undef,'web',1)); |
$r->print(&Apache::lontexconvert::converted(\$texstring, |
} |
$env{'form.texengine'})); |
&Apache::lontexconvert::jsMath_reset(); |
$r->print(&footer()); |
if ($env{'form.mode'} eq 'jsMath') { |
|
$r->print(&Apache::lontexconvert::jsMath_header()); |
|
} |
|
$r->print(&Apache::lontexconvert::converted(\$texstring,$env{'form.mode'})); |
|
$r->print('</body>'); |
|
$r->print(&Apache::lontexconvert::footer()); |
|
|
|
return OK; |
return OK; |
} |
} |