--- loncom/interface/lonhtmlcommon.pm 2004/04/23 17:49:25 1.67 +++ loncom/interface/lonhtmlcommon.pm 2004/05/06 17:54:11 1.69 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # a pile of common html routines # -# $Id: lonhtmlcommon.pm,v 1.67 2004/04/23 17:49:25 matthew Exp $ +# $Id: lonhtmlcommon.pm,v 1.69 2004/05/06 17:54:11 matthew Exp $ # # Copyright Michigan State University Board of Trustees # @@ -163,9 +163,15 @@ sub textbox { ############################################## ############################################## sub checkbox { - my ($name,$value) = @_; - my $Str = ''; + my ($name,$checked,$value) = @_; + my $Str = ''/adm/menu', - title=>'Go to main menu', - text=>$ENV{'course.'.$cid.'.description'}, + href =>'/adm/menu', + title =>'Go to main menu', + target =>'_top', + text =>$ENV{'course.'.$cid.'.description'}, }); } my $links .= @@ -984,8 +991,13 @@ returns: nothing map { $faq = $_->{'faq'} if (exists($_->{'faq'})); $bug = $_->{'bug'} if (exists($_->{'bug'})); - ''. - &mt($_->{'text'}).'' + my $result = '{'target'}) && $_->{'target'} ne '') { + $result .= 'target="'.$_->{'target'}.'" '; + } + $result .='title="'.&mt($_->{'title'}).'">'. + &mt($_->{'text'}).''; + $result; } @Crumbs ); $links .= '->' if ($links ne '');