fileSystemRoot/lib/visualpatterns/PatternMainPage.inc");
require_once("$default->fileSystemRoot/lib/visualpatterns/PatternImage.inc");
require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableLinks.inc");
require_once("$default->fileSystemRoot/lib/visualpatterns/PatternTableSqlQuery.inc");
require_once("$default->fileSystemRoot/lib/visualpatterns/NavBar.inc");
// create the navbar and north payload
$navbar = new NavBar($fBrowseType, $fFolderID, $fDocumentID, $fCategoryName, $fDocTypeID);
if ($sectionName == "")
//get the section name if not specified in the url
{
$sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
}
//highlight the respective section
$navbar->setHighlightedSection($sectionName);
// setup nw payload
$colourBar = $navbar->getNWColourbar();
$image = new PatternImage("$default->graphicsUrl/tree.gif");
$image->setImgSize(114, 96);
$img = $image->render();
$nwestLoad = "
| ". $img ." |
 |
";
$nwPayLoad = new PatternCustom;
$nwPayLoad ->setHtml($nwestLoad);
// set up the west payload
//get section links
if ($sectionName != "General") {
$sectionArray = $default->siteMap->getSectionLinks($sectionName);
$output1["links"] = $sectionArray["links"];
$output2["descriptions"] = $sectionArray["descriptions"];
//create links
$westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 40 , 1 ,1,null);
$westRender = $westLinks->render();
} else {
$westLinks = new PatternTableLinks(array(), array(), 40 , 1 ,1,null);
$westRender = $westLinks->render();
}
//set up links
$cAdmin = "$default->graphicsUrl/leftnav/cadmin.gif" ;
$link = "$default->graphicsUrl/leftnav/links.gif" ;
//setup the westpayload
// TODO -> change to links the images as well
$westLoad = "
";
$westPayLoad = new PatternCustom;
$westPayLoad->setHtml($westLoad);
$main = new PatternMainPage();
$main->setNorthPayload($navbar);
$main->setNorthWestPayload($nwPayLoad);
$main->setWestPayload($westPayLoad);
?>