version 1.13, 2003/05/13 15:13:17
|
version 1.17, 2005/02/17 09:09:57
|
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; |
|
|
Line 45 use Apache::lonmenu;
|
Line 38 use Apache::lonmenu;
|
|
|
sub handler { |
sub handler { |
my $r=shift; |
my $r=shift; |
$r->content_type('text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->send_http_header; |
$r->send_http_header; |
|
|
return OK if $r->header_only; |
return OK if $r->header_only; |
Line 54 sub handler {
|
Line 47 sub handler {
|
['wrapperdisplay']); |
['wrapperdisplay']); |
my $orgurl=$r->uri; |
my $orgurl=$r->uri; |
my $url=$orgurl; |
my $url=$orgurl; |
|
$orgurl.=(($orgurl=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; |
|
$orgurl.=(($orgurl=~/\?/)?'&':'?').'wrapperdisplay=menu'; |
$url=~s/^\/adm\/wrapper//; |
$url=~s/^\/adm\/wrapper//; |
$url=~s/^\/ext\//http\:\/\//; |
$url=~s/^\/ext\//http\:\/\//; |
|
$url=~s|:|:|g; |
if ($ENV{'form.wrapperdisplay'} eq 'menu') { |
if ($ENV{'form.wrapperdisplay'} eq 'menu') { |
# |
# |
# Producing the menu buttons |
# Producing the menu buttons |
Line 76 sub handler {
|
Line 72 sub handler {
|
# |
# |
# This is not homework |
# This is not homework |
# |
# |
if ($url=~/^\/uploaded\//) { |
|
$url=&Apache::lonnet::tokenwrapper($url); |
|
} |
|
$url.=(($url=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; |
$url.=(($url=~/\?/)?'&':'?').$ENV{'QUERY_STRING'}; |
# reappend the query arguments |
# reappend the query arguments |
my $events='onLoad="'.&Apache::lonmenu::loadevents. |
my $events='onLoad="'.&Apache::lonmenu::loadevents. |
Line 104 sub handler {
|
Line 97 sub handler {
|
$script |
$script |
</head> |
</head> |
<frameset rows="180,*" border=0 $events> |
<frameset rows="180,*" border=0 $events> |
<frame src="$orgurl?wrapperdisplay=menu"> |
<frame src="$orgurl"> |
<frame src="$url"> |
<frame src="$url"> |
</frameset> |
</frameset> |
</html> |
</html> |