Commit fb13ea4cfa8445b99f4ceb46a1135a217d430744
1 parent
6626913b
reformatted
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1094 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
2 changed files
with
157 additions
and
170 deletions
lib/visualpatterns/NavBar.inc
| @@ -19,150 +19,137 @@ global $default; | @@ -19,150 +19,137 @@ global $default; | ||
| 19 | * @author Mukhtar Dharsey | 19 | * @author Mukhtar Dharsey |
| 20 | * @date 22 January 2003 | 20 | * @date 22 January 2003 |
| 21 | */ | 21 | */ |
| 22 | -class NavBar | ||
| 23 | -{ | ||
| 24 | - //variable used to pass highlighting | ||
| 25 | - var $home; | ||
| 26 | - var $mdocs; | ||
| 27 | - var $subscriptions; | ||
| 28 | - var $asearch; | ||
| 29 | - var $admin; | ||
| 30 | - var $prefs; | ||
| 31 | - var $help; | ||
| 32 | - var $logout; | ||
| 33 | - var $nwColourbar; | ||
| 34 | - | ||
| 35 | - /** variables used for searching */ | ||
| 36 | - var $sBrowseType; | ||
| 37 | - var $iFolderID; | ||
| 38 | - var $iDocumentID; | ||
| 39 | - var $sCategoryName; | ||
| 40 | - var $iDocTypeID; | ||
| 41 | - | ||
| 42 | - function NavBar($sTmpBrowseType, $iTmpFolderID, $iTmpDocumentID, $sTmpCategoryName, $iTmpDocTypeID) | ||
| 43 | - { | ||
| 44 | - global $default; | ||
| 45 | - | ||
| 46 | - $this->sBrowseType = $iTmpBrowseType; | ||
| 47 | - $this->iFolderID = $iTmpFolderID; | ||
| 48 | - $this->iDocumentID = $iTmpDocumentID; | ||
| 49 | - $this->sCategoryName = $sTmpCategoryName; | ||
| 50 | - $this->iDoctypeID = $iTmpDocTypeID; | ||
| 51 | - | ||
| 52 | - | ||
| 53 | - $this->mdocs = "$default->graphicsUrl/mdocs/norm.gif"; | ||
| 54 | - $this->home = "$default->graphicsUrl/home/norm.gif"; | ||
| 55 | - $this->subscriptions = "$default->graphicsUrl/subscriptions/norm.gif"; | ||
| 56 | - $this->asearch = "$default->graphicsUrl/asearch/norm.gif"; | ||
| 57 | - $this->admin = "$default->graphicsUrl/admin/norm.gif"; | ||
| 58 | - $this->prefs = "$default->graphicsUrl/prefs/norm.gif"; | ||
| 59 | - $this->help = "$default->graphicsUrl/help/norm.gif"; | ||
| 60 | - $this->logout = "$default->graphicsUrl/logout/norm.gif"; | ||
| 61 | - | ||
| 62 | - } | ||
| 63 | - | ||
| 64 | - | ||
| 65 | - /** | ||
| 66 | - * gets the url for the colour bar | ||
| 67 | - * | ||
| 68 | - * @param The section that needs to be highlighted | ||
| 69 | - */ | ||
| 70 | - function getNWColourbar() | ||
| 71 | - { | ||
| 72 | - return $this->nwColourBar; | ||
| 73 | - } | ||
| 74 | - | ||
| 75 | - | ||
| 76 | - | ||
| 77 | - /** | ||
| 78 | - * sets a highlighted section varaibles | ||
| 79 | - * | ||
| 80 | - * @param The section that needs to be highlighted | ||
| 81 | - */ | ||
| 82 | - function setHighlightedSection($section) | ||
| 83 | - { | ||
| 84 | - global $default; | ||
| 85 | - | ||
| 86 | - // check for highlighting..and highlight as required | ||
| 87 | - if($section == "General") | ||
| 88 | - { | ||
| 89 | - $this->home = "$default->graphicsUrl/home/over.gif"; | ||
| 90 | - $this->nwColourBar = "$default->graphicsUrl/home/def.gif"; | ||
| 91 | - } | ||
| 92 | - | ||
| 93 | - if(($section == "Manage Documents") || ($section == "Manage Categories") || ($section == "Manage Document Types")) | ||
| 94 | - { | ||
| 95 | - $this->mdocs = "$default->graphicsUrl/mdocs/over.gif"; | ||
| 96 | - $this->nwColourBar = "$default->graphicsUrl/mdocs/def.gif"; | ||
| 97 | - } | ||
| 98 | - | ||
| 99 | - if($section == "Subscriptions") | ||
| 100 | - { | ||
| 101 | - $this->subscriptions = "$default->graphicsUrl/subscriptions/over.gif"; | ||
| 102 | - $this->nwColourBar = "$default->graphicsUrl/subscriptions/def.gif"; | ||
| 103 | - } | ||
| 104 | - | ||
| 105 | - if($section == "Advanced Search") | ||
| 106 | - { | ||
| 107 | - $this->asearch = "$default->graphicsUrl/asearch/over.gif"; | ||
| 108 | - $this->nwColourBar = "$default->graphicsUrl/asearch/def.gif"; | ||
| 109 | - } | ||
| 110 | - | ||
| 111 | - | ||
| 112 | - if(substr($section, -14) == "Administration") | ||
| 113 | - { | ||
| 114 | - $this->admin = "$default->graphicsUrl/admin/over.gif"; | ||
| 115 | - $this->nwColourBar = "$default->graphicsUrl/admin/def.gif"; | ||
| 116 | - } | ||
| 117 | - | ||
| 118 | - if($section == "Preferences") | ||
| 119 | - { | ||
| 120 | - $this->prefs = "$default->graphicsUrl/prefs/over.gif"; | ||
| 121 | - $this->nwColourBar = "$default->graphicsUrl/prefs/def.gif"; | ||
| 122 | - } | ||
| 123 | - | ||
| 124 | - if($section == "Help") | ||
| 125 | - { | ||
| 126 | - $this->help = "$default->graphicsUrl/help/over.gif"; | ||
| 127 | - $this->nwColourBar = "$default->graphicsUrl/help/def.gif"; | ||
| 128 | - } | ||
| 129 | - | ||
| 130 | - | ||
| 131 | - if($section == "Logout") | ||
| 132 | - { | ||
| 133 | - $this->logout = "$default->graphicsUrl/logout/over.gif"; | ||
| 134 | - $this->nwColourBar = "$default->graphicsUrl/logout/def.gif"; | ||
| 135 | - } | ||
| 136 | - } | ||
| 137 | - | ||
| 138 | - | ||
| 139 | - | ||
| 140 | - /** | ||
| 141 | - * | ||
| 142 | - * this function creates the navbar for a specific page... | ||
| 143 | - * | ||
| 144 | - * | ||
| 145 | - */ | ||
| 146 | - function render() | ||
| 147 | - { | ||
| 148 | - global $default; | ||
| 149 | - | ||
| 150 | - //set up headings for row 1 and 2 | ||
| 151 | - $heading = "$default->graphicsUrl/heading.gif"; | ||
| 152 | - $hStretched = "$default->graphicsUrl/hrepeat.gif"; | ||
| 153 | - | ||
| 154 | - // set colour pics for row 4 of navbar | ||
| 155 | - $colourHome = "$default->graphicsUrl/home/colour.gif"; | ||
| 156 | - $colourmdocs = "$default->graphicsUrl/mdocs/colour.gif"; | ||
| 157 | - $coloursubscriptions = "$default->graphicsUrl/subscriptions/colour.gif"; | ||
| 158 | - $colourasearch = "$default->graphicsUrl/asearch/colour.gif"; | ||
| 159 | - $colouradmin = "$default->graphicsUrl/admin/colour.gif"; | ||
| 160 | - $colourprefs = "$default->graphicsUrl/prefs/colour.gif"; | ||
| 161 | - $colourhelp = "$default->graphicsUrl/help/colour.gif"; | ||
| 162 | - $colourlogout = "$default->graphicsUrl/logout/colour.gif"; | ||
| 163 | - | ||
| 164 | - | ||
| 165 | - // get list of sections | 22 | +class NavBar { |
| 23 | + //variable used to pass highlighting | ||
| 24 | + var $home; | ||
| 25 | + var $mdocs; | ||
| 26 | + var $subscriptions; | ||
| 27 | + var $asearch; | ||
| 28 | + var $admin; | ||
| 29 | + var $prefs; | ||
| 30 | + var $help; | ||
| 31 | + var $logout; | ||
| 32 | + var $nwColourbar; | ||
| 33 | + | ||
| 34 | + /** variables used for searching */ | ||
| 35 | + var $sBrowseType; | ||
| 36 | + var $iFolderID; | ||
| 37 | + var $iDocumentID; | ||
| 38 | + var $sCategoryName; | ||
| 39 | + var $iDocTypeID; | ||
| 40 | + | ||
| 41 | + function NavBar($sTmpBrowseType, $iTmpFolderID, $iTmpDocumentID, $sTmpCategoryName, $iTmpDocTypeID) { | ||
| 42 | + global $default; | ||
| 43 | + | ||
| 44 | + $this->sBrowseType = $iTmpBrowseType; | ||
| 45 | + $this->iFolderID = $iTmpFolderID; | ||
| 46 | + $this->iDocumentID = $iTmpDocumentID; | ||
| 47 | + $this->sCategoryName = $sTmpCategoryName; | ||
| 48 | + $this->iDoctypeID = $iTmpDocTypeID; | ||
| 49 | + | ||
| 50 | + | ||
| 51 | + $this->mdocs = "$default->graphicsUrl/mdocs/norm.gif"; | ||
| 52 | + $this->home = "$default->graphicsUrl/home/norm.gif"; | ||
| 53 | + $this->subscriptions = "$default->graphicsUrl/subscriptions/norm.gif"; | ||
| 54 | + $this->asearch = "$default->graphicsUrl/asearch/norm.gif"; | ||
| 55 | + $this->admin = "$default->graphicsUrl/admin/norm.gif"; | ||
| 56 | + $this->prefs = "$default->graphicsUrl/prefs/norm.gif"; | ||
| 57 | + $this->help = "$default->graphicsUrl/help/norm.gif"; | ||
| 58 | + $this->logout = "$default->graphicsUrl/logout/norm.gif"; | ||
| 59 | + | ||
| 60 | + } | ||
| 61 | + | ||
| 62 | + | ||
| 63 | + /** | ||
| 64 | + * gets the url for the colour bar | ||
| 65 | + * | ||
| 66 | + * @param The section that needs to be highlighted | ||
| 67 | + */ | ||
| 68 | + function getNWColourbar() { | ||
| 69 | + return $this->nwColourBar; | ||
| 70 | + } | ||
| 71 | + | ||
| 72 | + | ||
| 73 | + | ||
| 74 | + /** | ||
| 75 | + * sets a highlighted section varaibles | ||
| 76 | + * | ||
| 77 | + * @param The section that needs to be highlighted | ||
| 78 | + */ | ||
| 79 | + function setHighlightedSection($section) { | ||
| 80 | + global $default; | ||
| 81 | + | ||
| 82 | + // check for highlighting..and highlight as required | ||
| 83 | + if($section == "General") { | ||
| 84 | + $this->home = "$default->graphicsUrl/home/over.gif"; | ||
| 85 | + $this->nwColourBar = "$default->graphicsUrl/home/def.gif"; | ||
| 86 | + } | ||
| 87 | + | ||
| 88 | + if(($section == "Manage Documents") || ($section == "Manage Categories") || ($section == "Manage Document Types")) { | ||
| 89 | + $this->mdocs = "$default->graphicsUrl/mdocs/over.gif"; | ||
| 90 | + $this->nwColourBar = "$default->graphicsUrl/mdocs/def.gif"; | ||
| 91 | + } | ||
| 92 | + | ||
| 93 | + if($section == "Subscriptions") { | ||
| 94 | + $this->subscriptions = "$default->graphicsUrl/subscriptions/over.gif"; | ||
| 95 | + $this->nwColourBar = "$default->graphicsUrl/subscriptions/def.gif"; | ||
| 96 | + } | ||
| 97 | + | ||
| 98 | + if($section == "Advanced Search") { | ||
| 99 | + $this->asearch = "$default->graphicsUrl/asearch/over.gif"; | ||
| 100 | + $this->nwColourBar = "$default->graphicsUrl/asearch/def.gif"; | ||
| 101 | + } | ||
| 102 | + | ||
| 103 | + | ||
| 104 | + if(substr($section, -14) == "Administration") { | ||
| 105 | + $this->admin = "$default->graphicsUrl/admin/over.gif"; | ||
| 106 | + $this->nwColourBar = "$default->graphicsUrl/admin/def.gif"; | ||
| 107 | + } | ||
| 108 | + | ||
| 109 | + if($section == "Preferences") { | ||
| 110 | + $this->prefs = "$default->graphicsUrl/prefs/over.gif"; | ||
| 111 | + $this->nwColourBar = "$default->graphicsUrl/prefs/def.gif"; | ||
| 112 | + } | ||
| 113 | + | ||
| 114 | + if($section == "Help") { | ||
| 115 | + $this->help = "$default->graphicsUrl/help/over.gif"; | ||
| 116 | + $this->nwColourBar = "$default->graphicsUrl/help/def.gif"; | ||
| 117 | + } | ||
| 118 | + | ||
| 119 | + | ||
| 120 | + if($section == "Logout") { | ||
| 121 | + $this->logout = "$default->graphicsUrl/logout/over.gif"; | ||
| 122 | + $this->nwColourBar = "$default->graphicsUrl/logout/def.gif"; | ||
| 123 | + } | ||
| 124 | + } | ||
| 125 | + | ||
| 126 | + | ||
| 127 | + | ||
| 128 | + /** | ||
| 129 | + * | ||
| 130 | + * this function creates the navbar for a specific page... | ||
| 131 | + * | ||
| 132 | + * | ||
| 133 | + */ | ||
| 134 | + function render() { | ||
| 135 | + global $default; | ||
| 136 | + | ||
| 137 | + //set up headings for row 1 and 2 | ||
| 138 | + $heading = "$default->graphicsUrl/heading.gif"; | ||
| 139 | + $hStretched = "$default->graphicsUrl/hrepeat.gif"; | ||
| 140 | + | ||
| 141 | + // set colour pics for row 4 of navbar | ||
| 142 | + $colourHome = "$default->graphicsUrl/home/colour.gif"; | ||
| 143 | + $colourmdocs = "$default->graphicsUrl/mdocs/colour.gif"; | ||
| 144 | + $coloursubscriptions = "$default->graphicsUrl/subscriptions/colour.gif"; | ||
| 145 | + $colourasearch = "$default->graphicsUrl/asearch/colour.gif"; | ||
| 146 | + $colouradmin = "$default->graphicsUrl/admin/colour.gif"; | ||
| 147 | + $colourprefs = "$default->graphicsUrl/prefs/colour.gif"; | ||
| 148 | + $colourhelp = "$default->graphicsUrl/help/colour.gif"; | ||
| 149 | + $colourlogout = "$default->graphicsUrl/logout/colour.gif"; | ||
| 150 | + | ||
| 151 | + | ||
| 152 | + // get list of sections | ||
| 166 | 153 | ||
| 167 | $aTopMenuLinks = array(generateControllerUrl("dashboard"), | 154 | $aTopMenuLinks = array(generateControllerUrl("dashboard"), |
| 168 | generateControllerUrl($default->siteMap->getDefaultAction("Manage Documents")), | 155 | generateControllerUrl($default->siteMap->getDefaultAction("Manage Documents")), |
| @@ -171,7 +158,7 @@ class NavBar | @@ -171,7 +158,7 @@ class NavBar | ||
| 171 | generateControllerUrl($default->siteMap->getDefaultAction("Administration")), | 158 | generateControllerUrl($default->siteMap->getDefaultAction("Administration")), |
| 172 | generateControllerUrl($default->siteMap->getDefaultAction("Preferences")), | 159 | generateControllerUrl($default->siteMap->getDefaultAction("Preferences")), |
| 173 | //generateControllerUrl($default->siteMap->getDefaultAction("Help")), | 160 | //generateControllerUrl($default->siteMap->getDefaultAction("Help")), |
| 174 | - "help", | 161 | + "help", |
| 175 | generateControllerUrl($default->siteMap->getDefaultAction("Logout"))); | 162 | generateControllerUrl($default->siteMap->getDefaultAction("Logout"))); |
| 176 | 163 | ||
| 177 | 164 | ||
| @@ -190,15 +177,15 @@ class NavBar | @@ -190,15 +177,15 @@ class NavBar | ||
| 190 | $row4MenuImages = array($colourHome,$colourmdocs,$coloursubscriptions,$colourasearch,$colouradmin,$colourprefs,$colourhelp,$colourlogout); | 177 | $row4MenuImages = array($colourHome,$colourmdocs,$coloursubscriptions,$colourasearch,$colouradmin,$colourprefs,$colourhelp,$colourlogout); |
| 191 | 178 | ||
| 192 | //set up the links | 179 | //set up the links |
| 193 | - $sTopMenu = "<table width=\"100%\" height=\"100%\" cellspacing = \"0\">\n<tr>\n"; | ||
| 194 | - for ($i = 0; $i < count($aTopMenuLinks); $i++) { | ||
| 195 | - if (strcmp($aTopMenuLinks[$i], "help") == 0) { | ||
| 196 | - $sTopMenu .= "<td cellspacing = \"20\"><input type=\"image\" src=\"" . $aTopMenuImages[$i] . "\" onClick=\"return helpWindow();\" border=\"0\" /></a></td>\n"; | ||
| 197 | - } else { | ||
| 198 | - $sTopMenu .= "<td cellspacing = \"20\">" . (strlen($aTopMenuLinks[$i]) > 0 ? "<a href=\"" . $aTopMenuLinks[$i] . "\">" : "") . "<img src=\"" . $aTopMenuImages[$i] . "\" border=\"0\" /></a></td>\n"; | ||
| 199 | - } | ||
| 200 | - } | ||
| 201 | - $sTopMenu .= "</tr>\n</table>\n"; | 180 | + $sTopMenu = "<table width=\"100%\" height=\"100%\" cellspacing = \"0\">\n<tr>\n"; |
| 181 | + for ($i = 0; $i < count($aTopMenuLinks); $i++) { | ||
| 182 | + if (strcmp($aTopMenuLinks[$i], "help") == 0) { | ||
| 183 | + $sTopMenu .= "<td cellspacing = \"20\"><input type=\"image\" src=\"" . $aTopMenuImages[$i] . "\" onClick=\"return helpWindow();\" border=\"0\" /></a></td>\n"; | ||
| 184 | + } else { | ||
| 185 | + $sTopMenu .= "<td cellspacing = \"20\">" . (strlen($aTopMenuLinks[$i]) > 0 ? "<a href=\"" . $aTopMenuLinks[$i] . "\">" : "") . "<img src=\"" . $aTopMenuImages[$i] . "\" border=\"0\" /></a></td>\n"; | ||
| 186 | + } | ||
| 187 | + } | ||
| 188 | + $sTopMenu .= "</tr>\n</table>\n"; | ||
| 202 | $oColourTableLinks = new PatternTableLinks($aTopMenuLinks, null, 1, 8,2,$row4MenuImages); | 189 | $oColourTableLinks = new PatternTableLinks($aTopMenuLinks, null, 1, 8,2,$row4MenuImages); |
| 203 | 190 | ||
| 204 | // set up rows | 191 | // set up rows |
| @@ -208,7 +195,7 @@ class NavBar | @@ -208,7 +195,7 @@ class NavBar | ||
| 208 | $row2 =""; | 195 | $row2 =""; |
| 209 | //row 3 will be the heading subsections | 196 | //row 3 will be the heading subsections |
| 210 | //$row3 = $oPatternTableLinks->render(); | 197 | //$row3 = $oPatternTableLinks->render(); |
| 211 | - $row3 = $sTopMenu; | 198 | + $row3 = $sTopMenu; |
| 212 | //array of coloured section images | 199 | //array of coloured section images |
| 213 | $row4 = $oColourTableLinks->render(); | 200 | $row4 = $oColourTableLinks->render(); |
| 214 | 201 | ||
| @@ -219,20 +206,20 @@ class NavBar | @@ -219,20 +206,20 @@ class NavBar | ||
| 219 | <Table cellpadding = \"1\" cellspacing = \"1\" border=\"1\" width=\"100%\" height=\"100%\">\n " . | 206 | <Table cellpadding = \"1\" cellspacing = \"1\" border=\"1\" width=\"100%\" height=\"100%\">\n " . |
| 220 | "<tr height=\"20%\"><td background = " . $hStretched ." width =\"100%\">". $row1 ."</td></tr>\n " . | 207 | "<tr height=\"20%\"><td background = " . $hStretched ." width =\"100%\">". $row1 ."</td></tr>\n " . |
| 221 | "<tr height=\"30%\"> <td VALIGN = \"absmiddle\" background = " . $hStretched ." width =\"100%\" NOWRAP >\n " . | 208 | "<tr height=\"30%\"> <td VALIGN = \"absmiddle\" background = " . $hStretched ." width =\"100%\" NOWRAP >\n " . |
| 222 | - "<img align = \"absmiddle\" src = \"$default->graphicsUrl/arrow.gif\" ></img>\n " . | ||
| 223 | - "<input name=\"fSearchText\" />\n" . | 209 | + "<img align = \"absmiddle\" src = \"$default->graphicsUrl/arrow.gif\" ></img>\n " . |
| 210 | + "<input name=\"fSearchText\" />\n" . | ||
| 224 | //"<INPUT type=\"text\" name=\"fSearchText\" width=\"30\" height = \"10\" align = \"absmiddle\" />\n " . | 211 | //"<INPUT type=\"text\" name=\"fSearchText\" width=\"30\" height = \"10\" align = \"absmiddle\" />\n " . |
| 225 | - "<INPUT type=\"hidden\" name=\"fBrowseType\" value=\"" . $this->sBrowseType . "\" />\n " . | ||
| 226 | - "<INPUT type=\"hidden\" name=\"fFolderID\" value=\"" . $this->iFolderID . "\" />\n " . | ||
| 227 | - "<INPUT type=\"hidden\" name=\"fDocumentID\" value=\"" . $this->iDocumentID . "\" />\n " . | ||
| 228 | - "<INPUT type=\"hidden\" name=\"fCategoryName\" value=\"" . $this->sCategoryName . "\" />\n " . | ||
| 229 | - "<INPUT type=\"hidden\" name=\"fDocTypeID\" value=\"" . $this->iDocTypeID . "\" />\n " . | ||
| 230 | - "<INPUT type=\"button\" onClick=\"setActionAndSubmitAsGet('http://www.google.com')\" value=\"Search\" src=\"$default->graphicsUrl/search.gif\" align = \"absmiddle\" border=\"0\" />\n " . | 212 | + "<INPUT type=\"hidden\" name=\"fBrowseType\" value=\"" . $this->sBrowseType . "\" />\n " . |
| 213 | + "<INPUT type=\"hidden\" name=\"fFolderID\" value=\"" . $this->iFolderID . "\" />\n " . | ||
| 214 | + "<INPUT type=\"hidden\" name=\"fDocumentID\" value=\"" . $this->iDocumentID . "\" />\n " . | ||
| 215 | + "<INPUT type=\"hidden\" name=\"fCategoryName\" value=\"" . $this->sCategoryName . "\" />\n " . | ||
| 216 | + "<INPUT type=\"hidden\" name=\"fDocTypeID\" value=\"" . $this->iDocTypeID . "\" />\n " . | ||
| 217 | + "<INPUT type=\"button\" onClick=\"setActionAndSubmitAsGet('http://www.google.com')\" value=\"Search\" src=\"$default->graphicsUrl/search.gif\" align = \"absmiddle\" border=\"0\" />\n " . | ||
| 231 | "</td>\n " . | 218 | "</td>\n " . |
| 232 | "</tr>\n" . | 219 | "</tr>\n" . |
| 233 | "<tr height=\"25%\" ><td width =\"10%\">". $row3 . "</td></tr>\n" . | 220 | "<tr height=\"25%\" ><td width =\"10%\">". $row3 . "</td></tr>\n" . |
| 234 | "<tr height=\"25%\"><td width =\"100%\">". $row4 . "</td></tr>\n" . | 221 | "<tr height=\"25%\"><td width =\"100%\">". $row4 . "</td></tr>\n" . |
| 235 | - "</table>\n"; | 222 | + "</table>\n"; |
| 236 | 223 | ||
| 237 | //set the bar as html to object | 224 | //set the bar as html to object |
| 238 | $toRender->setHtml($bar); | 225 | $toRender->setHtml($bar); |
presentation/webpageTemplate.inc
| @@ -22,9 +22,9 @@ $navbar = new NavBar($fBrowseType, $fFolderID, $fDocumentID, $fCategoryName, $fD | @@ -22,9 +22,9 @@ $navbar = new NavBar($fBrowseType, $fFolderID, $fDocumentID, $fCategoryName, $fD | ||
| 22 | 22 | ||
| 23 | 23 | ||
| 24 | if ($sectionName == "") | 24 | if ($sectionName == "") |
| 25 | -//get the section name if not specified in the url | 25 | + //get the section name if not specified in the url |
| 26 | { | 26 | { |
| 27 | - $sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); | 27 | + $sectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"]))); |
| 28 | } | 28 | } |
| 29 | 29 | ||
| 30 | 30 | ||
| @@ -56,13 +56,13 @@ if ($sectionName != "General") { | @@ -56,13 +56,13 @@ if ($sectionName != "General") { | ||
| 56 | $output1["links"] = $sectionArray["links"]; | 56 | $output1["links"] = $sectionArray["links"]; |
| 57 | $output2["descriptions"] = $sectionArray["descriptions"]; | 57 | $output2["descriptions"] = $sectionArray["descriptions"]; |
| 58 | 58 | ||
| 59 | - //create links | ||
| 60 | - $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 40 , 1 ,1,null); | ||
| 61 | - $westRender = $westLinks->render(); | 59 | + //create links |
| 60 | + $westLinks = new PatternTableLinks($sectionArray["links"], $sectionArray["descriptions"], 40 , 1 ,1,null); | ||
| 61 | + $westRender = $westLinks->render(); | ||
| 62 | 62 | ||
| 63 | } else { | 63 | } else { |
| 64 | $westLinks = new PatternTableLinks(array(), array(), 40 , 1 ,1,null); | 64 | $westLinks = new PatternTableLinks(array(), array(), 40 , 1 ,1,null); |
| 65 | - $westRender = $westLinks->render(); | 65 | + $westRender = $westLinks->render(); |
| 66 | 66 | ||
| 67 | } | 67 | } |
| 68 | 68 |