sFormAction = "$default->rootUrl/control.php"; $this->bScroll = $default->contentPaneScrolling; } function setNorthWestPayload($oNewVal) { $this->oNorthWestPayload = & $oNewVal; } function setNorthWestPayloadBackGroundColour($sColour) { $this->sNorthWestPayloadBackGroundColour = $sColour; } function setNorthPayload($oNewVal) { $this->oNorthPayload = & $oNewVal; } function setNorthPayloadBackGroundColour($sColour) { $this->sNorthPayloadBackGroundColour = $sColour; } function setCentralPayload($oNewVal) { $this->oCentralPayload = & $oNewVal; } function setCentralPayloadBackGroundColour($sColour) { $this->sCentralPayloadBackGroundColour = $sColour; } function setWestPayload($oNewVal) { $this->oWestPayload = & $oNewVal; } function setWestPayloadBackGroundColour($sColour) { $this->sWestPayloadBackGroundColour = $sColour; } function getFormAction() { return $this->sFormAction; } function setFormAction($sNewVal) { $this->sFormAction = & $sNewVal; } function setErrorMessage($sNewValue) { $this->sErrorMessage = $sNewValue; } function setFormEncType($sNewValue) { $this->sFormEncType = $sNewValue; } function setHasRequiredFields($bNewValue) { $this->bHasRequiredFields = $bNewValue; } function setHelpContext($sNewValue) { $this->sHelpContext = $sNewValue; } function setOnLoadJavaScript($sJavaScript) { $this->onLoadJavaScript = $sJavaScript; } function getOnLoadJavaScript() { return $this->onLoadJavaScript; } function setDHTMLScrolling($sNewValue) { $this->bScroll = $sNewValue; } function setSubmitMethod($sNewValue) { $this->sSubmitMethod = $sNewValue; } /** * Render the page in HTML */ function render() { global $default; $sToRender = "\n"; $sToRender .= "\n"; $sToRender .= "The KnowledgeTree"; $sToRender .= "sessionTimeout+3) . ($bNN4 ? ";" : "") . "\">\n" . "graphicsUrl/tree.ico\">\n" . "uiUrl/stylesheet.php\">\n". PatternMainPage::getJavaScript() . "\n" . "\n" . "onLoadJavaScript) ? "onload=\"$this->onLoadJavaScript\"" : "") . ">\n"; // hack to circumvent the crapness of ns 4.79 if (!$default->bNN4 && $this->bScroll) { $sToRender .= "
\n" . "\tgraphicsUrl . "/down.gif\" width=\"18\" height=\"9\" alt=\"up\" border=\"0\">\n" . "
\n" . "
\n" . "\tgraphicsUrl . "/up.gif\" width=\"18\" height=\"9\" alt=\"down\" border=\"0\">\n" . "
\n"; } $sToRender .= "
sFormEncType) ? "enctype=\"$this->sFormEncType\" " : " ") . " action=\"".$this->sFormAction."\" method=\"$this->sSubmitMethod\" " . (($this->bHasRequiredFields) ? "onsubmit=\"return validateForm(this)\" " : " ") . ">\n" . "pageHeight\">\n " . "\n". "\n \n \n \n \n \n" . "\n" . "
sNorthWestPayloadBackGroundColour) ? " bgcolor=\"" . $this->sNorthWestPayloadBackGroundColour . "\"" : "") . ">\n"; if (isset($this->oNorthWestPayload)) { $sToRender = $sToRender . "\n" . $this->oNorthWestPayload->render() . "\n"; } else { $sToRender = $sToRender . "\nNorthwest payload not set\n"; } $sToRender = $sToRender . "sNorthPayloadBackGroundColour) ? " bgcolor=\"" . $this->sNorthPayloadBackGroundColour . "\"" : "") . ">\n"; if (isset($this->oNorthPayload)) { $sToRender = $sToRender . "\n" . $this->oNorthPayload->render() . "\n"; } else { $sToRender = $sToRender . "\nNorth payload not set\n"; } $sToRender = $sToRender . "
sWestPayloadBackGroundColour) ? " bgcolor=\"" . $this->sWestPayloadBackGroundColour . "\"" : "") . ">"; if (isset($this->oWestPayload)) { $sToRender = $sToRender . "\n" . $this->oWestPayload->render() . "\n"; } else { $sToRender = $sToRender . "\nWest payload not set\n"; } $sToRender = $sToRender . "sCentralPayloadBackGroundColour) ? " bgcolor=\"" . $this->sCentralPayloadBackGroundColour . "\"" : "") . ">\n"; if (isset($this->oCentralPayload)) { // hack to circumvent the crapness of ns 4.79 if (!$default->bNN4 && $this->bScroll) { $sToRender .= "\t
\n \t\t
\n"; } if (isset($this->sErrorMessage)) { $sToRender .= "

$this->sErrorMessage

\n "; } $sToRender = $sToRender . "\n" . $this->oCentralPayload->render() . "\n"; } else { $sToRender = $sToRender . "\nCentral payload not set\n"; } // hack to circumvent the crapness of ns 4.79 if (!$default->bNN4 && $this->bScroll) { $sToRender = $sToRender . "
\n"; } $sToRender = $sToRender . "
\n" . "
\n" . "\n" . "\n"; echo $sToRender; } /** * Returns links to javascript that has 3 functions: * o validateString - validates a string * o validateNumber - validates a number * o setActionAndSubmit - sets the MainForm action to newAction and submits * And includes the dhtml text scrolling routine */ function getJavaScript() { global $default; $sUrl = $default->uiUrl; // hack to circumvent the crapness of ns 4.79 if (!$default->bNN4 && $this->bScroll) { $sJavaScript = "\n"; } $sJavaScript .= "\n"; $sJavaScript .= "\n"; $sJavaScript .= "\n"; $sJavaScript .= "\n"; $sJavaScript .= $this->getHelpJavaScript(); $sJavaScript .= $this->getAdditionalJavaScript(); return $sJavaScript; } function getHelpJavaScript() { global $default; return "\n\n\n\n"; } function setAdditionalJavaScript($sJavaScript) { $this->additionalJavaScript = $sJavaScript; } function getAdditionalJavaScript() { return $this->additionalJavaScript; } } ?>