_rootFolderID; } else { $folderid = $_GET["folderid"]; } $folder = $dms->getFolder($folderid); if (!is_object($folder)) { UI::exitError(getMLText("folder_title", array("foldername" => getMLText("invalid_folder_id"))),getMLText("invalid_folder_id")); } $showtree=showtree(); if (isset($_GET["orderby"]) && strlen($_GET["orderby"])==1 ) { $orderby=$_GET["orderby"]; }else $orderby=""; $folderPathHTML = $folder->getFolderPathHTML(); if ($folder->getAccessMode($user) < M_READ) { UI::exitError(getMLText("folder_title", array("foldername" => $folder->getName())),getMLText("access_denied")); } UI::htmlStartPage(getMLText("folder_title", array("foldername" => $folder->getName()))); UI::globalNavigation($folder); UI::pageNavigation($folderPathHTML, "view_folder", $folder); if ($settings->_enableFolderTree) UI::printTreeNavigation($folderid,$showtree); UI::contentHeading(getMLText("folder_infos")); $owner = $folder->getOwner(); UI::contentContainer("\n\n". "\n". "\n\n\n". "\n". "\n\n
".getMLText("owner").":getEmail()."\">".$owner->getFullName()."". "
".getMLText("comment").":".$folder->getComment()."
\n"); UI::contentHeading(getMLText("folder_contents")); UI::contentContainerStart(); $subFolders = $folder->getSubFolders($orderby); $subFolders = filterAccess($subFolders, $user, M_READ); $documents = $folder->getDocuments($orderby); $documents = filterAccess($documents, $user, M_READ); if ((count($subFolders) > 0)||(count($documents) > 0)){ print ""; print "\n\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n"; print "\n\n\n"; } else printMLText("empty_notify_list"); foreach($subFolders as $subFolder) { $owner = $subFolder->getOwner(); $comment = $subFolder->getComment(); if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; $subsub = $subFolder->getSubFolders(); $subsub = filterAccess($subsub, $user, M_READ); $subdoc = $subFolder->getDocuments(); $subdoc = filterAccess($subdoc, $user, M_READ); print ""; // print ""; print "\n"; print "\n"; print ""; print ""; print ""; print "\n"; } foreach($documents as $document) { $owner = $document->getOwner(); $comment = $document->getComment(); if (strlen($comment) > 50) $comment = substr($comment, 0, 47) . "..."; $docID = $document->getID(); $latestContent = $document->getLatestContent(); $version = $latestContent->getVersion(); $status = $latestContent->getStatus(); print ""; if (file_exists($settings->_contentDir . $latestContent->getPath())) print ""; else print ""; print "\n"; print ""; print ""; print ""; print ""; print "\n"; } if ((count($subFolders) > 0)||(count($documents) > 0)) echo "\n
".getMLText("name")."".getMLText("owner")."".getMLText("status")."".getMLText("version")."".getMLText("comment")."
getID()."&showtree=".$showtree."\">getID()."&showtree=".$showtree."\">" . $subFolder->getName() . "".$owner->getFullName()."".count($subsub)." ".getMLText("folders").", ".count($subdoc)." ".getMLText("documents")."".$comment."
getFileType())."\" title=\"".$latestContent->getMimeType()."\">getFileType())."\" title=\"".$latestContent->getMimeType()."\">" . $document->getName() . "".$owner->getFullName()."".getOverallStatusText($status["status"])."".$version."".$comment."
\n"; UI::contentContainerEnd(); if ($settings->_enableFolderTree) print ""; UI::htmlEndPage(); ?>