/osj-osj2dpostsadd.php
PHP | 610 lines | 574 code | 18 blank | 18 comment | 38 complexity | 472b9665cc0f0a6a54b8cab95bc8322b MD5 | raw file
Possible License(s): LGPL-2.1, AGPL-1.0
- <?php
- define("EW_PAGE_ID", "add", TRUE); // Page ID
- define("EW_TABLE_NAME", 'osj-posts', TRUE);
- ?>
- <?php
- session_start(); // Initialize session data
- ob_start(); // Turn on output buffering
- ?>
- <?php include "osj-ewcfg50.php" ?>
- <?php include "osj-ewmysql50.php" ?>
- <?php include "osj-phpfn50.php" ?>
- <?php include "osj-osj2dpostsinfo.php" ?>
- <?php include "osj-userfn50.php" ?>
- <?php include "osj-osj2dusersinfo.php" ?>
- <?php
- header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
- header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
- header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
- header("Cache-Control: post-check=0, pre-check=0", false);
- header("Pragma: no-cache"); // HTTP/1.0
- ?>
- <?php
-
- // Open connection to the database
- $conn = ew_Connect();
- ?>
- <?php
- $Security = new cAdvancedSecurity();
- ?>
- <?php
- if (!$Security->IsLoggedIn()) $Security->AutoLogin();
- $Security->LoadCurrentUserLevel('osj-posts');
- if (!$Security->IsLoggedIn()) {
- $Security->SaveLastUrl();
- Page_Terminate("osj-login.php");
- }
- if (!$Security->CanAdd()) {
- $Security->SaveLastUrl();
- Page_Terminate("osj-osj2dpostslist.php");
- }
- if ($Security->IsLoggedIn() && $Security->CurrentUserID() == "") {
- $_SESSION[EW_SESSION_MESSAGE] = "You do not have the right permission to view the page";
- Page_Terminate("osj-login.php");
- }
- ?>
- <?php
-
- // Common page loading event (in userfn*.php)
- Page_Loading();
- ?>
- <?php
-
- // Page load event, used in current page
- Page_Load();
- ?>
- <?php
- $osj2Dposts->Export = @$_GET["export"]; // Get export parameter
- $sExport = $osj2Dposts->Export; // Get export parameter, used in header
- $sExportFile = $osj2Dposts->TableVar; // Get export file, used in header
- ?>
- <?php
-
- // Load key values from QueryString
- $bCopy = TRUE;
- if (@$_GET["post_id"] != "") {
- $osj2Dposts->post_id->setQueryStringValue($_GET["post_id"]);
- } else {
- $bCopy = FALSE;
- }
-
- // Create form object
- $objForm = new cFormObj();
-
- // Process form if post back
- if (@$_POST["a_add"] <> "") {
- $osj2Dposts->CurrentAction = $_POST["a_add"]; // Get form action
- LoadFormValues(); // Load form values
- } else { // Not post back
- if ($bCopy) {
- $osj2Dposts->CurrentAction = "C"; // Copy Record
- } else {
- $osj2Dposts->CurrentAction = "I"; // Display Blank Record
- LoadDefaultValues(); // Load default values
- }
- }
-
- // Perform action based on action code
- switch ($osj2Dposts->CurrentAction) {
- case "I": // Blank record, no action required
- break;
- case "C": // Copy an existing record
- if (!LoadRow()) { // Load record based on key
- $_SESSION[EW_SESSION_MESSAGE] = "No records found"; // No record found
- Page_Terminate($osj2Dposts->getReturnUrl()); // Clean up and return
- }
- break;
- case "A": // ' Add new record
- $osj2Dposts->SendEmail = TRUE; // Send email on add success
- if (AddRow()) { // Add successful
- $_SESSION[EW_SESSION_MESSAGE] = "Add New Record Successful"; // Set up success message
- Page_Terminate($osj2Dposts->KeyUrl($osj2Dposts->getReturnUrl())); // Clean up and return
- } else {
- RestoreFormValues(); // Add failed, restore form values
- }
- }
-
- // Render row based on row type
- $osj2Dposts->RowType = EW_ROWTYPE_ADD; // Render add type
- RenderRow();
- ?>
- <?php include "osj-header.php" ?>
- <script type="text/javascript">
- <!--
- var EW_PAGE_ID = "add"; // Page id
- var EW_SHOW_HIGHLIGHT = "Show highlight";
- var EW_HIDE_HIGHLIGHT = "Hide highlight";
-
- //-->
- </script>
- <script type="text/javascript">
- <!--
-
- function ew_ValidateForm(fobj) {
- if (fobj.a_confirm && fobj.a_confirm.value == "F")
- return true;
- var i, elm, aelm, infix;
- var rowcnt = (fobj.key_count) ? Number(fobj.key_count.value) : 1;
- for (i=0; i<rowcnt; i++) {
- infix = (fobj.key_count) ? String(i+1) : "";
- elm = fobj.elements["x" + infix + "_post_title"];
- if (elm && !ew_HasValue(elm)) {
- if (!ew_OnError(elm, "Please enter required field - Title"))
- return false;
- }
- elm = fobj.elements["x" + infix + "_post_description"];
- if (elm && !ew_HasValue(elm)) {
- if (!ew_OnError(elm, "Please enter required field - Description"))
- return false;
- }
- elm = fobj.elements["x" + infix + "_post_email"];
- if (elm && !ew_HasValue(elm)) {
- if (!ew_OnError(elm, "Please enter required field - Post Response Email"))
- return false;
- }
- elm = fobj.elements["x" + infix + "_post_url"];
- if (elm && !ew_HasValue(elm)) {
- if (!ew_OnError(elm, "Please enter required field - Post Response URL"))
- return false;
- }
- }
- return true;
- }
-
- //-->
- </script>
- <script type="text/javascript" src="fckeditor/fckeditor.js"></script>
- <script type="text/javascript">
- <!--
- _width_multiplier = 16;
- _height_multiplier = 60;
- var ew_DHTMLEditors = [];
-
- function ew_UpdateTextArea() {
- if (typeof ew_DHTMLEditors != 'undefined' &&
- typeof FCKeditorAPI != 'undefined') {
- var inst;
- for (inst in FCKeditorAPI.__Instances)
- FCKeditorAPI.__Instances[inst].UpdateLinkedField();
- }
- }
-
- //-->
- </script>
- <script type="text/javascript">
- <!--
-
- // js for Popup Calendar
- //-->
-
- </script>
- <script type="text/javascript">
- <!--
- var ew_MultiPagePage = "Page"; // multi-page Page Text
- var ew_MultiPageOf = "of"; // multi-page Of Text
- var ew_MultiPagePrev = "Prev"; // multi-page Prev Text
- var ew_MultiPageNext = "Next"; // multi-page Next Text
-
- //-->
- </script>
- <script language="JavaScript" type="text/javascript">
- <!--
-
- // Write your client script here, no need to add script tags.
- // To include another .js script, use:
- // ew_ClientScriptInclude("my_javascript.js");
- //-->
-
- </script>
- <p><span class="phpmaker">Add to TABLE: Posts<br><br><a href="<?php echo $osj2Dposts->getReturnUrl() ?>">Go Back</a></span></p>
- <?php
- if (@$_SESSION[EW_SESSION_MESSAGE] <> "") { // Mesasge in Session, display
- ?>
- <p><span class="ewmsg"><?php echo $_SESSION[EW_SESSION_MESSAGE] ?></span></p>
- <?php
- $_SESSION[EW_SESSION_MESSAGE] = ""; // Clear message in Session
- }
- ?>
- <form name="fosj2Dpostsadd" id="fosj2Dpostsadd" action="osj-osj2dpostsadd.php" method="post">
- <p>
- <input type="hidden" name="a_add" id="a_add" value="A">
- <table class="ewTable">
- <tr class="ewTableRow">
- <td class="ewTableHeader">Title<span class='ewmsg'> *</span></td>
- <td<?php echo $osj2Dposts->post_title->CellAttributes() ?>><span id="cb_x_post_title">
- <div><input type="text" name="x_post_title" id="x_post_title" size="30" value="<?php echo $osj2Dposts->post_title->EditValue ?>" onblur="ew_AstHideDiv('as_x_post_title');" onkeydown="ew_AstOnKeyDown('x_post_title', 'as_x_post_title', event);" onkeypress="return ew_AstOnKeyPress(event);" onkeyup="ew_AstOnKeyUp('x_post_title', 'as_x_post_title', event);" autocomplete="off"></div>
- <div class='ewAstList' style='visibility:hidden' id='as_x_post_title'></div>
- <input type="hidden" name="sv_x_post_title" id="sv_x_post_title" value="">
- <?php
- $sSqlWrk = "SELECT DISTINCT `post_title`, `post_description` FROM `osj-posts` WHERE (`post_title` LIKE '@FILTER_VALUE%')";
- $sSqlWrk .= " ORDER BY `post_creation_date` ";
- $sSqlWrk = TEAencrypt($sSqlWrk, EW_RANDOM_KEY);
- ?>
- <input type="hidden" name="s_x_post_title" id="s_x_post_title" value="<?php echo $sSqlWrk ?>">
- <input type="hidden" name="lt_x_post_title" id="lt_x_post_title" value="1">
- </span></td>
- </tr>
- <tr class="ewTableAltRow">
- <td class="ewTableHeader">Description<span class='ewmsg'> *</span></td>
- <td<?php echo $osj2Dposts->post_description->CellAttributes() ?>><span id="cb_x_post_description">
- <textarea name="x_post_description" id="x_post_description" cols="35" rows="4"<?php echo $osj2Dposts->post_description->EditAttributes() ?>><?php echo $osj2Dposts->post_description->EditValue ?></textarea>
- <script type="text/javascript">
- <!--
- var editor = new ew_DHTMLEditor("x_post_description");
- editor.create = function() {
- var sBasePath = 'fckeditor/';
- var oFCKeditor = new FCKeditor('x_post_description', 35*_width_multiplier, 4*_height_multiplier);
- oFCKeditor.BasePath = sBasePath;
- oFCKeditor.ReplaceTextarea();
- this.active = true;
- }
- ew_DHTMLEditors[ew_DHTMLEditors.length] = editor;
- -->
- </script>
- </span></td>
- </tr>
- <tr class="ewTableRow">
- <td class="ewTableHeader">Post Response Email<span class='ewmsg'> *</span></td>
- <td<?php echo $osj2Dposts->post_email->CellAttributes() ?>><span id="cb_x_post_email">
- <input type="text" name="x_post_email" id="x_post_email" size="30" maxlength="255" value="<?php echo $osj2Dposts->post_email->EditValue ?>"<?php echo $osj2Dposts->post_email->EditAttributes() ?>>
- </span></td>
- </tr>
- <tr class="ewTableAltRow">
- <td class="ewTableHeader">Category ID's<span class='ewmsg'> *</span></td>
- <td<?php echo $osj2Dposts->post_categories->CellAttributes() ?>><span id="cb_x_post_categories">
- <input type="text" name="x_post_categories" id="x_post_categories" size="30" maxlength="255" value="<?php echo $osj2Dposts->post_categories->EditValue ?>"<?php echo $osj2Dposts->post_categories->EditAttributes() ?>>
- </span></td>
- </tr>
- <tr class="ewTableRow">
- <td class="ewTableHeader">Post Response URL<span class='ewmsg'> *</span></td>
- <td<?php echo $osj2Dposts->post_url->CellAttributes() ?>><span id="cb_x_post_url">
- <input type="text" name="x_post_url" id="x_post_url" size="30" maxlength="255" value="<?php echo $osj2Dposts->post_url->EditValue ?>"<?php echo $osj2Dposts->post_url->EditAttributes() ?>>
- </span></td>
- </tr>
- </table>
- <p>
- <input type="button" name="btnAction" id="btnAction" value=" Add " onClick="ew_SubmitForm(this.form);">
- </form>
- <script type="text/javascript">
- <!--
- ew_CreateEditor(); // Create DHTML editor(s)
-
- //-->
- </script>
- <script language="JavaScript" type="text/javascript">
- <!--
-
- // Write your table-specific startup script here
- // document.write("page loaded");
- //-->
-
- </script>
- <?php include "osj-footer.php" ?>
- <?php
-
- // If control is passed here, simply terminate the page without redirect
- Page_Terminate();
-
- // -----------------------------------------------------------------
- // Subroutine Page_Terminate
- // - called when exit page
- // - clean up connection and objects
- // - if url specified, redirect to url, otherwise end response
- function Page_Terminate($url = "") {
- global $conn;
-
- // Page unload event, used in current page
- Page_Unload();
-
- // Global page unloaded event (in userfn*.php)
- Page_Unloaded();
-
- // Close Connection
- $conn->Close();
-
- // Go to url if specified
- if ($url <> "") {
- ob_end_clean();
- header("Location: $url");
- }
- exit();
- }
- ?>
- <?php
-
- // Load default values
- function LoadDefaultValues() {
- global $osj2Dposts;
- $osj2Dposts->user_id->CurrentValue = 0;
- $osj2Dposts->post_creation_date->CurrentValue = "CURRENT_TIMESTAMP";
- }
- ?>
- <?php
-
- // Load form values
- function LoadFormValues() {
-
- // Load from form
- global $objForm, $osj2Dposts;
- $osj2Dposts->user_id->setFormValue($objForm->GetValue("x_user_id"));
- $osj2Dposts->post_creation_date->setFormValue($objForm->GetValue("x_post_creation_date"));
- $osj2Dposts->post_creation_date->CurrentValue = ew_UnFormatDateTime($osj2Dposts->post_creation_date->CurrentValue, 6);
- $osj2Dposts->post_title->setFormValue($objForm->GetValue("x_post_title"));
- $osj2Dposts->post_description->setFormValue($objForm->GetValue("x_post_description"));
- $osj2Dposts->post_email->setFormValue($objForm->GetValue("x_post_email"));
- $osj2Dposts->post_categories->setFormValue($objForm->GetValue("x_post_categories"));
- $osj2Dposts->post_url->setFormValue($objForm->GetValue("x_post_url"));
- }
-
- // Restore form values
- function RestoreFormValues() {
- global $osj2Dposts;
- $osj2Dposts->user_id->CurrentValue = $osj2Dposts->user_id->FormValue;
- $osj2Dposts->post_creation_date->CurrentValue = $osj2Dposts->post_creation_date->FormValue;
- $osj2Dposts->post_creation_date->CurrentValue = ew_UnFormatDateTime($osj2Dposts->post_creation_date->CurrentValue, 6);
- $osj2Dposts->post_title->CurrentValue = $osj2Dposts->post_title->FormValue;
- $osj2Dposts->post_description->CurrentValue = $osj2Dposts->post_description->FormValue;
- $osj2Dposts->post_email->CurrentValue = $osj2Dposts->post_email->FormValue;
- $osj2Dposts->post_categories->CurrentValue = $osj2Dposts->post_categories->FormValue;
- $osj2Dposts->post_url->CurrentValue = $osj2Dposts->post_url->FormValue;
- }
- ?>
- <?php
-
- // Load row based on key values
- function LoadRow() {
- global $conn, $Security, $osj2Dposts;
- $sFilter = $osj2Dposts->SqlKeyFilter();
- if (!is_numeric($osj2Dposts->post_id->CurrentValue)) {
- return FALSE; // Invalid key, exit
- }
- $sFilter = str_replace("@post_id@", ew_AdjustSql($osj2Dposts->post_id->CurrentValue), $sFilter); // Replace key value
- if ($Security->CurrentUserID() <> "" && !$Security->IsAdmin()) { // Non system admin
- $sFilter = $osj2Dposts->AddUserIDFilter($sFilter, $Security->CurrentUserID()); // Add User ID filter
- }
-
- // Call Row Selecting event
- $osj2Dposts->Row_Selecting($sFilter);
-
- // Load sql based on filter
- $osj2Dposts->CurrentFilter = $sFilter;
- $sSql = $osj2Dposts->SQL();
- if ($rs = $conn->Execute($sSql)) {
- if ($rs->EOF) {
- $LoadRow = FALSE;
- } else {
- $LoadRow = TRUE;
- $rs->MoveFirst();
- LoadRowValues($rs); // Load row values
-
- // Call Row Selected event
- $osj2Dposts->Row_Selected($rs);
- }
- $rs->Close();
- } else {
- $LoadRow = FALSE;
- }
- return $LoadRow;
- }
-
- // Load row values from recordset
- function LoadRowValues(&$rs) {
- global $osj2Dposts;
- $osj2Dposts->post_id->setDbValue($rs->fields('post_id'));
- $osj2Dposts->user_id->setDbValue($rs->fields('user_id'));
- $osj2Dposts->post_creation_date->setDbValue($rs->fields('post_creation_date'));
- $osj2Dposts->post_title->setDbValue($rs->fields('post_title'));
- $osj2Dposts->post_description->setDbValue($rs->fields('post_description'));
- $osj2Dposts->post_email->setDbValue($rs->fields('post_email'));
- $osj2Dposts->post_categories->setDbValue($rs->fields('post_categories'));
- $osj2Dposts->post_url->setDbValue($rs->fields('post_url'));
- $osj2Dposts->post_edit_date->setDbValue($rs->fields('post_edit_date'));
- }
- ?>
- <?php
-
- // Render row values based on field settings
- function RenderRow() {
- global $conn, $Security, $osj2Dposts;
-
- // Call Row Rendering event
- $osj2Dposts->Row_Rendering();
-
- // Common render codes for all row types
- // user_id
-
- $osj2Dposts->user_id->CellCssStyle = "";
- $osj2Dposts->user_id->CellCssClass = "";
-
- // post_creation_date
- $osj2Dposts->post_creation_date->CellCssStyle = "";
- $osj2Dposts->post_creation_date->CellCssClass = "";
-
- // post_title
- $osj2Dposts->post_title->CellCssStyle = "";
- $osj2Dposts->post_title->CellCssClass = "";
-
- // post_description
- $osj2Dposts->post_description->CellCssStyle = "";
- $osj2Dposts->post_description->CellCssClass = "";
-
- // post_email
- $osj2Dposts->post_email->CellCssStyle = "";
- $osj2Dposts->post_email->CellCssClass = "";
-
- // post_categories
- $osj2Dposts->post_categories->CellCssStyle = "";
- $osj2Dposts->post_categories->CellCssClass = "";
-
- // post_url
- $osj2Dposts->post_url->CellCssStyle = "";
- $osj2Dposts->post_url->CellCssClass = "";
- if ($osj2Dposts->RowType == EW_ROWTYPE_VIEW) { // View row
- } elseif ($osj2Dposts->RowType == EW_ROWTYPE_ADD) { // Add row
-
- // post_title
- $osj2Dposts->post_title->EditCustomAttributes = "";
- $osj2Dposts->post_title->EditValue = ew_HtmlEncode($osj2Dposts->post_title->CurrentValue);
-
- // post_description
- $osj2Dposts->post_description->EditCustomAttributes = "";
- $osj2Dposts->post_description->EditValue = ew_HtmlEncode($osj2Dposts->post_description->CurrentValue);
-
- // post_email
- $osj2Dposts->post_email->EditCustomAttributes = "";
- $osj2Dposts->post_email->EditValue = ew_HtmlEncode($osj2Dposts->post_email->CurrentValue);
-
- // post_categories
- $osj2Dposts->post_categories->EditCustomAttributes = "";
- $osj2Dposts->post_categories->EditValue = ew_HtmlEncode($osj2Dposts->post_categories->CurrentValue);
-
- // post_url
- $osj2Dposts->post_url->EditCustomAttributes = "";
- $osj2Dposts->post_url->EditValue = ew_HtmlEncode($osj2Dposts->post_url->CurrentValue);
- } elseif ($osj2Dposts->RowType == EW_ROWTYPE_EDIT) { // Edit row
- } elseif ($osj2Dposts->RowType == EW_ROWTYPE_SEARCH) { // Search row
- }
-
- // Call Row Rendered event
- $osj2Dposts->Row_Rendered();
- }
- ?>
- <?php
-
- // Add record
- function AddRow() {
- global $conn, $Security, $osj2Dposts;
-
- // Check for duplicate key
- $bCheckKey = TRUE;
- $sFilter = $osj2Dposts->SqlKeyFilter();
- if (trim(strval($osj2Dposts->post_id->CurrentValue)) == "") {
- $bCheckKey = FALSE;
- } else {
- $sFilter = str_replace("@post_id@", ew_AdjustSql($osj2Dposts->post_id->CurrentValue), $sFilter); // Replace key value
- }
- if (!is_numeric($osj2Dposts->post_id->CurrentValue)) {
- $bCheckKey = FALSE;
- }
- if ($bCheckKey) {
- $rsChk = $osj2Dposts->LoadRs($sFilter);
- if ($rsChk && !$rsChk->EOF) {
- $_SESSION[EW_SESSION_MESSAGE] = "Duplicate value for primary key";
- $rsChk->Close();
- return FALSE;
- }
- }
- $rsnew = array();
-
- // Field user_id
- $osj2Dposts->user_id->SetDbValueDef(CurrentUserID(), 0);
- $rsnew['user_id'] =& $osj2Dposts->user_id->DbValue;
-
- // Field post_creation_date
- $osj2Dposts->post_creation_date->SetDbValueDef(ew_CurrentDateTime(), ew_CurrentDate());
- $rsnew['post_creation_date'] =& $osj2Dposts->post_creation_date->DbValue;
-
- // Field post_title
- $osj2Dposts->post_title->SetDbValueDef($osj2Dposts->post_title->CurrentValue, "");
- $rsnew['post_title'] =& $osj2Dposts->post_title->DbValue;
-
- // Field post_description
- $osj2Dposts->post_description->SetDbValueDef($osj2Dposts->post_description->CurrentValue, "");
- $rsnew['post_description'] =& $osj2Dposts->post_description->DbValue;
-
- // Field post_email
- $osj2Dposts->post_email->SetDbValueDef($osj2Dposts->post_email->CurrentValue, "");
- $rsnew['post_email'] =& $osj2Dposts->post_email->DbValue;
-
- // Field post_categories
- $osj2Dposts->post_categories->SetDbValueDef($osj2Dposts->post_categories->CurrentValue, "");
- $rsnew['post_categories'] =& $osj2Dposts->post_categories->DbValue;
-
- // Field post_url
- $osj2Dposts->post_url->SetDbValueDef($osj2Dposts->post_url->CurrentValue, "");
- $rsnew['post_url'] =& $osj2Dposts->post_url->DbValue;
-
- // Call Row Inserting event
- $bInsertRow = $osj2Dposts->Row_Inserting($rsnew);
- if ($bInsertRow) {
- $conn->raiseErrorFn = 'ew_ErrorFn';
- $AddRow = $conn->Execute($osj2Dposts->InsertSQL($rsnew));
- $conn->raiseErrorFn = '';
- } else {
- if ($osj2Dposts->CancelMessage <> "") {
- $_SESSION[EW_SESSION_MESSAGE] = $osj2Dposts->CancelMessage;
- $osj2Dposts->CancelMessage = "";
- } else {
- $_SESSION[EW_SESSION_MESSAGE] = "Insert cancelled";
- }
- $AddRow = FALSE;
- }
- if ($AddRow) {
- $osj2Dposts->post_id->setDbValue($conn->Insert_ID());
- $rsnew['post_id'] =& $osj2Dposts->post_id->DbValue;
-
- // Call Row Inserted event
- $osj2Dposts->Row_Inserted($rsnew);
- WriteAuditTrailOnAdd($rsnew);
- }
- return $AddRow;
- }
- ?>
- <?php
-
- // Write Audit Trail start/end for grid update
- function WriteAuditTrailDummy($typ) {
- $table = 'osj-posts';
-
- // Write Audit Trail
- $filePfx = "log";
- $curDate = date("Y/m/d");
- $curTime = date("H:i:s");
- $id = ew_ScriptName();
- $user = CurrentUserID();
- $action = $typ;
- ew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $user, $action, $table, "", "", "", "");
- }
- ?>
- <?php
-
- // Write Audit Trail (add page)
- function WriteAuditTrailOnAdd(&$rs) {
- global $osj2Dposts;
- $table = 'osj-posts';
-
- // Get key value
- $key = "";
- if ($key <> "") $key .= EW_COMPOSITE_KEY_SEPARATOR;
- $key .= $rs['post_id'];
-
- // Write Audit Trail
- $filePfx = "log";
- $curDate = date("Y/m/d");
- $curTime = date("H:i:s");
- $id = ew_ScriptName();
- $user = CurrentUserID();
- $action = "A";
- $oldvalue = "";
- foreach (array_keys($rs) as $fldname) {
- if ($osj2Dposts->fields[$fldname]->FldDataType <> EW_DATATYPE_BLOB) { // Ignore Blob Field
- $newvalue = ($osj2Dposts->fields[$fldname]->FldDataType == EW_DATATYPE_MEMO) ? "<MEMO>" : $rs[$fldname]; // Memo Field
- ew_WriteAuditTrail($filePfx, $curDate, $curTime, $id, $user, $action, $table, $fldname, $key, $oldvalue, $newvalue);
- }
- }
- }
- ?>
- <?php
-
- // Page Load event
- function Page_Load() {
-
- //echo "Page Load";
- }
-
- // Page Unload event
- function Page_Unload() {
-
- //echo "Page Unload";
- }
- ?>