本文整理汇总了PHP中CSaleDelivery::GetDelivery2PaySystem方法的典型用法代码示例。如果您正苦于以下问题:PHP CSaleDelivery::GetDelivery2PaySystem方法的具体用法?PHP CSaleDelivery::GetDelivery2PaySystem怎么用?PHP CSaleDelivery::GetDelivery2PaySystem使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CSaleDelivery
的用法示例。
在下文中一共展示了CSaleDelivery::GetDelivery2PaySystem方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: foreach
}
if (!empty($arParams["DELIVERY2PAY_SYSTEM"])) {
foreach ($arParams["DELIVERY2PAY_SYSTEM"] as $val) {
if (is_array($val[$deliv])) {
foreach ($val[$deliv] as $v) {
$arFilter["ID"][] = $v;
}
} elseif (IntVal($val[$deliv]) > 0) {
$arFilter["ID"][] = $val[$deliv];
}
}
}
//select delivery to pay
$bShowDefault = False;
$arD2P = array();
$dbRes = CSaleDelivery::GetDelivery2PaySystem(array("DELIVERY_ID" => $deliv));
while ($arRes = $dbRes->Fetch()) {
$arD2P[] = $arRes["PAYSYSTEM_ID"];
$bShowDefault = True;
}
$dbPaySystem = CSalePaySystem::GetList(array("SORT" => "ASC", "PSA_NAME" => "ASC"), $arFilter);
$bFirst = True;
while ($arPaySystem = $dbPaySystem->Fetch()) {
if (!$bShowDefault || in_array($arPaySystem["ID"], $arD2P)) {
if ($arPaySystem["PSA_LOGOTIP"] > 0) {
$arPaySystem["PSA_LOGOTIP"] = CFile::GetFileArray($arPaySystem["PSA_LOGOTIP"]);
}
if (IntVal($arResult["PAY_SYSTEM_ID"]) == IntVal($arPaySystem["ID"]) || IntVal($arResult["PAY_SYSTEM_ID"]) <= 0 && $bFirst) {
$arPaySystem["CHECKED"] = "Y";
}
$arPaySystem["PSA_NAME"] = htmlspecialcharsEx($arPaySystem["PSA_NAME"]);
示例2: IntVal
$arDeliveryServiceAll[] = $arDeliveryService;
}
if (!$bFound && !empty($arUserResult["DELIVERY_ID"]) && strpos($arUserResult["DELIVERY_ID"], ":") !== false) {
$arUserResult["DELIVERY_ID"] = "";
$arResult["DELIVERY_PRICE"] = 0;
$arResult["DELIVERY_PRICE_FORMATED"] = "";
}
//select delivery to paysystem
$arUserResult["PAY_SYSTEM_ID"] = IntVal($arUserResult["PAY_SYSTEM_ID"]);
$arUserResult["DELIVERY_ID"] = trim($arUserResult["DELIVERY_ID"]);
$bShowDefaultSelected = True;
$arD2P = array();
$arP2D = array();
$delivery = "";
$bSelected = false;
$dbRes = CSaleDelivery::GetDelivery2PaySystem(array());
while ($arRes = $dbRes->Fetch()) {
$arD2P[$arRes["DELIVERY_ID"]][$arRes["PAYSYSTEM_ID"]] = $arRes["PAYSYSTEM_ID"];
$arP2D[$arRes["PAYSYSTEM_ID"]][$arRes["DELIVERY_ID"]] = $arRes["DELIVERY_ID"];
$bShowDefaultSelected = False;
}
if ($arParams["DELIVERY_TO_PAYSYSTEM"] == "d2p") {
$arP2D = array();
}
if ($arParams["DELIVERY_TO_PAYSYSTEM"] == "p2d") {
if (IntVal($arUserResult["PAY_SYSTEM_ID"]) <= 0) {
$bFirst = True;
$arFilter = array("ACTIVE" => "Y", "PERSON_TYPE_ID" => $arUserResult["PERSON_TYPE_ID"], "PSA_HAVE_PAYMENT" => "Y");
$dbPaySystem = CSalePaySystem::GetList(array("SORT" => "ASC", "PSA_NAME" => "ASC"), $arFilter);
while ($arPaySystem = $dbPaySystem->Fetch()) {
if (IntVal($arUserResult["PAY_SYSTEM_ID"]) <= 0 && $bFirst) {
示例3: GetMessage
</tr>
<?php
$tabControl->BeginNextTab();
?>
<tr>
<td width="40%">
<?php
echo GetMessage("SDEN_PAY_NAME");
?>
:
</td>
<td width="60%">
<select multiple="multiple" size="5" name="PAY_SYSTEM[]">
<?php
$arPaySystemId = array();
$dbRes = CSaleDelivery::GetDelivery2PaySystem(array("DELIVERY_ID" => $ID, "LID" => $str_LID));
while ($arRes = $dbRes->Fetch()) {
$arPaySystemId[] = $arRes["PAYSYSTEM_ID"];
}
?>
<option value="" <?php
echo count($arPaySystemId) <= 0 ? "selected" : "";
?>
><?php
echo GetMessage("SDEN_PAYSYSTEM_ALL");
?>
</option>
<?php
$dbResultList = CSalePaySystem::GetList(array("SORT" => "ASC", "NAME" => "ASC"), array("ACTIVE" => "Y"), false, false, array("ID", "NAME", "ACTIVE", "SORT"));
while ($arPayType = $dbResultList->Fetch()) {
?>