\n"; print "\t\n"; print "\t\n"; print "\t\n"; print "\t\n"; print "\n"; } if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } $documentid = $_GET["documentid"]; $document = $dms->getDocument($documentid); if (!is_object($document)) { UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); } $folder = $document->getFolder(); $docPathHTML = $folder->getFolderPathHTML(true). " / ".$document->getName().""; if ($document->getAccessMode($user) < M_ALL) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied")); } UI::htmlStartPage(getMLText("document_title", array("documentname" => $document->getName()))); UI::globalNavigation($folder); UI::pageNavigation($docPathHTML, "view_document"); ?> getAllUsers(); UI::contentHeading(getMLText("edit_document_access")); UI::contentContainerStart(); if ($user->isAdmin()) { UI::contentSubHeading(getMLText("set_owner")); ?>
inheritsAccess()) { printMLText("inherits_access_msg", array( "copyurl" => "../op/op.DocumentAccess.php?documentid=".$documentid."&action=notinherit&mode=copy", "emptyurl" => "../op/op.DocumentAccess.php?documentid=".$documentid."&action=notinherit&mode=empty")); UI::contentContainerEnd(); UI::htmlEndPage(); exit(); } printMLText("does_not_inherit_access_msg", array("inheriturl" => "../op/op.DocumentAccess.php?documentid=".$documentid."&action=inherit")); $accessList = $document->getAccessList(); UI::contentSubHeading(getMLText("default_access")); ?> "; foreach ($accessList["users"] as $userAccess) { $userObj = $userAccess->getUser(); print "\n"; } foreach ($accessList["groups"] as $groupAccess) { $groupObj = $groupAccess->getGroup(); $mode = $groupAccess->getMode(); print ""; } print "