[Bio] / Sprout / SearchHelper.pm Repository:
ViewVC logotype

Diff of /Sprout/SearchHelper.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.46, Sat Mar 7 18:07:36 2009 UTC revision 1.47, Mon Mar 16 00:23:37 2009 UTC
# Line 489  Line 489 
489                                -value => $self->{class}) .                                -value => $self->{class}) .
490                   CGI::hidden(-name => 'SPROUT',                   CGI::hidden(-name => 'SPROUT',
491                                -value => 1) .                                -value => 1) .
492                   CGI::h3("$title" . Hint($self->{class}, "Click here for more information."));                   CGI::h3("$title" . Hint($self->{class}));
493      # Put in an anchor tag in case there's a table of contents.      # Put in an anchor tag in case there's a table of contents.
494      my $anchorName = $self->FormName();      my $anchorName = $self->FormName();
495      $retVal .= "<a name=\"$anchorName\"></a>\n";      $retVal .= "<a name=\"$anchorName\"></a>\n";
# Line 1379  Line 1379 
1379                                     CGI::popup_menu(-name => 'AliasType',                                     CGI::popup_menu(-name => 'AliasType',
1380                                                      -values => ['FIG', AliasAnalysis::AliasTypes() ],                                                      -values => ['FIG', AliasAnalysis::AliasTypes() ],
1381                                                      -default => $aliasType) .                                                      -default => $aliasType) .
1382                                     Hint("Identifier Type", "Specify how you want gene names to be displayed."))) .                                     Hint("Identifier Type", 27))) .
1383                   "\n" .                   "\n" .
1384                   CGI::Tr(CGI::td("Results/Page"),                   CGI::Tr(CGI::td("Results/Page"),
1385                            CGI::td(CGI::popup_menu(-name => 'PageSize',                            CGI::td(CGI::popup_menu(-name => 'PageSize',
# Line 2198  Line 2198 
2198    
2199  =head3 Hint  =head3 Hint
2200    
2201      my $htmlText = SearchHelper::Hint($wikiPage, $hintText);      my $htmlText = SearchHelper::Hint($wikiPage, $hintID);
2202    
2203  Return the HTML for a small question mark that displays the specified hint text when it is clicked.  Return the HTML for a small question mark that displays the specified hint text when it is clicked.
2204  This HTML can be put in forms to provide a useful hinting mechanism.  This HTML can be put in forms to provide a useful hinting mechanism.
# Line 2209  Line 2209 
2209    
2210  Name of the wiki page to be popped up when the hint mark is clicked.  Name of the wiki page to be popped up when the hint mark is clicked.
2211    
2212  =item hintText  =item hintID
2213    
2214  Text to display for the hint. It is raw html, but may not contain any double quotes.  ID of the text to display for the hint. This is the ID number for a tip-of-the-day.
2215    
2216  =item RETURN  =item RETURN
2217    
# Line 2224  Line 2224 
2224    
2225  sub Hint {  sub Hint {
2226      # Get the parameters.      # Get the parameters.
2227      my ($wikiPage, $hintText) = @_;      my ($wikiPage, $hintID) = @_;
2228      # Ask Sprout to draw the hint button for us.      # Ask Sprout to draw the hint button for us.
2229      return Sprout::Hint($wikiPage, $hintText);      return Sprout::Hint($wikiPage, $hintID);
2230  }  }
2231    
2232    

Legend:
Removed from v.1.46  
changed lines
  Added in v.1.47

MCS Webmaster
ViewVC Help
Powered by ViewVC 1.0.3