|
|
| $message
~;
} else {
print qq~
| $message
~;
}
}
sub getStatsHTML {
my $self = shift;
my $sbeams = $self->getSBEAMS();
my $current = $self->get_current_prophet_cutoff();
return $sbeams->getGifSpacer(800);
}
sub get_prophet_control {
my $self = shift;
my %args = @_;
my $current = $self->get_current_prophet_cutoff();
my $show_form = $args{show_form} || 1;
my @stock = qw( 0.5 0.6 0.7 0.8 0.9 0.95 0.99 1.0 );
if ( defined $current && !grep /^$current$/, @stock ) {
push @stock, $current;
@stock = sort{ $a <=> $b }(@stock);
}
my $update_script = 'ONCHANGE="update_prophet_score()"';
$sbeams ||= $self->getSBEAMS();
my $self_url = $sbeams->get_self_url();
$self_url =~ s/\?.*$//g;
my $url_params = $sbeams->get_url_params( escape => 0,
omit => [qw( glyco_prophet_cutoff )] );
my $select = $sbeams->new_option_list( names => \@stock,
'values' => \@stock,
selected => $current,
list_name => 'glyco_prophet_cutoff',
attrs => $update_script
);
my $label = 'Prophet cutoff';
$label = "$label" if $args{white_label};
my $form =<<" END";
END
return ( $show_form ) ? $form : $select;
}
###############################################################################
# printStyleSheet
#
# Print the standard style sheet for pages. Use a font size of 10pt if
# remote client is on Windows, else use 12pt. This ends up making fonts
# appear the same size on Windows+IE and Linux+Netscape. Other tweaks for
# different browsers might be appropriate.
###############################################################################
sub printStyleSheet {
my $self = shift;
#### Obtain main SBEAMS object and use its style sheet
$sbeams = $self->getSBEAMS();
$sbeams->printStyleSheet();
# print '';
}
###############################################################################
# printJavascriptFunctions
#
# Print the standard Javascript functions that should appear at the top of
# most pages. There probably should be some customization allowance here.
# Not sure how to design that yet.
###############################################################################
sub printJavascriptFunctions {
my $self = shift;
my $javascript_includes = shift;
print qq~
~;
}
###############################################################################
# printPageFooter
###############################################################################
sub printPageFooter {
my $self = shift;
$self->display_page_footer(@_);
}
###############################################################################
# display_page_footer
###############################################################################
sub display_page_footer {
my $self = shift;
my %args = @_;
if ( $self->get_current_motif_type() =~ /phospho/ ) {
# No-op
print $self->{'_external_footer'} if $self->{'_external_footer'};
return;
}
#### If the output mode is interactive text, display text header
my $sbeams = $self->getSBEAMS();
if ($sbeams->output_mode() eq 'interactive') {
$sbeams->printTextHeader(%args);
return;
}
#### If the output mode is not html, then we don't want a header here
if ($sbeams->output_mode() ne 'html') {
return;
}
#### Process the arguments list
my $close_tables = $args{'close_tables'} || 'YES';
my $display_footer = $args{'display_footer'} || 'YES';
my $separator_bar = $args{'separator_bar'} || 'NO';
#### If closing the content tables is desired
if ($close_tables eq 'YES') {
print qq~
|