 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
~;
$current_work_group_name = $sbeams->getCurrent_work_group_name();
if ($current_work_group_name eq "Inkjet_admin" || $current_work_group_name eq "Admin" || 1) {
print qq~
 |
 |
 |
~;
}
$current_work_group_name = $sbeams->getCurrent_work_group_name();
if ($current_work_group_name eq "Inkjet_admin" || $current_work_group_name eq "Admin") {
print qq~
 |
 |
 |
 |
 |
~;
}
print qq~
|
|
~;
}
}
#
###############################################################################
# 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;
#### Allow old-style single argument
my $n_params = scalar @_;
my %args;
#### If the old-style single argument exists, create args hash with it
if ($n_params == 1) {
my $flag = shift;
$args{close_tables} = 'NO';
$args{close_tables} = 'YES' if ($flag =~ /CloseTables/);
$args{display_footer} = 'NO';
$args{display_footer} = 'YES' if ($flag =~ /Footer/);
} else {
%args = @_;
}
#### 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~
|