Ejemplo n.º 1
0
 function toHTML()
 {
     $HTML = '';
     if ($this->_ShowLogo) {
         $HTML .= freshports_Logo();
     }
     if ($this->_ShowAnnouncements) {
         $Announcement = new Announcement($this->{$_db});
         $NumRows = $Announcement->FetchAllActive();
         if ($NumRows > 0) {
             $HTML .= DisplayAnnouncements($Announcement);
         }
     }
     $HTML .= freshports_MainTable() . "\n<tr><td width='100%' valign='top'>\n" . freshports_MainContentTable() . "\n<tr>\n" . freshports_PageBannerText($this->_title);
     $this->prependBodyContent($HTML);
     $this->addBodyContent("\n</table><td valign=\"top\">" . freshports_SideBar() . "</td></tr></table>\n" . freshports_ShowFooter());
     return parent::toHTML();
 }
Ejemplo n.º 2
0
function freshports_Start($ArticleTitle, $Description, $Keywords, $Phorum = 0)
{
    global $ShowAds;
    global $BannerAd;
    global $ShowAnnouncements;
    freshports_HTML_Start();
    freshports_Header($ArticleTitle, $Description, $Keywords, $Phorum);
    freshports_body();
    echo freshports_Logo();
    freshports_navigation_bar_top();
    if (isset($ShowAnnouncements)) {
        global $db;
        $Announcement = new Announcement($db);
        $NumRows = $Announcement->FetchAllActive();
        if ($NumRows > 0) {
            echo DisplayAnnouncements($Announcement);
        }
    }
}