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 = getFolderPathHTML($folder, true). " / ".htmlspecialchars($document->getName()).""; if ($document->getAccessMode($user) < M_READWRITE) { 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"); ?> isLocked()) { $lockingUser = $document->getLockingUser(); print "
"; printMLText("update_locked_msg", array("username" => htmlspecialchars($lockingUser->getFullName()), "email" => $lockingUser->getEmail())); if ($lockingUser->getID() == $user->getID()) printMLText("unlock_cause_locking_user"); else if ($document->getAccessMode($user) == M_ALL) printMLText("unlock_cause_access_mode_all"); else { printMLText("no_update_cause_locked"); print "
"; UI::contentContainerEnd(); UI::htmlEndPage(); exit; } print "
"; } // Retrieve a list of all users and groups that have review / approve // privileges. $docAccess = $document->getApproversList(); ?> _enableLargeFileUpload) { ?>

:
:
: expires()) print " checked";?>>
expires()) print " checked";?>>
:
    getMandatoryReviewers(); foreach ($docAccess["users"] as $usr) { if ($usr->getID()==$user->getID()) continue; $mandatory=false; foreach ($res as $r) if ($r['reviewerUserID']==$usr->getID()) $mandatory=true; if ($mandatory) print "
  • ". htmlspecialchars($usr->getFullName()); else print "
  • ". htmlspecialchars($usr->getFullName()); } ?>
:
    getID()) $mandatory=true; if ($mandatory) print "
  • ".htmlspecialchars($grp->getName()); else print "
  • ".htmlspecialchars($grp->getName()); } ?>
:
    getMandatoryApprovers(); foreach ($docAccess["users"] as $usr) { if ($usr->getID()==$user->getID()) continue; $mandatory=false; foreach ($res as $r) if ($r['approverUserID']==$usr->getID()) $mandatory=true; if ($mandatory) print "
  • ". htmlspecialchars($usr->getFullName()); else print "
  • ". htmlspecialchars($usr->getFullName()); } ?>
:
    getID()) $mandatory=true; if ($mandatory) print "
  • ".htmlspecialchars($grp->getName()); else print "
  • ".htmlspecialchars($grp->getName()); } ?>
">