| This folder contains no sub folders |
";
@@ -203,6 +225,14 @@ function renderFolderResults($aResults) {
return $sToRender;
}
+/**
+ * Displays the documents in the browse results
+ *
+ * @param array the browse result objects
+ * @param string the message to display if there are no documents
+ * @param string the message to display if the current user doesn't have permission to view the documents
+ * @param boolean whether to display the complete path to the document or not
+ */
function renderDocumentList($aResults, $sNoDocumentsMessage, $sNoPermissionMessage, $bDisplayFullPath = false) {
// loop through the files and display links
if (count($aResults["documents"]) > 0) {
@@ -269,7 +299,9 @@ function renderPage($aResults, $sBrowseType, $sSortBy, $sSortDirection) {
return $sToRender;
}
-
+/**
+ * Candy striping helper method
+ */
function getColour($iColourCount) {
return ($iColourCount%2 == 0) ? "F5F6EE" : "FFFFFF";
}