function BuildPreContent() { $LanguageMenu = $this->BuildLanguageMenu(); if ($this->DisplayNavBar == true) { $TempMenuBar = new NavBar($this->Viewer->viewerID, $this->Viewer->languageID); $MainMenuBar = '<a href="http://www.milonic.com/"></a><script>' . $TempMenuBar->DrawMainMenu() . '</script>'; $SubMenuBar = '<script>' . $TempMenuBar->DrawSubMenus() . '</script>'; } else { $MainMenuBar = " "; $SubMenuBar = ""; } $Temp = $SubMenuBar . '<table width="750" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" > <tr valign="top"> <td width="750" height="113" colspan="5" valign="bottom" background="' . $this->PathToRootDir . $this->PageHeaderImage . '"><div align="left"> <table width="100%" cellpadding="0" cellspacing="0"> <tr><td width="1" ><img src="' . $this->PathToRootDir . 'Images/space.gif" width="1" height="113"></td> <td><table width="100%" height="100%" border="0"> <tr> <td height="43" colspan="2" valign="top"> </td> </tr> <tr> <td height="44" colspan="2" valign="bottom" class="pageTitle"><div align="right">' . $this->PageMainTitle . '</div></td> </tr> <tr> <td>' . $MainMenuBar . '</td> <td valign="top" ><div align="right">' . $LanguageMenu . '</div></td> </tr> </table> </td> </tr> </table> </div></td> </tr> <tr valign="top"> <td width="1" bgcolor="223450"><img src="' . $this->PathToRootDir . 'Images/space.gif" width="1" height="1"></td>'; // Now determine if there is any Admin Content to display if ($this->PageAdminColContent != '<null>') { // If so, display content column as 1 column $Temp .= ' <td width="' . (748 - $this->PageAdminColWidth) . '">'; } else { // Else Content column = 3 columns $Temp .= ' <td width="748" >'; } $this->AddToDisplayList($Temp); }