当前位置: 首页>>代码示例>>PHP>>正文


PHP CSaleLang::GetByID方法代码示例

本文整理汇总了PHP中CSaleLang::GetByID方法的典型用法代码示例。如果您正苦于以下问题:PHP CSaleLang::GetByID方法的具体用法?PHP CSaleLang::GetByID怎么用?PHP CSaleLang::GetByID使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CSaleLang的用法示例。


在下文中一共展示了CSaleLang::GetByID方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: InitStep

 function InitStep()
 {
     $this->SetTitle(GetMessage("WW_STEP1"));
     $this->SetNextStep("step2");
     $this->SetStepID("step1");
     $this->SetFinishStep("install");
     $this->SetCancelStep("cancel");
     $dbSite = CSite::GetDefList();
     if ($arSite = $dbSite->Fetch()) {
         CModule::IncludeModule("sale");
         $arCurr = CSaleLang::GetByID($arSite["LID"]);
         $wizard =& $this->GetWizard();
         $wizard->SetDefaultVars(array("siteID" => $arSite["ID"], "orderEmail" => "order@" . $arSite["SERVER_NAME"], "saveBasket" => 30, "currencyID" => $arCurr["CURRENCY"]));
     }
 }
开发者ID:Satariall,项目名称:izurit,代码行数:15,代码来源:wizard.php

示例2: GetLangCurrency

 function GetLangCurrency($LID)
 {
     $LID = trim($LID);
     if (strlen($LID) <= 0) {
         return false;
     }
     $def_curr = "";
     if ($res = CSaleLang::GetByID($LID)) {
         $def_curr = $res["CURRENCY"];
     }
     if (strlen($def_curr) <= 0) {
         $def_curr = COption::GetOptionString("sale", "default_currency");
     }
     return $def_curr;
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:15,代码来源:settings.php

示例3: array

		COption::SetOptionString("eshop", "shopKPP", $shopKPP, false, WIZARD_SITE_ID);
		$shopNS = $wizard->GetVar("shopNS");
		COption::SetOptionString("eshop", "shopNS", $shopNS, false, WIZARD_SITE_ID);
		$shopBANK = $wizard->GetVar("shopBANK");
		COption::SetOptionString("eshop", "shopBANK", $shopBANK, false, WIZARD_SITE_ID);
		$shopBANKREKV = $wizard->GetVar("shopBANKREKV");
		COption::SetOptionString("eshop", "shopBANKREKV", $shopBANKREKV, false, WIZARD_SITE_ID);
		$shopKS = $wizard->GetVar("shopKS");
		COption::SetOptionString("eshop", "shopKS", $shopKS, false, WIZARD_SITE_ID);
		$siteStamp = $wizard->GetVar("siteStamp");
		if ($siteStamp == "" )
			$siteStamp = COption::GetOptionString("eshop", "siteStamp", "", WIZARD_SITE_ID);
	}
	elseif ($shopLocalization == "ua")
	{
		if (CSaleLang::GetByID(WIZARD_SITE_ID))
			CSaleLang::Update(WIZARD_SITE_ID, array("LID" => WIZARD_SITE_ID, "CURRENCY" => "UAH"));
		else
			CSaleLang::Add(array("LID" => WIZARD_SITE_ID, "CURRENCY" => "UAH"));

		$shopLocation = $wizard->GetVar("shopLocation_ua");
		COption::SetOptionString("eshop", "shopLocation_ua", $shopLocation, false, WIZARD_SITE_ID);
		$shopOfName = $wizard->GetVar("shopOfName_ua");
		COption::SetOptionString("eshop", "shopOfName_ua", $shopOfName, false, WIZARD_SITE_ID);
		$shopAdr = $wizard->GetVar("shopAdr_ua");
		COption::SetOptionString("eshop", "shopAdr_ua", $shopAdr, false, WIZARD_SITE_ID);

		$shopEGRPU_ua = $wizard->GetVar("shopEGRPU_ua");
		COption::SetOptionString("eshop", "shopEGRPU_ua", $shopEGRPU_ua, false, WIZARD_SITE_ID);
		$shopINN_ua = $wizard->GetVar("shopINN_ua");
		COption::SetOptionString("eshop", "shopINN_ua", $shopINN_ua, false, WIZARD_SITE_ID);
开发者ID:ASDAFF,项目名称:entask.ru,代码行数:31,代码来源:step1.php

示例4: header

             $arResponse = $result;
         }
     }
     header("Content-Type: application/x-javascript; charset=" . LANG_CHARSET);
     echo CUtil::PhpToJSObject($arResponse);
     exit;
 }
 // </editor-fold>
 if (!isset($arParams['F_SALE_SITE'])) {
     $arParams['F_SALE_SITE'] = CBaseSaleReportHelper::getDefaultSiteId();
 }
 // Select report currency
 $siteId = CBaseSaleReportHelper::getDefaultSiteId();
 $siteCurrencyId = '';
 if ($siteId !== null) {
     $arCurr = \CSaleLang::GetByID($siteId);
     if (!empty($arCurr['CURRENCY'])) {
         $siteCurrencyId = $arCurr['CURRENCY'];
     }
 }
 if (empty($siteCurrencyId)) {
     $siteCurrencyId = \COption::GetOptionString('sale', 'default_currency', null, $siteId !== null ? $siteId : false);
 }
 CBaseSaleReportHelper::setSiteCurrencyId($siteCurrencyId);
 $reportCurrencyId = $siteCurrencyId;
 if (isset($_REQUEST['F_SALE_CURRENCY'])) {
     $currenciesIds = array_keys(CBaseSaleReportHelper::getCurrencies());
     if (in_array($_REQUEST['F_SALE_CURRENCY'], $currenciesIds, true)) {
         $reportCurrencyId = $_REQUEST['F_SALE_CURRENCY'];
     }
 }
