owl_fs_root/presentation/Html.inc"); /** * $Id$ * * Document browsing page html UI building functions. * * Licensed under the GNU GPL. For full terms see the file COPYING. * * @version $Revision$ * @author Michael Joseph , Jam Warehouse (Pty) Ltd, South Africa * @package presentation.documentmanagement */ function browseTypeSelect($sBrowseType) { return "\n \tView documents by: Folders\n" . " Category\n" . " Document Type\n"; } function displayCategoryPathLink($sCategoryName) { return "Categories > " . displayCategoryLink($sCategoryName); } function displayCategoryLink($sCategoryName) { return generateLink($_SERVER["PHP_SELF"], "fBrowseType=category&fCategoryName=$sCategoryName", $sCategoryName); } function displayDocumentTypeLink($aDocumentType) { return generateLink($_SERVER["PHP_SELF"], "fBrowseType=documentType&fDocumentTypeID=" . $aDocumentType["id"], $aDocumentType["name"]); } function displayDocumentTypePathLink($aDocumentType) { return "Document Types > " . displayDocumentTypeLink($aDocumentType); } function displayDocumentLink($oDocument, $bDisplayFullPath = false) { global $default; $sIconPath = generateImage($oDocument->getMimeTypeIconUrl()); return generateLink("$default->owl_root_url/control.php?action=viewDocument", "fDocumentID=" . $oDocument->getID(), ($sIconPath ? $sIconPath : "") . ($bDisplayFullPath ? implode(" > ", $oDocument->getDocumentPathAsArray($oDocument->getID())) : $oDocument->getName())); } ?>