--- loncom/interface/loncommon.pm 2003/02/03 18:03:52 1.76 +++ loncom/interface/loncommon.pm 2003/02/13 18:11:26 1.79 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.76 2003/02/03 18:03:52 harris41 Exp $ +# $Id: loncommon.pm,v 1.79 2003/02/13 18:11:26 www Exp $ # # Copyright Michigan State University Board of Trustees # @@ -518,6 +518,9 @@ sub help_open_topic { my ($topic, $text, $stayOnPage, $width, $height) = @_; $text = "" if (not defined $text); $stayOnPage = 0 if (not defined $stayOnPage); + if ($ENV{'browser.interface'} eq 'textual') { + $stayOnPage=1; + } $width = 350 if (not defined $width); $height = 400 if (not defined $height); my $filename = $topic; @@ -538,14 +541,16 @@ sub help_open_topic { # Add the text if ($text ne "") { - $template .= "<a href=\"$link\">$text</a> "; + $template .= + "<table bgcolor='#3333AA' cellspacing='1' cellpadding='1' border='0'><tr>". + "<td bgcolor='#5555FF'><a href=\"$link\"><font color='#FFFFFF' size='2'>$text</font></a>"; } # Add the graphic $template .= <<"ENDTEMPLATE"; -<a href="$link"><image src="/adm/help/gif/smallHelp.gif" border="0" alt="(Help: $topic)" /></a> + <a href="$link"><image src="/adm/help/gif/smallHelp.gif" border="0" alt="(Help: $topic)" /></a> ENDTEMPLATE - + if ($text ne '') { $template.='</td></tr></table>' }; return $template; } @@ -1442,6 +1447,9 @@ $addentries> END if ($bodyonly) { return $bodytag; + } elsif ($ENV{'browser.interface'} eq 'textual') { + return $bodytag.'<h1>LON-CAPA: '.$title. + '</h1><a href="/adm/menu">Main Menu</a><hr />'; } else { return(<<ENDBODY); $bodytag