コード例 #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();
 }