version 1.131, 2004/11/30 19:08:18
|
version 1.132, 2004/11/30 22:44:29
|
Line 960 NAVCONTROL
|
Line 960 NAVCONTROL
|
} |
} |
|
|
sub utilityfunctions { |
sub utilityfunctions { |
|
my $caller = shift; |
unless (($ENV{'browser.interface'} eq 'textual') || |
unless (($ENV{'browser.interface'} eq 'textual') || |
($ENV{'environment.remote'} eq 'off')) { return ''; } |
($ENV{'environment.remote'} eq 'off') || ($caller eq '/adm/menu')) { return ''; } |
my $currenturl=&Apache::lonenc::check_encrypt($ENV{'request.noversionuri'}); |
my $currenturl=&Apache::lonenc::check_encrypt($ENV{'request.noversionuri'}); |
|
|
my $currentsymb=&Apache::lonenc::check_encrypt($ENV{'request.symb'}); |
my $currentsymb=&Apache::lonenc::check_encrypt($ENV{'request.symb'}); |
Line 1102 sub handler {
|
Line 1103 sub handler {
|
$pgbg=&Apache::loncommon::designparm($function.'.pgbg',$domain); |
$pgbg=&Apache::loncommon::designparm($function.'.pgbg',$domain); |
$tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain); |
$tabbg=&Apache::loncommon::designparm($function.'.tabbg',$domain); |
$font=&Apache::loncommon::designparm($function.'.font',$domain); |
$font=&Apache::loncommon::designparm($function.'.font',$domain); |
# ---- Print the screen, pretent to be in text mode to generate text-based menu |
my $script_tag; |
|
if ($ENV{'environment.remote'} eq 'on') { |
|
my $utility=&utilityfunctions('/adm/menu'); |
|
$script_tag=(<<ENDSCRIPT); |
|
<script type="text/javascript"> |
|
$utility |
|
</script> |
|
ENDSCRIPT |
|
} |
|
# ---- Print the screen, pretend to be in text mode to generate text-based menu |
unless ($ENV{'browser.interface'} eq 'textual') { |
unless ($ENV{'browser.interface'} eq 'textual') { |
$ENV{'browser.interface'}='faketextual'; |
$ENV{'browser.interface'}='faketextual'; |
$ENV{'environment.remote'}='off'; |
$ENV{'environment.remote'}='off'; |
Line 1110 sub handler {
|
Line 1120 sub handler {
|
$r->print(<<ENDHEADER); |
$r->print(<<ENDHEADER); |
<html><head> |
<html><head> |
<title>LON-CAPA Main Menu</title> |
<title>LON-CAPA Main Menu</title> |
|
$script_tag |
</head> |
</head> |
$bodytag |
$bodytag |
ENDHEADER |
ENDHEADER |