Commit b8310b2b74a068a046c35cd2838044979e838770
1 parent
c3e13b2a
updated presentation for no access message for category and document type browsing
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1646 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
5 additions
and
5 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/browseUI.inc
| ... | ... | @@ -91,7 +91,7 @@ function renderCategoryResults($aResults) { |
| 91 | 91 | } else { |
| 92 | 92 | // else the first entry is the category name, so display the documents in the category |
| 93 | 93 | // with full paths |
| 94 | - $sToRender .= renderDocumentList($aResults["documents"], "This category contains no documents", true); | |
| 94 | + $sToRender .= renderDocumentList($aResults, "This category contains no documents", "You don't have access to the documents in this category", true); | |
| 95 | 95 | } |
| 96 | 96 | return $sToRender; |
| 97 | 97 | } |
| ... | ... | @@ -137,7 +137,7 @@ function renderDocumentTypeResults($aResults) { |
| 137 | 137 | } else { |
| 138 | 138 | // else the first entry is the document type name, so display the documents in the document type |
| 139 | 139 | // with full paths |
| 140 | - $sToRender .= renderDocumentList($aResults["documents"], "This document type contains no documents", true); | |
| 140 | + $sToRender .= renderDocumentList($aResults, "This document type contains no documents", "You don't have access to the documents in this document type", true); | |
| 141 | 141 | } |
| 142 | 142 | return $sToRender; |
| 143 | 143 | } |
| ... | ... | @@ -157,19 +157,19 @@ function renderFolderResults($aResults) { |
| 157 | 157 | } |
| 158 | 158 | |
| 159 | 159 | $sToRender .= "<tr><td> </td></tr>"; |
| 160 | - $sToRender .= "<tr><td>" . renderDocumentList($aResults, "This folder contains no documents") . "</td></tr>\n"; | |
| 160 | + $sToRender .= "<tr><td>" . renderDocumentList($aResults, "This folder contains no documents", "You don't have access to the documents in this folder") . "</td></tr>\n"; | |
| 161 | 161 | |
| 162 | 162 | return $sToRender; |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | -function renderDocumentList($aResults, $sNoDocumentsMessage, $bDisplayFullPath = false) { | |
| 165 | +function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessage, $bDisplayFullPath = false) { | |
| 166 | 166 | // loop through the files and display links |
| 167 | 167 | if (count($aResults["documents"]) > 0) { |
| 168 | 168 | for ($i=0; $i<count($aResults["documents"]); $i++) { |
| 169 | 169 | $sToRender .= "<tr><td bgcolor=\"" . getColour($i) . "\">" . displayDocumentLink($aResults["documents"][$i], $bDisplayFullPath) . "</td></tr>"; |
| 170 | 170 | } |
| 171 | 171 | } else if ($aResults["accessDenied"]) { |
| 172 | - $sToRender .= "<tr><td>You don't have access to the documents in this folder</td></tr>"; | |
| 172 | + $sToRender .= "<tr><td>$sNoPermissionMessage</td></tr>"; | |
| 173 | 173 | } else { |
| 174 | 174 | $sToRender .= "<tr><td>$sNoDocumentsMessage</td></tr>"; |
| 175 | 175 | } | ... | ... |