diff --git a/views/bootstrap/class.DocumentNotify.php b/views/bootstrap/class.DocumentNotify.php index b327f7095..13bb11a58 100644 --- a/views/bootstrap/class.DocumentNotify.php +++ b/views/bootstrap/class.DocumentNotify.php @@ -79,59 +79,17 @@ $(document).ready( function() { $this->pageNavigation($this->getFolderPathHTML($folder, true, $document), "view_document", $document); $this->contentHeading(getMLText("edit_existing_notify")); - $this->contentContainerStart(); $userNotifyIDs = array(); $groupNotifyIDs = array(); - print "\n"; - if ((count($notifyList["users"]) == 0) && (count($notifyList["groups"]) == 0)) { - print ""; - } - else { - foreach ($notifyList["users"] as $userNotify) { - print ""; - print ""; - print ""; - if ($user->isAdmin() || $user->getID() == $userNotify->getID()) { - print "\n"; - echo createHiddenFieldWithKey('documentnotify')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print ""; - print "\n"; - }else print ""; - print ""; - $userNotifyIDs[] = $userNotify->getID(); - } - foreach ($notifyList["groups"] as $groupNotify) { - print ""; - print ""; - print ""; - if ($user->isAdmin() || $groupNotify->isMember($user,true)) { - print "\n"; - echo createHiddenFieldWithKey('documentnotify')."\n"; - print "getID()."\">\n"; - print "\n"; - print "getID()."\">\n"; - print ""; - }else print ""; - print ""; - $groupNotifyIDs[] = $groupNotify->getID(); - } - } - print "
".getMLText("empty_notify_list")."
" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "
"; - print ""; - print "
" . htmlspecialchars($groupNotify->getName()) . "
"; - print ""; - print "\n"; - print "
\n"; + echo "
\n"; + echo "
\n"; + $this->contentContainerStart(); ?> -
-
+ @@ -176,11 +134,57 @@ $(document).ready( function() { ); $this->formSubmit(getMLText('add')); ?> -
- contentContainerEnd(); + echo "
\n"; + echo "
\n"; + print "\n"; + if ((count($notifyList["users"]) == 0) && (count($notifyList["groups"]) == 0)) { + print ""; + } + else { + foreach ($notifyList["users"] as $userNotify) { + print ""; + print ""; + print ""; + if ($user->isAdmin() || $user->getID() == $userNotify->getID()) { + print "\n"; + echo createHiddenFieldWithKey('documentnotify')."\n"; + print "getID()."\">\n"; + print "\n"; + print "getID()."\">\n"; + print ""; + print "\n"; + }else print ""; + print ""; + $userNotifyIDs[] = $userNotify->getID(); + } + foreach ($notifyList["groups"] as $groupNotify) { + print ""; + print ""; + print ""; + if ($user->isAdmin() || $groupNotify->isMember($user,true)) { + print "\n"; + echo createHiddenFieldWithKey('documentnotify')."\n"; + print "getID()."\">\n"; + print "\n"; + print "getID()."\">\n"; + print ""; + }else print ""; + print ""; + $groupNotifyIDs[] = $groupNotify->getID(); + } + } + print "
".getMLText("empty_notify_list")."
" . htmlspecialchars($userNotify->getLogin() . " - " . $userNotify->getFullName()) . "
"; + print ""; + print "
" . htmlspecialchars($groupNotify->getName()) . "
"; + print ""; + print "\n"; + print "
\n"; + + echo "
\n"; + echo "
\n"; $this->contentEnd(); $this->htmlEndPage(); } /* }}} */