getFolder();
$targetFolder = getFolder($targetid);
printHTMLHead( getMLText("document_title", array("documentname" => $document->getName()) ) );
printTitleBar($document->getFolder());
printCenterStart();
printStartBox(getMLText("move_document"));
print "
";
if (($document->getAccessMode($user) < M_READWRITE) || ($targetFolder->getAccessMode($user) < M_READWRITE))
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
printMLText("moving_document");
if ($document->setFolder($targetFolder))
{
printMLText("op_finished");
printGoto(array(array($document->getName(), "../out/out.ViewDocument.php?documentid=".$document->getID()),
array($oldFolder->getName(), "../out/out.ViewFolder.php?folderid=".$oldFolder->getID())));
}
else
{
printMLText("error_occured");
printGoBack();
}
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>