Add support for application-wide notes & how-tos

This commit is contained in:
Alexander Nicolaysen Sørnes
2009-07-21 03:09:48 +02:00
committed by Alexander Nicolaysen Sørnes
parent 9ed113f6dc
commit e546738913
7 changed files with 139 additions and 30 deletions

View File

@@ -835,6 +835,9 @@ class Application {
if($_SESSION['current']->isSuperMaintainer($this->iAppId) || $_SESSION['current']->hasPriv("admin"))
{
echo ' <form method="post" name="sEdit" action="admin/editAppFamily.php"><input type="hidden" name="iAppId" value="'.$this->iAppId.'"><input type="submit" value="Edit Application" class="button"></form>';
echo '<form method="post" action="objectManager.php?sClass=note&sAction=add&sTitle=Add+note&iAppId='.$this->iAppId.'&sNoteTitle=HOWTO&sReturnTo='.urlencode($this->objectMakeUrl()).'">';
echo '<input type="submit" value="Add note / how-to" />';
echo '</form>';
}
if($_SESSION['current']->isLoggedIn())
{
@@ -877,6 +880,8 @@ class Application {
// display bundle
$this->displayBundle();
note::displayNotesForEntry(null, $this->iAppId);
}
public static function lookup_name($appId)