// update_uid - $viewContainer->recId = $recordsCounter; $value = $viewContainer->showDBValue("update_uid", $data, $keylink); $row["update_uid_value"] = $value; // npwpd_old - $viewContainer->recId = $recordsCounter; $value = $viewContainer->showDBValue("npwpd_old", $data, $keylink); $row["npwpd_old_value"] = $value; // id_old - $viewContainer->recId = $recordsCounter; $value = $viewContainer->showDBValue("id_old", $data, $keylink); $row["id_old_value"] = $value; $rowinfo[] = $row; $data = $cipherer->DecryptFetchedArray($rs); } $xt->assign_loopsection("details_row", $rowinfo); } $returnJSON = array("success" => true); $xt->load_template("pad_pad_customer_detailspreview.htm"); $returnJSON["body"] = $xt->fetch_loaded(); if ($mode != "inline") { $returnJSON["counter"] = postvalue("counter"); $layout = GetPageLayout(GoodFieldName($strTableName), 'detailspreview'); if ($layout) { $rtl = $xt->getReadingOrder() == 'RTL' ? 'RTL' : ''; $returnJSON["style"] = "styles/" . $layout->style . "/style" . $rtl . ".css"; $returnJSON["pageStyle"] = "pagestyles/" . $layout->name . $rtl . ".css"; $returnJSON["layout"] = $layout->style . " page-" . $layout->name . ".css"; } } echo "<textarea>" . htmlspecialchars(my_json_encode($returnJSON)) . "</textarea>";
if($globalEvents->exists("IsRecordEditable", $strTableName)) { if(!$globalEvents->IsRecordEditable($showRawValues, true, $strTableName)) $returnJSON['nonEditable'] = true; } if($inlineedit == EDIT_POPUP) { $xt->assign("header", false); $xt->assign("footer", false); $xt->assign("body", $pageObject->body); $xt->hideAllBricksExcept( array("editheader") ); $xt->prepare_template($pageObject->templatefile); $returnJSON['html'] = $xt->fetch_loaded("body"); $returnJSON['message'] = $message; } } else { $returnJSON['success'] = false; $returnJSON['message'] = $message; if($pageObject->lockingObj) $returnJSON['lockMessage'] = $system_message; if($inlineedit == EDIT_POPUP && !$pageObject->isCaptchaOk) $returnJSON['captcha'] = false; } echo printJSON($returnJSON);