version 1.6, 2005/02/17 09:01:04
|
version 1.8, 2005/08/16 16:31:14
|
Line 45 use strict;
|
Line 45 use strict;
|
use Apache::File; |
use Apache::File; |
use Apache::lontexconvert; |
use Apache::lontexconvert; |
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
|
use Apache::lonnet; |
use tth; |
use tth; |
|
|
# ================================================================ Main Handler |
# ================================================================ Main Handler |
Line 56 sub handler {
|
Line 57 sub handler {
|
|
|
# ----------------------------------------------------------- Set document type |
# ----------------------------------------------------------- Set document type |
|
|
if ($ENV{'browser.mathml'}) { |
if ($env{'browser.mathml'}) { |
&Apache::loncommon::content_type($r,'text/xml'); |
&Apache::loncommon::content_type($r,'text/xml'); |
} else { |
} else { |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
Line 76 sub handler {
|
Line 77 sub handler {
|
|
|
# --------------------------------------------------------------- Render Output |
# --------------------------------------------------------------- Render Output |
|
|
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['mode', |
|
'buttons']); |
|
|
$r->print(&Apache::lontexconvert::header()); |
$r->print(&Apache::lontexconvert::header()); |
$r->print( |
$r->print( |
'<body bgcolor="#FFFFFF" onLoad="'. |
'<body bgcolor="#FFFFFF" onLoad="'. |
&Apache::lonmenu::loadevents(). |
&Apache::lonmenu::loadevents(). |
'" onUnload="'. |
'" onUnload="'. |
&Apache::lonmenu::unloadevents(). |
&Apache::lonmenu::unloadevents(). |
'">'. |
'">'); |
&Apache::lonmenu::menubuttons(undef,'web',1) |
if ($env{'form.buttons'} ne 'no') { |
); |
$r->print(&Apache::lonmenu::menubuttons(undef,'web',1)); |
$r->print(&Apache::lontexconvert::converted(\$texstring)); |
} |
|
&Apache::lontexconvert::jsMath_reset(); |
|
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('</body>'); |
$r->print(&Apache::lontexconvert::footer()); |
$r->print(&Apache::lontexconvert::footer()); |
|
|