本文整理汇总了PHP中Xtempl::load_template方法的典型用法代码示例。如果您正苦于以下问题:PHP Xtempl::load_template方法的具体用法?PHP Xtempl::load_template怎么用?PHP Xtempl::load_template使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Xtempl
的用法示例。
在下文中一共展示了Xtempl::load_template方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: printJSON
$class = ' rnr-field-checkbox';
}
if ($format == FORMAT_NUMBER || IsNumberType($pSet->getFieldType("LastUpdate"))) {
$class = ' rnr-field-number';
}
$row["LastUpdate_class"] = $class;
$rowinfo[] = $row;
if ($b) {
$rowinfo2[] = $row;
$b = false;
}
$data = $cipherer->DecryptFetchedArray($qResult->fetchAssoc());
}
$xt->assign_loopsection("details_row", $rowinfo);
$xt->assign_loopsection("details_row_header", $rowinfo2);
// assign class for header
}
$returnJSON = array("success" => true);
$xt->load_template(GetTemplateName("StockMaster", "detailspreview"));
$returnJSON["body"] = $xt->fetch_loaded();
if ($mode != "inline") {
$returnJSON["counter"] = postvalue("counter");
$layout = GetPageLayout(GoodFieldName($strTableName), 'detailspreview');
if ($layout) {
foreach ($layout->getCSSFiles(isRTL(), isMobile()) as $css) {
$returnJSON['CSSFiles'][] = $css;
}
}
}
echo printJSON($returnJSON);
exit;
示例2: array
// usaha_id -
$viewContainer->recId = $recordsCounter;
$value = $viewContainer->showDBValue("usaha_id", $data, $keylink);
$row["usaha_id_value"] = $value;
// multiple -
$viewContainer->recId = $recordsCounter;
$value = $viewContainer->showDBValue("multiple", $data, $keylink);
$row["multiple_value"] = $value;
// bulan_telat -
$viewContainer->recId = $recordsCounter;
$value = $viewContainer->showDBValue("bulan_telat", $data, $keylink);
$row["bulan_telat_value"] = $value;
$rowinfo[] = $row;
$data = $cipherer->DecryptFetchedArray($rs);
}
$xt->assign_loopsection("details_row", $rowinfo);
}
$returnJSON = array("success" => true);
$xt->load_template("pad_pad_spt_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>";
示例3: postvalue
AssignMethod($pageObject->body['end'], "assignBodyEnd", $pageObject);
$xt->assignbyref("body", $pageObject->body);
$xt->assign("grid_block", true);
$xt->assign("grid_header", true);
$xt->assign("TranStockCode_fieldheader", true);
$xt->assign("DESCRIP_fieldheader", true);
$xt->assign("SUM_Fact_SalesValue__fieldheader", true);
if (@$_REQUEST["format"] && $_REQUEST["format"] != "pdf") {
//$pages[0]["page_summary"] = false;
//$xt->assign_loopsection("pages", $pages);
$xt->assign("pdflink_block", false);
$xt->assign("divideintopages_block", false);
$pageObject->body["begin"] = "";
$pageObject->body["end"] = "";
$xt->assignbyref("body", $pageObject->body);
}
if (@$_REQUEST["format"] !== "pdf") {
$xt->assign("bodyattrs", 'style="margin:10px;"');
}
$usePage2pdf = postvalue("pdf");
if (!$usePage2pdf) {
if (@$_REQUEST["format"] == "excel" || @$_REQUEST["format"] == "word") {
$xt->load_template($pageObject->templatefile);
$contents = $pageObject->prepareWordOrExcelTemplate($xt->template);
$xt->template = $contents;
xt_process_template($xt, $xt->template);
} else {
$pageObject->display($pageObject->templatefile);
}
} else {
}