version 1.16, 2004/09/18 16:32:17
|
version 1.18, 2005/04/07 06:56:27
|
Line 25
|
Line 25
|
# |
# |
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
# (Edit Handler for RAT Maps |
|
# (TeX Content Handler |
|
# |
|
# 05/29/00,05/30 Gerd Kortemeyer) |
|
# 7/1,6/30 Gerd Kortemeyer) |
|
# |
|
# 7/5 Gerd Kortemeyer |
|
|
|
package Apache::lonwrapper; |
package Apache::lonwrapper; |
|
|
use strict; |
use strict; |
use Apache::Constants qw(:common); |
use Apache::Constants qw(:common); |
use Apache::lonnet(); |
use Apache::lonnet; |
use Apache::lonxml(); |
use Apache::lonxml(); |
use Apache::lonmenu; |
use Apache::lonmenu; |
|
|
Line 59 sub handler {
|
Line 52 sub handler {
|
$url=~s/^\/adm\/wrapper//; |
$url=~s/^\/adm\/wrapper//; |
$url=~s/^\/ext\//http\:\/\//; |
$url=~s/^\/ext\//http\:\/\//; |
$url=~s|:|:|g; |
$url=~s|:|:|g; |
if ($ENV{'form.wrapperdisplay'} eq 'menu') { |
if ($env{'form.wrapperdisplay'} eq 'menu') { |
# |
# |
# Producing the menu buttons |
# Producing the menu buttons |
# |
# |
Line 73 sub handler {
|
Line 66 sub handler {
|
# |
# |
# This is uploaded homework |
# This is uploaded homework |
# |
# |
$ENV{'request.state'}='uploaded'; |
$env{'request.state'}='uploaded'; |
&Apache::lonhomework::renderpage($r,$url); |
&Apache::lonhomework::renderpage($r,$url); |
} else { |
} else { |
# |
# |
Line 85 sub handler {
|
Line 78 sub handler {
|
'" onUnload="'.&Apache::lonmenu::unloadevents.'"'; |
'" onUnload="'.&Apache::lonmenu::unloadevents.'"'; |
my $script=&Apache::lonmenu::registerurl(1,undef); |
my $script=&Apache::lonmenu::registerurl(1,undef); |
|
|
if ($ENV{'browser.interface'} eq 'textual') { |
if ($env{'browser.interface'} eq 'textual') { |
# |
# |
# ssi-based rendering for text-based interface |
# ssi-based rendering for text-based interface |
# |
# |
Line 94 sub handler {
|
Line 87 sub handler {
|
'</head><body bgcolor="#FFFFFF">'. |
'</head><body bgcolor="#FFFFFF">'. |
&Apache::lonmenu::menubuttons(1). |
&Apache::lonmenu::menubuttons(1). |
&Apache::lonnet::ssi_body($url).'</body></html>'); |
&Apache::lonnet::ssi_body($url).'</body></html>'); |
} elsif ($ENV{'environment.remote'} eq 'off') { |
} elsif ($env{'environment.remote'} eq 'off') { |
# |
# |
# This is inline remote |
# This is inline remote |
# |
# |