$document->getName()) ) );
printTitleBar($document->getFolder());
printCenterStart();
printStartBox(getMLText("lock_document"));
print "
";
if ($document->getAccessMode($user) < M_READWRITE)
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
if ($document->isLocked())
{
printMLText("document_already_locked");
printGoBack();
}
else
{
printMLText("locking_document");
if ($document->setLocked($user))
{
printMLText("op_finished");
printGoto(array(array($document->getName(), "../out/out.ViewDocument.php?documentid=".$document->getID())));
}
else
{
printMLText("error_occured");
printGoBack();
}
}
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>