本文整理汇总了PHP中mlang_getcurrentlang函数的典型用法代码示例。如果您正苦于以下问题:PHP mlang_getcurrentlang函数的具体用法?PHP mlang_getcurrentlang怎么用?PHP mlang_getcurrentlang使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了mlang_getcurrentlang函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: XTempl
function XTempl()
{
$this->xt_vars = array();
$this->xt_stack = array();
$this->xt_stack[] =& $this->xt_vars;
xtempl_include_header($this, "header", "include/header.php");
xtempl_include_header($this, "footer", "include/footer.php");
$this->assign_method("event", $this, "xt_doevent", array());
$this->assign_function("label", "xt_label", array());
$this->assign_function("custom", "xt_custom", array());
$this->assign_function("caption", "xt_caption", array());
$this->assign_function("mainmenu", "xt_displaymenu", array());
$this->assign_function("TabGroup", "xt_displaytabs", array());
$this->assign_function("Section", "xt_displaytabs", array());
$mlang_charsets = array();
$mlang_charsets["English"] = "Windows-1252";
$mlang_charsets["Urdu"] = "Windows-1256";
$this->charsets =& $mlang_charsets;
$order = $this->getReadingOrder();
$html_attrs = '';
if ($order == 'RTL') {
$this->assign("RTL_block", true);
$html_attrs .= 'dir="RTL" ';
} else {
$this->assign("LTR_block", true);
}
if (mlang_getcurrentlang() == 'English') {
$html_attrs .= 'lang="en"';
}
$this->assign("html_attrs", $html_attrs);
}
示例2: array
$fieldToolTipsFact_StockTransaction_Report["English"]["SUM(Fact_GP)"] = "";
$fieldLabelsFact_StockTransaction_Report["English"]["AVG_QOH_"] = "Qty on Hand";
$fieldToolTipsFact_StockTransaction_Report["English"]["AVG(QOH)"] = "";
$fieldLabelsFact_StockTransaction_Report["English"]["DepartmentDesc"] = "Department";
$fieldToolTipsFact_StockTransaction_Report["English"]["DepartmentDesc"] = "";
$fieldLabelsFact_StockTransaction_Report["English"]["DESCRIP"] = "Product";
$fieldToolTipsFact_StockTransaction_Report["English"]["DESCRIP"] = "";
$fieldLabelsFact_StockTransaction_Report["English"]["LastSoldDays"] = "Days Since Last Sold";
$fieldToolTipsFact_StockTransaction_Report["English"]["LastSoldDays"] = "";
$fieldLabelsFact_StockTransaction_Report["English"]["monthName"] = "Month";
$fieldToolTipsFact_StockTransaction_Report["English"]["monthName"] = "";
if (count($fieldToolTipsFact_StockTransaction_Report["English"])) {
$tdataFact_StockTransaction_Report[".isUseToolTips"] = true;
}
}
if (mlang_getcurrentlang() == "") {
$fieldLabelsFact_StockTransaction_Report[""] = array();
$fieldToolTipsFact_StockTransaction_Report[""] = array();
$pageTitlesFact_StockTransaction_Report[""] = array();
$fieldLabelsFact_StockTransaction_Report[""]["GroupID"] = "Group ID";
$fieldToolTipsFact_StockTransaction_Report[""]["GroupID"] = "";
$fieldLabelsFact_StockTransaction_Report[""]["CompanyID"] = "Company ID";
$fieldToolTipsFact_StockTransaction_Report[""]["CompanyID"] = "";
$fieldLabelsFact_StockTransaction_Report[""]["BranchID"] = "Branch ID";
$fieldToolTipsFact_StockTransaction_Report[""]["BranchID"] = "";
$fieldLabelsFact_StockTransaction_Report[""]["fiscalYear"] = "Fiscal Year";
$fieldToolTipsFact_StockTransaction_Report[""]["fiscalYear"] = "";
$fieldLabelsFact_StockTransaction_Report[""]["fiscalMonth"] = "Fiscal Month";
$fieldToolTipsFact_StockTransaction_Report[""]["fiscalMonth"] = "";
$fieldLabelsFact_StockTransaction_Report[""]["SUM_Fact_SalesValue_"] = "SUM(Fact SalesValue)";
$fieldToolTipsFact_StockTransaction_Report[""]["SUM(Fact_SalesValue)"] = "";
示例3: getLangFileName
$defvalues["pencatat_jabat_id"] = @$avalues["pencatat_jabat_id"];
$defvalues["created"] = @$avalues["created"];
$defvalues["updated"] = @$avalues["updated"];
$defvalues["update_uid"] = @$avalues["update_uid"];
$defvalues["npwpd_old"] = @$avalues["npwpd_old"];
$defvalues["id_old"] = @$avalues["id_old"];
}
if ($eventObj->exists("ProcessValuesAdd")) {
$eventObj->ProcessValuesAdd($defvalues, $pageObject);
}
//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>";
if (!isMobile()) {
$includes .= "<div id=\"search_suggest\"></div>\r\n";
}
}
if (!$pageObject->isAppearOnTabs("parent")) {
$xt->assign("parent_fieldblock", true);
} else {
$xt->assign("parent_tabfieldblock", true);
}
$xt->assign("parent_label", true);
if (isEnableSection508()) {
$xt->assign_section("parent_label", "<label for=\"" . GetInputElementId("parent", $id, PAGE_ADD) . "\">", "</label>");
}
if (!$pageObject->isAppearOnTabs("npwpd")) {
$xt->assign("npwpd_fieldblock", true);
示例4: RunnerPage
$params["xt"] =& $xt;
$params["needSearchClauseObj"] = false;
$pageObject = new RunnerPage($params);
// add button events if exist
$pageObject->addButtonHandlers();
$pageObject->body["begin"] .= "<script type=\"text/javascript\" src=\"include/loadfirst.js\"></script>\r\n";
$pageObject->body["begin"] .= "<script>\r\n";
$pageObject->body["begin"] .= "function importMore(id)\r\n";
$pageObject->body["begin"] .= "{\r\n";
$pageObject->body["begin"] .= "\tif(\$('#importDebugInfoTable'+id).css('display')=='none')\r\n";
$pageObject->body["begin"] .= "\t\t\$('#importDebugInfoTable'+id).show();\r\n";
$pageObject->body["begin"] .= "\telse\r\n";
$pageObject->body["begin"] .= "\t\t\$('#importDebugInfoTable'+id).hide();\r\n";
$pageObject->body["begin"] .= "}\r\n";
$pageObject->body["begin"] .= "</script>\r\n";
$pageObject->body["begin"] .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
$pageObject->fillSetCntrlMaps();
$pageObject->body['end'] .= '<script>';
$pageObject->body['end'] .= "window.controlsMap = " . my_json_encode($pageObject->controlsHTMLMap) . ";";
$pageObject->body['end'] .= "window.settings = " . my_json_encode($pageObject->jsSettings) . ";";
$pageObject->body['end'] .= '</script>';
$pageObject->body["end"] .= "<script language=\"JavaScript\" src=\"include/runnerJS/RunnerAll.js\"></script>\r\n";
$pageObject->addCommonJs();
$pageObject->body["end"] .= "<script>" . $pageObject->PrepareJS() . "</script>";
$xt->assignbyref("body", $pageObject->body);
$xt->assign("importfile_attrs", "id=\"file_ImportFileName" . $pageObject->id . "\" name=\"file_ImportFileName" . $pageObject->id . "\"");
$xt->assign("backtolist_attrs", "id=\"backButton" . $pageObject->id . "\"");
$xt->assign("importlink_attrs", "id=\"saveButton" . $pageObject->id . "\"");
$xt->assign("error_message", $error_message);
$xt->display("Readings_import.htm");
?>
示例5: getabspath
<?php
require_once getabspath("classes/cipherer.php");
$tdatapad_pad_daftar_hist = array();
$tdatapad_pad_daftar_hist[".NumberOfChars"] = 80;
$tdatapad_pad_daftar_hist[".ShortName"] = "pad_pad_daftar_hist";
$tdatapad_pad_daftar_hist[".OwnerID"] = "";
$tdatapad_pad_daftar_hist[".OriginalTable"] = "pad.pad_daftar_hist";
// field labels
$fieldLabelspad_pad_daftar_hist = array();
if (mlang_getcurrentlang() == "English") {
$fieldLabelspad_pad_daftar_hist["English"] = array();
$fieldToolTipspad_pad_daftar_hist["English"] = array();
$fieldLabelspad_pad_daftar_hist["English"]["id"] = "Id";
$fieldToolTipspad_pad_daftar_hist["English"]["id"] = "";
$fieldLabelspad_pad_daftar_hist["English"]["daftar_id"] = "Daftar Id";
$fieldToolTipspad_pad_daftar_hist["English"]["daftar_id"] = "";
$fieldLabelspad_pad_daftar_hist["English"]["status_id"] = "Status Id";
$fieldToolTipspad_pad_daftar_hist["English"]["status_id"] = "";
$fieldLabelspad_pad_daftar_hist["English"]["create_date"] = "Create Date";
$fieldToolTipspad_pad_daftar_hist["English"]["create_date"] = "";
$fieldLabelspad_pad_daftar_hist["English"]["create_uid"] = "Create Uid";
$fieldToolTipspad_pad_daftar_hist["English"]["create_uid"] = "";
$fieldLabelspad_pad_daftar_hist["English"]["keterangan"] = "Keterangan";
$fieldToolTipspad_pad_daftar_hist["English"]["keterangan"] = "";
if (count($fieldToolTipspad_pad_daftar_hist["English"])) {
$tdatapad_pad_daftar_hist[".isUseToolTips"] = true;
}
}
$tdatapad_pad_daftar_hist[".NCSearch"] = true;
$tdatapad_pad_daftar_hist[".shortTableName"] = "pad_pad_daftar_hist";
示例6: addCommonHtml
/**
* Add common html code for simple mode on list page
*/
function addCommonHtml()
{
$this->body["begin"] .= "<script type=\"text/javascript\" src=\"include/loadfirst.js\"></script>";
$this->body["begin"] .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if ($this->isDisplayLoading) {
$this->body["begin"] .= "<script type=\"text/javascript\">Runner.runLoading(" . $this->id . ",document.body,0);</script>";
}
//$this->AddJSFile("include/customlabels");
//add parent common html code
parent::addCommonHtml();
// assign body end
$this->body['end'] = array();
$this->body['end']["method"] = "assignBodyEnd";
$this->body['end']["object"] =& $this;
}
示例7: addCommonHtml
/**
* Adds HTML and JS
*
*/
function addCommonHtml()
{
$this->body["begin"] .= "<script type=\"text/javascript\" src=\"include/loadfirst.js\"></script>";
$this->body["begin"] .= "<script type=\"text/javascript\" src=\"include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js\"></script>";
if ($this->isDisplayLoading) {
$this->body["begin"] .= "<script type=\"text/javascript\">Runner.runLoading();</script>";
//$this->getStopLoading();
}
//$this->body['end'] = "<script>".$this->PrepareJS()."</script>";
// assign body end
$this->body['end'] = array();
$this->body['end']["method"] = "assignBodyEnd";
$this->body['end']["object"] =& $this;
}
示例8: GetCustomLabel
function GetCustomLabel($custom)
{
global $custom_labels;
return @$custom_labels[mlang_getcurrentlang()][$custom];
}
示例9: XTempl
/**
* @param Boolean hideAddedCharts (optional) #9607 1.
*/
function XTempl($hideAddedCharts = false)
{
global $mlang_charsets;
$this->xt_vars = array();
$this->xt_stack = array();
$this->xt_stack[] =& $this->xt_vars;
if (!isMobile()) {
xtempl_include_header($this, "header", "include/header.php");
xtempl_include_header($this, "footer", "include/footer.php");
} else {
xtempl_include_header($this, "header", "include/mheader.php");
xtempl_include_header($this, "footer", "include/mfooter.php");
}
$this->assign_method("event", $this, "xt_doevent", array());
$this->assign_function("label", "xt_label", array());
$this->assign_function("custom", "xt_custom", array());
$this->assign_function("caption", "xt_caption", array());
$this->assign_function("pagetitlelabel", "xt_pagetitlelabel", array());
$this->assign_method("mainmenu", $this, "xt_displaymainmenu", array());
$this->assign_method("menu", $this, "xt_displaymenu", array());
$this->assign_function("TabGroup", "xt_displaytabs", array());
$this->assign_function("Section", "xt_displaytabs", array());
if (!$hideAddedCharts) {
}
$mlang_charsets = array();
$mlang_charsets["Spanish"] = "Windows-1252";
$this->charsets =& $mlang_charsets;
$html_attrs = '';
if (isRTL()) {
$this->assign("RTL_block", true);
$this->assign("rtlCSS", true);
$html_attrs .= 'dir="RTL" ';
} else {
$this->assign("LTR_block", true);
}
if (mlang_getcurrentlang() == 'English') {
$html_attrs .= 'lang="en"';
}
$this->assign("html_attrs", $html_attrs);
$this->assign("menu_block", true);
}
示例10: setFieldLabel
/**
* @param String field name (A good field name case-sensitive)
* @param String label value
* @return Boolean
*/
public function setFieldLabel($field, $label)
{
global $field_labels;
if (isset($field_labels[GoodFieldName($this->tName)][mlang_getcurrentlang()][GoodFieldName($field)])) {
$field_labels[GoodFieldName($this->tName)][mlang_getcurrentlang()][GoodFieldName($field)] = $label;
return true;
} else {
return false;
}
}
示例11: array
$tdataLU_Customer_Type[".OwnerID"] = "";
$tdataLU_Customer_Type[".OriginalTable"] = "dbo.LU_Customer Type";
// field labels
$fieldLabelsLU_Customer_Type = array();
if (mlang_getcurrentlang() == "English") {
$fieldLabelsLU_Customer_Type["English"] = array();
$fieldToolTipsLU_Customer_Type["English"] = array();
$fieldLabelsLU_Customer_Type["English"]["Code"] = "Code";
$fieldToolTipsLU_Customer_Type["English"]["Code"] = "";
$fieldLabelsLU_Customer_Type["English"]["Type"] = "Type";
$fieldToolTipsLU_Customer_Type["English"]["Type"] = "";
if (count($fieldToolTipsLU_Customer_Type["English"])) {
$tdataLU_Customer_Type[".isUseToolTips"] = true;
}
}
if (mlang_getcurrentlang() == "Urdu") {
$fieldLabelsLU_Customer_Type["Urdu"] = array();
$fieldToolTipsLU_Customer_Type["Urdu"] = array();
$fieldLabelsLU_Customer_Type["Urdu"]["Code"] = "Code";
$fieldToolTipsLU_Customer_Type["Urdu"]["Code"] = "";
$fieldLabelsLU_Customer_Type["Urdu"]["Type"] = "Type";
$fieldToolTipsLU_Customer_Type["Urdu"]["Type"] = "";
if (count($fieldToolTipsLU_Customer_Type["Urdu"])) {
$tdataLU_Customer_Type[".isUseToolTips"] = true;
}
}
$tdataLU_Customer_Type[".NCSearch"] = true;
$tdataLU_Customer_Type[".shortTableName"] = "LU_Customer_Type";
$tdataLU_Customer_Type[".nSecOptions"] = 0;
$tdataLU_Customer_Type[".recsPerRowList"] = 1;
$tdataLU_Customer_Type[".tableGroupBy"] = "0";
示例12: GetBaseScriptsForPage
function GetBaseScriptsForPage($isDisplayLoading, $additionalScripts = "", $customText = "")
{
$result = "";
$result .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/loadfirst.js") . "\"></script>";
$result .= $additionalScripts;
$result .= "<script type=\"text/javascript\" src=\"" . GetRootPathForResources("include/lang/" . getLangFileName(mlang_getcurrentlang()) . ".js") . "\"></script>";
if ($isDisplayLoading) {
$result .= "<script type=\"text/javascript\">Runner.runLoading('" . $customText . "');</script>";
}
return $result;
}
示例13: XTempl
/**
* @param Boolean hideAddedCharts (optional) #9607 1.
*/
function XTempl($hideAddedCharts = false)
{
global $mlang_charsets;
$this->xt_vars = array();
$this->xt_stack = array();
$this->xt_stack[] =& $this->xt_vars;
if (!isMobile()) {
xtempl_include_header($this, "header", "include/header.php");
xtempl_include_header($this, "footer", "include/footer.php");
} else {
xtempl_include_header($this, "header", "include/mheader.php");
xtempl_include_header($this, "footer", "include/mfooter.php");
}
$this->assign_method("event", $this, "xt_doevent", array());
$this->assign_function("label", "xt_label", array());
$this->assign_function("custom", "xt_custom", array());
$this->assign_function("caption", "xt_caption", array());
$this->assign_function("pagetitlelabel", "xt_pagetitlelabel", array());
$this->assign_method("mainmenu", $this, "xt_displaymainmenu", array());
$this->assign_method("menu", $this, "xt_displaymenu", array());
$this->assign_function("TabGroup", "xt_displaytabs", array());
$this->assign_function("Section", "xt_displaytabs", array());
if (!$hideAddedCharts) {
$this->assign_function("Current_Year_Sales_chart", "xt_showchart", array("chartname" => "Current_Year_Sales", "table" => "Current Year Sales", "ctype" => "Line"));
$this->assign_function("Sales_By_SalesPerson_Chart_chart", "xt_showchart", array("chartname" => "Sales_By_SalesPerson_Chart", "table" => "Sales By SalesPerson Chart", "ctype" => "2DBar"));
$this->assign_function("Sales_By_Department_chart", "xt_showchart", array("chartname" => "Sales_By_Department", "table" => "Sales By Department", "ctype" => "2DBar"));
$this->assign_function("Current___Last_Year_Sales_Comparison_chart", "xt_showchart", array("chartname" => "Current___Last_Year_Sales_Comparison", "table" => "Current - Last Year Sales Comparison", "ctype" => "2DColumn"));
$this->assign_function("Current___Last_Year_GP_Comparison_chart", "xt_showchart", array("chartname" => "Current___Last_Year_GP_Comparison", "table" => "Current - Last Year GP Comparison", "ctype" => "2DColumn"));
$this->assign_function("Current___Last_Year_GP___Comparison_chart", "xt_showchart", array("chartname" => "Current___Last_Year_GP___Comparison", "table" => "Current - Last Year GP % Comparison", "ctype" => "2DColumn"));
$this->assign_function("Fact_SalesTransaction_Chart_chart", "xt_showchart", array("chartname" => "Fact_SalesTransaction_Chart", "table" => "Fact_SalesTransaction Chart", "ctype" => "2DColumn"));
$this->assign_function("Top_Selling_Products_Current_Year_chart", "xt_showchart", array("chartname" => "Top_Selling_Products_Current_Year", "table" => "Top Selling Products Current Year", "ctype" => "2DBar"));
$this->assign_function("Worst_Selling_Products_Current_Year_chart", "xt_showchart", array("chartname" => "Worst_Selling_Products_Current_Year", "table" => "Worst Selling Products Current Year", "ctype" => "2DBar"));
$this->assign_function("Non_Selling_Products_with_Stock_Current_Year_chart", "xt_showchart", array("chartname" => "Non_Selling_Products_with_Stock_Current_Year", "table" => "Non Selling Products with Stock Current Year", "ctype" => "2DBar"));
$this->assign_function("Top_Grossing_Products_YTD_chart", "xt_showchart", array("chartname" => "Top_Grossing_Products_YTD", "table" => "Top Grossing Products YTD", "ctype" => "2DBar"));
}
$mlang_charsets = array();
$mlang_charsets["English"] = "Windows-1252";
$this->charsets =& $mlang_charsets;
$html_attrs = '';
if (isRTL()) {
$this->assign("RTL_block", true);
$this->assign("rtlCSS", true);
$html_attrs .= 'dir="RTL" ';
} else {
$this->assign("LTR_block", true);
}
if (mlang_getcurrentlang() == 'English') {
$html_attrs .= 'lang="en"';
}
$this->assign("html_attrs", $html_attrs);
$this->assign("menu_block", true);
}
示例14: getPageTitleTemplate
/**
* Get a page's title template
* @param String page
* @param String table A good table name
* @param ProjectSettings pSet (optional)
* @return String
*/
protected function getPageTitleTemplate( $page, $table, $pSet )
{
global $page_titles;
if( !$table || $page == PAGE_REGISTER )
$table = ".global";
$templ = "";
if( array_key_exists($table, $page_titles) )
{
$templ = @$page_titles[ $table ][ mlang_getcurrentlang() ][ $page ];
}
if( strlen($templ) )
return $templ;
return $this->getDefaultPageTitle( $page, $table, $pSet );
}
示例15: mlang_message
function mlang_message($tag)
{
global $mlang_messages, $mlang_defaultlang;
return @$mlang_messages[mlang_getcurrentlang()][$tag];
}