From d0ab686fab176dce6cd54734230ab90e6acbd629 Mon Sep 17 00:00:00 2001 From: rob Date: Fri, 21 Feb 2003 11:28:47 +0000 Subject: [PATCH] Added search button redirect functionality --- lib/visualpatterns/NavBar.inc | 47 +++++++++++++++++++++++++++++++++-------------- 1 file changed, 33 insertions(+), 14 deletions(-) diff --git a/lib/visualpatterns/NavBar.inc b/lib/visualpatterns/NavBar.inc index 33846e8..22981bd 100644 --- a/lib/visualpatterns/NavBar.inc +++ b/lib/visualpatterns/NavBar.inc @@ -32,9 +32,24 @@ class NavBar var $logout; var $nwColourbar; - function NavBar() - { + /** variables used for searching */ + var $sBrowseType; + var $iFolderID; + var $iDocumentID; + var $sCategoryName; + var $iDocTypeID; + + function NavBar($sTmpBrowseType, $iTmpFolderID, $iTmpDocumentID, $sTmpCategoryName, $iTmpDocTypeID) + { global $default; + + $this->sBrowseType = $iTmpBrowseType; + $this->iFolderID = $iTmpFolderID; + $this->iDocumentID = $iTmpDocumentID; + $this->sCategoryName = $sTmpCategoryName; + $this->iDoctypeID = $iTmpDocTypeID; + + $this->mdocs = "$default->owl_graphics_url/mdocs/norm.gif"; $this->home = "$default->owl_graphics_url/home/norm.gif"; $this->subscriptions = "$default->owl_graphics_url/subscriptions/norm.gif"; @@ -191,18 +206,22 @@ class NavBar //bar is the actaul html creation of the nav bar $bar= " - - - - - - -
". $row1 ."
- owl_graphics_url/arrow.gif\" > - - owl_graphics_url/search.gif\" align = \"absmiddle\" border=\"0\"> -
". $row3 . "
". $row4 . "
- "; + \n " . + "\n " . + "\n " . + "\n" . + "\n" . + "\n" . + "
". $row1 ."
\n " . + "owl_graphics_url/arrow.gif\" >\n " . + "\n " . + "sBrowseType . "\" />\n " . + "iFolderID . "\" />\n " . + "iDocumentID . "\" />\n " . + "sCategoryName . "\" />\n " . + "iDocTypeID . "\" />\n " . + "owl_root_url/presentation/lookAndFeel/knowledgeTree/documentmanagement/searchDocumentBL.php')\" value=\"Search\" src=\"$default->owl_graphics_url/search.gif\" align = \"absmiddle\" border=\"0\" />\n " . + "
". $row3 . "
". $row4 . "
\n"; //set the bar as html to object $toRender->setHtml($bar); -- libgit2 0.21.4