getParent();
$targetFolder = getFolder($targetid);
printHTMLHead( getMLText("folder_title", array("foldername" => $folder->getName()) ) );
printTitleBar($folder);
printCenterStart();
printStartBox(getMLText("move_folder"));
print "
";
if (($folder->getAccessMode($user) < M_READWRITE) || ($targetFolder->getAccessMode($user) < M_READWRITE))
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
printMLText("moving_folder");
if ($folder->setParent($targetFolder))
{
printMLText("op_finished");
printGoto(array(array($folder->getName(), "../out/out.ViewFolder.php?folderid=".$folder->getID()),
array($oldParent->getName(), "../out/out.ViewFolder.php?folderid=".$oldParent->getID())));
}
else
{
printMLText("error_occured");
printGoBack();
}
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>