require_once "../../include/session.php"; require_once "include/fields.php"; require_once "include/tables.php"; require_once "include/notes.php"; if (isset($_GET["backurl"])) { $backurl = $_GET["backurl"]; if (isset($_GET["refid"]) && $_GET["tabledefid"]) { $backurl .= "?refid=" . getId($db, $_GET["tabledefid"], $_GET["refid"]); } elseif (isset($_GET["refid"])) { $backurl .= "?refid=" . $_GET["refid"]; } } else { $backurl = NULL; } $thetable = new notes($db, "tbld:a4cdd991-cf0a-916f-1240-49428ea1bdd1", $backurl); $therecord = $thetable->processAddEditPage(); if ($therecord["private"] && $therecord["createdby"] != $_SESSION["userinfo"]["id"] && !$_SESSION["userinfo"]["admin"]) { goURL("../../noaccess.php"); } if (isset($therecord["phpbmsStatus"])) { $statusmessage = $therecord["phpbmsStatus"]; } $attachedtableinfo = $thetable->getAttachedTableDefInfo($therecord["attachedtabledefid"]); $pageTitle = "Note/Task/Event"; $phpbms->cssIncludes[] = "pages/base/notes.css"; $phpbms->jsIncludes[] = "modules/base/javascript/notes.js"; //Form Elements //============================================================== $theform = new phpbmsForm(); $theform->onsubmit = "return submitForm(this)"; $theform->id = "record";