KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.62
System : FreeBSD fbsdweb2.web.rcn.net 14.1-RELEASE FreeBSD 14.1-RELEASE releng/14.1-n267679-10e31f0946d8 GENERIC amd64
User : www ( 80)
PHP Version : 8.3.8
Disable Function : NONE
Directory :  /domains/compasssysweb/calendar/CalciumDir39/Calendar/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /domains/compasssysweb/calendar/CalciumDir39/Calendar/Footer.pm
# Copyright 1999-2003, Fred Steinberg, Brown Bear Software

package Footer;
use strict;

sub new {
    my $class = shift;
    my ($prefs) = @_;
    my $self = {};
    bless $self, $class;

    my $footer = $prefs->Footer;
    unless ($footer) {
        $self->{'html'} = '';
        return $self unless $footer;
    }
    my $footerAlign = $prefs->FooterAlignment || 'center';
    my $footerBG    = $prefs->color ('FooterBG');
    my $footerFG    = $prefs->color ('FooterFG');

    $footer =~ s/\n/<br>/g unless ($footer =~ /<[^>]*>/);

    my $bg = $footerBG ? "bgcolor=\"$footerBG\"" : '';
    if ($footerFG) {
        $footer = "<font color=\"$footerFG\">$footer</font>";
    }

    $self->{'html'} = <<END_HTML;
<center>
<table width="100%" border=0 cellspacing=0>
  <tr><td align=$footerAlign $bg>$footer</td></tr>
</table>\n
</center>
END_HTML

    $self;
}

sub getHTML {
    my $self = shift;
    $self->{'html'};
}

1;

Anon7 - 2021