version 1.27, 2008/01/15 15:23:28
|
version 1.33, 2009/05/27 16:55:03
|
Line 26
|
Line 26
|
# http://www.lon-capa.org/ |
# http://www.lon-capa.org/ |
# |
# |
|
|
|
|
package Apache::lonwrapper; |
package Apache::lonwrapper; |
|
|
use strict; |
use strict; |
Line 52 sub simple_menu {
|
Line 53 sub simple_menu {
|
sub wrapper { |
sub wrapper { |
my ($topurl,$bottomurl) = @_; |
my ($topurl,$bottomurl) = @_; |
|
|
if ($env{'browser.interface'} eq 'textual') { |
|
# |
|
# ssi-based rendering for text-based interface |
|
# |
|
return |
|
&Apache::loncommon::start_page('Menu',undef, |
|
{'bgcolor' => '#FFFFFF', |
|
'force_register' => 1, |
|
}). |
|
&Apache::lonnet::ssi_body($bottomurl). |
|
&Apache::loncommon::end_page(); |
|
} |
|
|
|
|
|
my %layout = ('border' => 0); |
my %layout = ('border' => 0); |
if ($env{'environment.remote'} eq 'off') { |
if ($env{'environment.remote'} eq 'off') { |
$layout{'rows'} = "200,*"; |
if ($env{'environment.icons'} eq 'iconsonly') { |
|
$layout{'rows'} = "100,*"; |
|
} else { |
|
$layout{'rows'} = "200,*"; |
|
} |
} else { |
} else { |
$layout{'rows'} = "1,*"; |
$layout{'rows'} = "1,*"; |
$topurl = "/adm/rat/empty.html"; |
$topurl = "/adm/rat/empty.html"; |
Line 84 sub wrapper {
|
Line 75 sub wrapper {
|
&Apache::loncommon::end_page({'frameset' => 1}); |
&Apache::loncommon::end_page({'frameset' => 1}); |
|
|
foreach my $url ($topurl,$bottomurl) { |
foreach my $url ($topurl,$bottomurl) { |
if ($url !~ /^http:/) { |
if ($url !~ /^https?\:/) { |
$url = &Apache::lonenc::check_encrypt($url); |
$url = &Apache::lonenc::check_encrypt($url); |
} |
} |
} |
} |
Line 151 sub handler {
|
Line 142 sub handler {
|
1; |
1; |
__END__ |
__END__ |
|
|
|
=pod |
|
|
|
=head1 NAME |
|
|
|
Apache::lonwrapper - External and binary file management. |
|
|
|
=head1 SYNOPSIS |
|
|
|
Wrapper for external and binary files as standalone resources. Edit handler for rat maps; TeX content handler. |
|
|
|
This is part of the LearningOnline Network with CAPA project |
|
described at http://www.lon-capa.org. |
|
|
|
=head1 Subroutines |
|
|
|
=over |
|
|
|
=item simple_menu() |
|
|
|
=item wrapper() |
|
|
|
=item handler() |
|
|
|
=back |
|
|
|
=cut |
|
|
|
|
|
|
|
|