--- loncom/interface/loncommon.pm 2006/08/22 17:15:19 1.447 +++ loncom/interface/loncommon.pm 2006/09/19 19:03:22 1.456 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common routines # -# $Id: loncommon.pm,v 1.447 2006/08/22 17:15:19 raeburn Exp $ +# $Id: loncommon.pm,v 1.456 2006/09/19 19:03:22 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -257,7 +257,7 @@ of the element the selection from the se sub browser_and_searcher_javascript { my ($mode)=@_; if (!defined($mode)) { $mode='edit'; } - my $resurl=&lastresurl(); + my $resurl=&escape_single(&lastresurl()); return < -// ENDOUTPUT return $output; @@ -2113,7 +2111,7 @@ sub aboutmewrapper { return; } return ''.$link.''; + ($target?' target="$target"':'').' title="'.&mt("View this user's personal page").'">'.$link.''; } # ------------------------------------------------------------ Syllabus Wrapper @@ -2142,7 +2140,9 @@ sub track_student_link { $target = ''; } if ($start) { $link.='&start='.$start; } - return qq{$linktext}; + + return qq{$linktext}. + &help_open_topic('View_recent_activity'); } =pod @@ -3184,6 +3184,7 @@ sub standard_css { my $border = ($env{'browser.type'} eq 'explorer') ? '0px 2px 0px 2px' : '0px 3px 0px 4px'; + return <{'bgcolor'} || &designparm($function.'.pgbg',$domain); my $url = join(':',$env{'user.name'},$env{'user.domain'}, #time(), + $Apache::lonnet::perlvar{'lonVersion'}, $env{'environment.color.timestamp'}, $function,$domain,$bgcolor); @@ -5924,15 +5951,6 @@ sub lonhttpdurl { return 'http://'.$ENV{'SERVER_NAME'}.':'.$lonhttpd_port.$url; } -sub absolute_url { - my ($host_name) = @_; - my $protocol = ($ENV{'SERVER_PORT'} == 443?'https://':'http://'); - if ($host_name eq '') { - $host_name = $ENV{'SERVER_NAME'}; - } - return $protocol.$host_name; -} - sub connection_aborted { my ($r)=@_; $r->print(" ");$r->rflush();