%PDF- %PDF-
Server IP : 37.220.80.31 / Your IP : 3.144.25.133 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.order.ajax/templates/.default/ |
Upload File : |
<? if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED !== true) die(); use Bitrix\Main\Localization\Loc; /** * @var array $arParams * @var array $arResult * @var $APPLICATION CMain */ if ($arParams["SET_TITLE"] == "Y") { $APPLICATION->SetTitle(Loc::getMessage("SOA_ORDER_COMPLETE")); } ?> <? if (!empty($arResult["ORDER"])): ?> <table class="sale_order_full_table"> <tr> <td> <?=Loc::getMessage("SOA_ORDER_SUC", array( "#ORDER_DATE#" => $arResult["ORDER"]["DATE_INSERT"]->toUserTime()->format('d.m.Y H:i'), "#ORDER_ID#" => $arResult["ORDER"]["ACCOUNT_NUMBER"] ))?> <? if (!empty($arResult['ORDER']["PAYMENT_ID"])): ?> <?=Loc::getMessage("SOA_PAYMENT_SUC", array( "#PAYMENT_ID#" => $arResult['PAYMENT'][$arResult['ORDER']["PAYMENT_ID"]]['ACCOUNT_NUMBER'] ))?> <? endif ?> <? if ($arParams['NO_PERSONAL'] !== 'Y'): ?> <br /><br /> <?=Loc::getMessage('SOA_ORDER_SUC1', ['#LINK#' => $arParams['PATH_TO_PERSONAL']])?> <? endif; ?> </td> </tr> </table> <? if ($arResult["ORDER"]["IS_ALLOW_PAY"] === 'Y') { if (!empty($arResult["PAYMENT"])) { foreach ($arResult["PAYMENT"] as $payment) { if ($payment["PAID"] != 'Y') { if (!empty($arResult['PAY_SYSTEM_LIST']) && array_key_exists($payment["PAY_SYSTEM_ID"], $arResult['PAY_SYSTEM_LIST']) ) { $arPaySystem = $arResult['PAY_SYSTEM_LIST_BY_PAYMENT_ID'][$payment["ID"]]; if (empty($arPaySystem["ERROR"])) { ?> <br /><br /> <table class="sale_order_full_table"> <tr> <td class="ps_logo"> <div class="pay_name"><?=Loc::getMessage("SOA_PAY") ?></div> <?=CFile::ShowImage($arPaySystem["LOGOTIP"], 100, 100, "border=0\" style=\"width:100px\"", "", false) ?> <div class="paysystem_name"><?=$arPaySystem["NAME"] ?></div> <br/> </td> </tr> <tr> <td> <? if ($arPaySystem["ACTION_FILE"] <> '' && $arPaySystem["NEW_WINDOW"] == "Y" && $arPaySystem["IS_CASH"] != "Y"): ?> <? $orderAccountNumber = urlencode(urlencode($arResult["ORDER"]["ACCOUNT_NUMBER"])); $paymentAccountNumber = $payment["ACCOUNT_NUMBER"]; ?> <script> window.open('<?=$arParams["PATH_TO_PAYMENT"]?>?ORDER_ID=<?=$orderAccountNumber?>&PAYMENT_ID=<?=$paymentAccountNumber?>'); </script> <?=Loc::getMessage("SOA_PAY_LINK", array("#LINK#" => $arParams["PATH_TO_PAYMENT"]."?ORDER_ID=".$orderAccountNumber."&PAYMENT_ID=".$paymentAccountNumber))?> <? if (CSalePdf::isPdfAvailable() && $arPaySystem['IS_AFFORD_PDF']): ?> <br/> <?=Loc::getMessage("SOA_PAY_PDF", array("#LINK#" => $arParams["PATH_TO_PAYMENT"]."?ORDER_ID=".$orderAccountNumber."&pdf=1&DOWNLOAD=Y"))?> <? endif ?> <? else: ?> <?=$arPaySystem["BUFFERED_OUTPUT"]?> <? endif ?> </td> </tr> </table> <? } else { ?> <span style="color:red;"><?=Loc::getMessage("SOA_ORDER_PS_ERROR")?></span> <? } } else { ?> <span style="color:red;"><?=Loc::getMessage("SOA_ORDER_PS_ERROR")?></span> <? } } } } } else { ?> <br /><strong><?=$arParams['MESS_PAY_SYSTEM_PAYABLE_ERROR']?></strong> <? } ?> <? else: ?> <b><?=Loc::getMessage("SOA_ERROR_ORDER")?></b> <br /><br /> <table class="sale_order_full_table"> <tr> <td> <?=Loc::getMessage("SOA_ERROR_ORDER_LOST", ["#ORDER_ID#" => htmlspecialcharsbx($arResult["ACCOUNT_NUMBER"])])?> <?=Loc::getMessage("SOA_ERROR_ORDER_LOST1")?> </td> </tr> </table> <? endif ?>