|
|
~;
}
}
#
###############################################################################
# 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();
}
###############################################################################
# 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 = @_;
my $tooltip_footer = $self->getToolTip();
#### 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';
#### Check to see if the PI of the curernt project is a Halobacterium guy.
#### If so, print the halo skin
if ($display_footer eq 'YES') {
my $current_project = $sbeams->getCurrent_project_id();
my $sql = qq~
SELECT UWG.contact_id
FROM $TB_WORK_GROUP WG
JOIN $TB_USER_WORK_GROUP UWG ON (WG.work_group_id = UWG.work_group_id)
JOIN $TB_PROJECT P ON (P.PI_contact_id = UWG.contact_id)
WHERE WG.work_group_name = 'HaloPIs'
AND P.project_id = $current_project
~;
my @rows = $sbeams->selectOneColumn($sql);
#### If closing the content tables is desired
if ($args{'close_tables'} eq 'YES') {
print qq~
|