version 1.165, 2006/02/21 20:14:49
|
version 1.168, 2006/03/28 20:11:52
|
Line 279 $groups
|
Line 279 $groups
|
<td bgcolor="$tabbg"> |
<td bgcolor="$tabbg"> |
<img align="right" src="$logo" alt="Logo" /> |
<img align="right" src="$logo" alt="Logo" /> |
<b>LON-CAPA</b></td> |
<b>LON-CAPA</b></td> |
$form |
|
</tr> |
</tr> |
</table> |
</table> |
|
$form |
<script type="text/javascript"> |
<script type="text/javascript"> |
// END LON-CAPA Internal |
// END LON-CAPA Internal |
</script> |
</script> |
Line 1235 sub handler {
|
Line 1235 sub handler {
|
$env{'browser.interface'} ne 'textual') { |
$env{'browser.interface'} ne 'textual') { |
$form=&serverform(); |
$form=&serverform(); |
} |
} |
my $bodytag=&Apache::loncommon::bodytag('Main Menu'); |
|
my $function='student'; |
my $function='student'; |
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { |
if ($env{'request.role'}=~/^(cc|in|ta|ep)/) { |
$function='coordinator'; |
$function='coordinator'; |
Line 1265 ENDSCRIPT
|
Line 1264 ENDSCRIPT
|
$env{'browser.interface'}='faketextual'; |
$env{'browser.interface'}='faketextual'; |
$env{'environment.remote'}='off'; |
$env{'environment.remote'}='off'; |
} |
} |
my $html=&Apache::lonxml::xmlbegin(); |
$r->print(&Apache::loncommon::start_page('Main Menu',$script_tag)); |
$r->print(<<ENDHEADER); |
|
$html |
|
<head> |
|
<title>LON-CAPA Main Menu</title> |
|
$script_tag |
|
</head> |
|
$bodytag |
|
ENDHEADER |
|
$r->print('<table>'.&inlinemenu().'</table>'.$form); |
$r->print('<table>'.&inlinemenu().'</table>'.$form); |
$r->print('</body></html>'); |
$r->print(&Apache::loncommon::end_page()); |
return OK; |
return OK; |
} |
} |
|
|
# ================================================================ Main Program |
# ================================================================ Main Program |
|
|
BEGIN { |
BEGIN { |
if (! defined($readdesk)) { |
if (! defined($readdesk)) { |
{ |
{ |
my $tabfile = $Apache::lonnet::perlvar{'lonTabDir'}.'/mydesk.tab'; |
my $tabfile = $Apache::lonnet::perlvar{'lonTabDir'}.'/mydesk.tab'; |
if ( CORE::open( my $config,"<$tabfile") ) { |
if ( CORE::open( my $config,"<$tabfile") ) { |
while (my $configline=<$config>) { |
while (my $configline=<$config>) { |
$configline=(split(/\#/,$configline))[0]; |
$configline=(split(/\#/,$configline))[0]; |
$configline=~s/^\s+//; |
$configline=~s/^\s+//; |
chomp($configline); |
chomp($configline); |
if ($configline) { |
if ($configline) { |
$desklines[$#desklines+1]=$configline; |
push(@desklines,$configline); |
} |
} |
} |
} |
CORE::close($config); |
CORE::close($config); |
|
} |
|
} |
|
$readdesk='done'; |
} |
} |
} |
|
$readdesk='done'; |
|
} |
|
} |
} |
|
|
1; |
1; |