本文整理汇总了PHP中Xtempl::assign_section方法的典型用法代码示例。如果您正苦于以下问题:PHP Xtempl::assign_section方法的具体用法?PHP Xtempl::assign_section怎么用?PHP Xtempl::assign_section使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Xtempl
的用法示例。
在下文中一共展示了Xtempl::assign_section方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getLangFileName
//for basic files
$includes = "";
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
if (!$pageObject->isAppearOnTabs("Module Type")) {
$xt->assign("Module_Type_fieldblock", true);
} else {
$xt->assign("Module_Type_tabfieldblock", true);
}
$xt->assign("Module_Type_label", true);
if (isEnableSection508()) {
$xt->assign_section("Module_Type_label", "<label for=\"" . GetInputElementId("Module Type", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Module Status")) {
$xt->assign("Module_Status_fieldblock", true);
} else {
$xt->assign("Module_Status_tabfieldblock", true);
}
$xt->assign("Module_Status_label", true);
if (isEnableSection508()) {
$xt->assign_section("Module_Status_label", "<label for=\"" . GetInputElementId("Module Status", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Module Condition")) {
$xt->assign("Module_Condition_fieldblock", true);
} else {
$xt->assign("Module_Condition_tabfieldblock", true);
}
示例2: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("group_id")) {
$xt->assign("group_id_fieldblock", true);
} else {
$xt->assign("group_id_tabfieldblock", true);
}
$xt->assign("group_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("group_id_label", "<label for=\"" . GetInputElementId("group_id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("module_id")) {
$xt->assign("module_id_fieldblock", true);
} else {
$xt->assign("module_id_tabfieldblock", true);
}
$xt->assign("module_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("module_id_label", "<label for=\"" . GetInputElementId("module_id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("reads")) {
$xt->assign("reads_fieldblock", true);
} else {
$xt->assign("reads_tabfieldblock", true);
}
示例3: AdvancedSearchControl
}
// add constants and files for simple view
if ($mode == SEARCH_SIMPLE) {
$searchControlBuilder = new AdvancedSearchControl($searchControllerId, $strTableName, $pageObject->searchClauseObj, $pageObject);
// add button events if exist
$pageObject->addButtonHandlers();
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
//$includes.="<script language=\"JavaScript\" src=\"include/customlabels.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
// if not simple, this div already exist on page
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\" class=\"search_suggest\"></div>";
}
// search panel radio button assign
$searchRadio = $searchControlBuilder->getSearchRadio();
$xt->assign_section("all_checkbox_label", $searchRadio['all_checkbox_label'][0], $searchRadio['all_checkbox_label'][1]);
$xt->assign_section("any_checkbox_label", $searchRadio['any_checkbox_label'][0], $searchRadio['any_checkbox_label'][1]);
$xt->assignbyref("all_checkbox", $searchRadio['all_checkbox']);
$xt->assignbyref("any_checkbox", $searchRadio['any_checkbox']);
// search fields data
if ($pageObject->pSet->getLookupTable("id")) {
$pageObject->settingsMap["globalSettings"]['shortTNames'][$pageObject->pSet->getLookupTable("id")] = GetTableURL($pageObject->pSet->getLookupTable("id"));
}
$pageObject->fillFieldToolTips("id");
$srchFields = $pageObject->searchClauseObj->getSearchCtrlParams("id");
$firstFieldParams = array();
if (count($srchFields)) {
$firstFieldParams = $srchFields[0];
} else {
$firstFieldParams['fName'] = "id";
$firstFieldParams['eType'] = '';
示例4: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("tahun")) {
$xt->assign("tahun_fieldblock", true);
} else {
$xt->assign("tahun_tabfieldblock", true);
}
$xt->assign("tahun_label", true);
if (isEnableSection508()) {
$xt->assign_section("tahun_label", "<label for=\"" . GetInputElementId("tahun", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("tanggal")) {
$xt->assign("tanggal_fieldblock", true);
} else {
$xt->assign("tanggal_tabfieldblock", true);
}
$xt->assign("tanggal_label", true);
if (isEnableSection508()) {
$xt->assign_section("tanggal_label", "<label for=\"" . GetInputElementId("tanggal", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("teguran_no")) {
$xt->assign("teguran_no_fieldblock", true);
} else {
$xt->assign("teguran_no_tabfieldblock", true);
}
示例5: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("jalan_kelas_id")) {
$xt->assign("jalan_kelas_id_fieldblock", true);
} else {
$xt->assign("jalan_kelas_id_tabfieldblock", true);
}
$xt->assign("jalan_kelas_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("jalan_kelas_id_label", "<label for=\"" . GetInputElementId("jalan_kelas_id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("kode")) {
$xt->assign("kode_fieldblock", true);
} else {
$xt->assign("kode_tabfieldblock", true);
}
$xt->assign("kode_label", true);
if (isEnableSection508()) {
$xt->assign_section("kode_label", "<label for=\"" . GetInputElementId("kode", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("nama")) {
$xt->assign("nama_fieldblock", true);
} else {
$xt->assign("nama_tabfieldblock", true);
}
示例6: getLangFileName
if ($inlineedit == EDIT_SIMPLE) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest" . $id . "\"></div>\r\n";
}
$pageObject->body["begin"] .= $includes;
}
if (!$pageObject->isAppearOnTabs("tahun")) {
$xt->assign("tahun_fieldblock", true);
} else {
$xt->assign("tahun_tabfieldblock", true);
}
$xt->assign("tahun_label", true);
if (isEnableSection508()) {
$xt->assign_section("tahun_label", "<label for=\"" . GetInputElementId("tahun", $id, PAGE_EDIT) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("usaha_id")) {
$xt->assign("usaha_id_fieldblock", true);
} else {
$xt->assign("usaha_id_tabfieldblock", true);
}
$xt->assign("usaha_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("usaha_id_label", "<label for=\"" . GetInputElementId("usaha_id", $id, PAGE_EDIT) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("kohirno")) {
$xt->assign("kohirno_fieldblock", true);
} else {
$xt->assign("kohirno_tabfieldblock", true);
}
示例7: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("daftar_id")) {
$xt->assign("daftar_id_fieldblock", true);
} else {
$xt->assign("daftar_id_tabfieldblock", true);
}
$xt->assign("daftar_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("daftar_id_label", "<label for=\"" . GetInputElementId("daftar_id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("nourut")) {
$xt->assign("nourut_fieldblock", true);
} else {
$xt->assign("nourut_tabfieldblock", true);
}
$xt->assign("nourut_label", true);
if (isEnableSection508()) {
$xt->assign_section("nourut_label", "<label for=\"" . GetInputElementId("nourut", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("notes")) {
$xt->assign("notes_fieldblock", true);
} else {
$xt->assign("notes_tabfieldblock", true);
}
示例8: getLangFileName
//for basic files
$includes = "";
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
if (!$pageObject->isAppearOnTabs("Customer ID")) {
$xt->assign("Customer_ID_fieldblock", true);
} else {
$xt->assign("Customer_ID_tabfieldblock", true);
}
$xt->assign("Customer_ID_label", true);
if (isEnableSection508()) {
$xt->assign_section("Customer_ID_label", "<label for=\"" . GetInputElementId("Customer ID", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Bill Month")) {
$xt->assign("Bill_Month_fieldblock", true);
} else {
$xt->assign("Bill_Month_tabfieldblock", true);
}
$xt->assign("Bill_Month_label", true);
if (isEnableSection508()) {
$xt->assign_section("Bill_Month_label", "<label for=\"" . GetInputElementId("Bill Month", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Previous Readings")) {
$xt->assign("Previous_Readings_fieldblock", true);
} else {
$xt->assign("Previous_Readings_tabfieldblock", true);
}
示例9: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("tahun")) {
$xt->assign("tahun_fieldblock", true);
} else {
$xt->assign("tahun_tabfieldblock", true);
}
$xt->assign("tahun_label", true);
if (isEnableSection508()) {
$xt->assign_section("tahun_label", "<label for=\"" . GetInputElementId("tahun", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("stpdno")) {
$xt->assign("stpdno_fieldblock", true);
} else {
$xt->assign("stpdno_tabfieldblock", true);
}
$xt->assign("stpdno_label", true);
if (isEnableSection508()) {
$xt->assign_section("stpdno_label", "<label for=\"" . GetInputElementId("stpdno", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("stpdtgl")) {
$xt->assign("stpdtgl_fieldblock", true);
} else {
$xt->assign("stpdtgl_tabfieldblock", true);
}
示例10: getLangFileName
//for basic files
$includes = "";
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
if (!$pageObject->isAppearOnTabs("UserID")) {
$xt->assign("UserID_fieldblock", true);
} else {
$xt->assign("UserID_tabfieldblock", true);
}
$xt->assign("UserID_label", true);
if (isEnableSection508()) {
$xt->assign_section("UserID_label", "<label for=\"" . GetInputElementId("UserID", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Password")) {
$xt->assign("Password_fieldblock", true);
} else {
$xt->assign("Password_tabfieldblock", true);
}
$xt->assign("Password_label", true);
if (isEnableSection508()) {
$xt->assign_section("Password_label", "<label for=\"" . GetInputElementId("Password", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("User Name")) {
$xt->assign("User_Name_fieldblock", true);
} else {
$xt->assign("User_Name_tabfieldblock", true);
}
示例11: getLangFileName
//for basic files
$includes = "";
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
if (!$pageObject->isAppearOnTabs("Type")) {
$xt->assign("Type_fieldblock", true);
} else {
$xt->assign("Type_tabfieldblock", true);
}
$xt->assign("Type_label", true);
if (isEnableSection508()) {
$xt->assign_section("Type_label", "<label for=\"" . GetInputElementId("Type", $id) . "\">", "</label>");
}
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$pageObject->body["begin"] .= $includes;
$xt->assign("backbutton_attrs", "id=\"backButton" . $id . "\"");
$xt->assign("back_button", true);
} else {
$xt->assign("cancelbutton_attrs", "id=\"cancelButton" . $id . "\"");
$xt->assign("cancel_button", true);
$xt->assign("header", "");
}
$xt->assign("save_button", true);
}
$xt->assign("savebutton_attrs", "id=\"saveButton" . $id . "\"");
if ($message) {
$xt->assign("message_block", true);
示例12: GetRootPathForResources
// button handlers file names
//fill jsSettings and ControlsHTMLMap
$pageObject->fillSetCntrlMaps();
$pageObject->body['end'] .= '<script>';
$pageObject->body['end'] .= "window.controlsMap = " . my_json_encode($pageObject->controlsHTMLMap) . ";";
$pageObject->body['end'] .= "window.viewControlsMap = " . my_json_encode($pageObject->viewControlsHTMLMap) . ";";
$pageObject->body['end'] .= "window.settings = " . my_json_encode($pageObject->jsSettings) . ";</script>";
$pageObject->body["end"] .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/runnerJS/RunnerAll.js") . "\"></script>";
$pageObject->body["end"] .= '<script>' . $pageObject->PrepareJS() . "</script>";
$pageObject->addButtonHandlers();
$xt->assignbyref("body", $pageObject->body);
$xt->assign("username_label", true);
$xt->assign("password_label", true);
$xt->assign("remember_password_label", true);
if (isEnableSection508()) {
$xt->assign_section("username_label", "<label for=\"username\">", "</label>");
$xt->assign_section("password_label", "<label for=\"password\">", "</label>");
$xt->assign_section("remember_password_label", "<label for=\"remember_password\">", "</label>");
}
if ($globalEvents->exists("BeforeShowLogin")) {
$globalEvents->BeforeShowLogin($xt, $pageObject->templatefile, $pageObject);
}
// submit on popup login page
if ($onFly == 2) {
if ($message) {
$returnJSON['message'] = $message;
} elseif ($d) {
$returnJSON['redirect'] = $ajaxmessage;
}
if ($pageObject->isCaptchaOk == 0 && $useCaptcha) {
$returnJSON['message'] = "Invalid security code.";
示例13: getLangFileName
//javascript code
if ($inlineedit != EDIT_INLINE) {
if ($inlineedit == EDIT_SIMPLE) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
$includes .= "<div id=\"search_suggest" . $id . "\"></div>\r\n";
$pageObject->body["begin"] .= $includes;
}
if (!$pageObject->isAppearOnTabs("Name")) {
$xt->assign("Name_fieldblock", true);
} else {
$xt->assign("Name_tabfieldblock", true);
}
$xt->assign("Name_label", true);
if (isEnableSection508()) {
$xt->assign_section("Name_label", "<label for=\"" . GetInputElementId("Name", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Father Name")) {
$xt->assign("Father_Name_fieldblock", true);
} else {
$xt->assign("Father_Name_tabfieldblock", true);
}
$xt->assign("Father_Name_label", true);
if (isEnableSection508()) {
$xt->assign_section("Father_Name_label", "<label for=\"" . GetInputElementId("Father Name", $id) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("Address")) {
$xt->assign("Address_fieldblock", true);
} else {
$xt->assign("Address_tabfieldblock", true);
}
示例14: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("daftar_id")) {
$xt->assign("daftar_id_fieldblock", true);
} else {
$xt->assign("daftar_id_tabfieldblock", true);
}
$xt->assign("daftar_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("daftar_id_label", "<label for=\"" . GetInputElementId("daftar_id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("status_id")) {
$xt->assign("status_id_fieldblock", true);
} else {
$xt->assign("status_id_tabfieldblock", true);
}
$xt->assign("status_id_label", true);
if (isEnableSection508()) {
$xt->assign_section("status_id_label", "<label for=\"" . GetInputElementId("status_id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("create_date")) {
$xt->assign("create_date_fieldblock", true);
} else {
$xt->assign("create_date_tabfieldblock", true);
}
示例15: getLangFileName
if ($inlineadd != ADD_INLINE) {
if ($inlineadd != ADD_ONTHEFLY && $inlineadd != ADD_POPUP) {
$includes .= "<script language=\"JavaScript\" src=\"include/loadfirst.js\"></script>\r\n";
$includes .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("id")) {
$xt->assign("id_fieldblock", true);
} else {
$xt->assign("id_tabfieldblock", true);
}
$xt->assign("id_label", true);
if (isEnableSection508()) {
$xt->assign_section("id_label", "<label for=\"" . GetInputElementId("id", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("tgl")) {
$xt->assign("tgl_fieldblock", true);
} else {
$xt->assign("tgl_tabfieldblock", true);
}
$xt->assign("tgl_label", true);
if (isEnableSection508()) {
$xt->assign_section("tgl_label", "<label for=\"" . GetInputElementId("tgl", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("iso_request")) {
$xt->assign("iso_request_fieldblock", true);
} else {
$xt->assign("iso_request_tabfieldblock", true);
}