开发者ID:DarneoStudio,项目名称:bitrix,代码行数:31,代码来源:report_view_prepdata.php

示例5: GetMessage

        echo LANGUAGE_ID;
        ?>
" title="<?php 
        echo GetMessage("SALE_SITE_ALT");
        ?>
"><?php 
        echo $val["ID"];
        ?>
</a>] <?php 
        echo $val["NAME"];
        ?>
				</td>
				<td valign="top">

					<?php 
        $arCurr = CSaleLang::GetByID($val["ID"]);
        echo CCurrency::SelectBox("CURRENCY_" . $val["ID"], $arCurr["CURRENCY"], GetMessage("SALE_NOT_SET"), True, "");
        ?>

				</td>
				<td valign="top">

					<?php 
        $arCurrentGroups = array();
        $dbSiteGroupsList = CSaleGroupAccessToSite::GetList(array(), array("SITE_ID" => $val["ID"]));
        while ($arSiteGroup = $dbSiteGroupsList->Fetch()) {
            $arCurrentGroups[] = IntVal($arSiteGroup["GROUP_ID"]);
        }
        $b = "c_sort";
        $o = "asc";
        $userGroupList = array();
开发者ID:webgksupport,项目名称:alpina,代码行数:31,代码来源:options.php

示例6: ShowError

}
if (!CBXFeatures::IsFeatureEnabled('SaleReports')) {
    require $DOCUMENT_ROOT . "/bitrix/modules/main/include/prolog_admin_after.php";
    ShowError(GetMessage("SALE_FEATURE_NOT_ALLOW"));
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";
    die;
}
IncludeModuleLangFile(__FILE__);
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/sale/prolog.php";
$arColor = array("08738C", "C6B59C", "0000FF", "FF0000", "FFFF00", "F7C684", "8CD694", "9CADCE", "B584BD", "C684BD", "FF94C6", "BDE794", "F7949C", "7BCE6B", "FF6342", "E2F86B", "A5DE63", "42BD6B", "52BDA5", "F79473", "5AC6DE", "94D6C6", "9C52AD", "BD52AD", "9C94C6", "FF63AD", "FF6384", "FE881D", "FF9C21", "FFAD7B", "EFFF29", "7BCE6B", "42BD6B", "52C6AD", "6B8CBD", "3963AD", "F7298C", "A51800", "9CA510", "528C21", "689EB9", "217B29", "6B8CC6", "D6496C", "C6A56B", "00B0A4", "AD844A", "9710B4", "946331", "AD3908", "734210", "008400", "3EC19A", "28D7D7", "6B63AD", "A4C13E", "7BCE31", "A5DE94", "94D6E7", "9C8C73", "FF8C4A", "A7588B", "03CF45", "F7B54A", "808040", "947BBD", "840084", "737373", "C48322", "809254", "1E8259", "63C6DE", "46128D", "8080C0");
IncludeModuleLangFile(__FILE__);
$arSite = array();
$dbSite = CSite::GetList($by1 = "sort", $order1 = "desc", array("ACTIVE" => "Y"));
while ($arSites = $dbSite->GetNext()) {
    $arSite[$arSites["LID"]] = $arSites["NAME"];
    $arRes = CSaleLang::GetByID($arSites["LID"]);
    if ($arRes) {
        $arAvCur[$arSites["LID"]] = $arRes["CURRENCY"];
    } else {
        $arAvCur[$arSites["LID"]] = COption::GetOptionString("sale", "default_currency", $CURRENCY_DEFAULT);
    }
}
$arStatus = array();
$dbStatusList = CSaleStatus::GetList(array("SORT" => "ASC"), array("LID" => LANGUAGE_ID), false, false, array("ID", "NAME", "SORT"));
while ($arStatusList = $dbStatusList->GetNext()) {
    $arStatus[$arStatusList["ID"]] = $arStatusList["NAME"];
}
$sTableID = "tbl_sale_graph_money";
$oSort = new CAdminSorting($sTableID);
$lAdmin = new CAdminList($sTableID, $oSort);
if ($lAdmin->IsDefaultFilter()) {
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:stat_graph_money.php


注:本文中的CSaleLang::GetByID方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。