$document->getName()) ) );
printTitleBar($document->getFolder());
printCenterStart();
printStartBox(getMLText("edit_document_notify"));
print "
";
if ($document->getAccessMode($user) < M_READWRITE)
{
printMLText("operation_not_allowed");
printGoBack();
}
else
{
//Benachrichtigung löschen ------------------------------------------------------------------------
if ($action == "delnotify")
{
printMLText("deleting_document_notify");
if (isset($userid)) {
if (!is_numeric($userid))
die ("invalid user id");
$document->removeNotify($userid, true);
}
else if (isset($groupid)) {
if (!is_numeric($groupid))
die ("invalid group id");
$document->removeNotify($groupid, false);
}
}
//Benachrichtigung hinzufügen ---------------------------------------------------------------------
else if ($action == "addnotify")
{
printMLText("adding_document_notify");
if ($userid != -1) {
if (!is_numeric($userid))
die ("invalid user id");
$document->addNotify($userid, true);
}
if ($groupid != -1) {
if (!is_numeric($groupid))
die ("invalid group id");
$document->addNotify($groupid, false);
}
}
printMLText("op_finished");
printGoto(array(array($document->getName(), "../out/out.ViewDocument.php?documentid=".$document->getID()),
array(getMLText("document_notify_again"), "../out/out.DocumentNotify.php?documentid=".$document->getID())));
}
print "
";
printEndBox();
printCenterEnd();
printHTMLFoot();
?>