當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Xtempl::load_template方法代碼示例

本文整理匯總了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;
開發者ID:sdev1,項目名稱:CloudStockEnquiry,代碼行數:31,代碼來源:StockMaster_detailspreview.php

示例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>";
開發者ID:aagusti,項目名稱:padl-tng,代碼行數:31,代碼來源:pad_pad_spt_detailspreview.php

示例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 {
}
開發者ID:ryanblanchard,項目名稱:Dashboard,代碼行數:31,代碼來源:YTD_Worst_Selling_Products_print.php


注:本文中的Xtempl::load_template方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。