本文整理汇总了PHP中Xtempl::fetch_loaded方法的典型用法代码示例。如果您正苦于以下问题:PHP Xtempl::fetch_loaded方法的具体用法?PHP Xtempl::fetch_loaded怎么用?PHP Xtempl::fetch_loaded使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Xtempl
的用法示例。
在下文中一共展示了Xtempl::fetch_loaded方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
// 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>";
示例2: array
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);