$document->getName()) ) );
printTitleBar($document->getFolder());
printCenterStart();
printStartBox(getMLText("edit_document_props"));
print "
";
if ($document->getAccessMode($user) < M_READWRITE)
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
printMLText("editing_document_props");
$fname = sanitizeString($fname);
$comment = sanitizeString($comment);
$keywords = sanitizeString($keywords);
if (!is_numeric($sequence) && $sequence != "keep")
die ("invalid sequence value");
if (
(($document->getName() == $fname) || $document->setName($fname))
&& (($document->getComment() == $comment) || $document->setComment($comment))
&& (($document->getKeywords() == $keywords) || $document->setKeywords($keywords))
&& (($sequence == "keep") || $document->setSequence($sequence))
)
{
printMLText("op_finished");
printGoto(array(array($document->getName(), "../out/out.ViewDocument.php?documentid=".$document->getID()),
array(getMLText("edit_document_props_again"), "../out/out.EditDocument.php?documentid=".$document->getID())));
}
else
{
printMLText("error_occured");
printGoBack();
}
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>