2use \Bitrix\Main\Localization\Loc;
3use \Bitrix\Sale\PaySystem;
5Loc::loadMessages(__FILE__);
25if (
$request->get(
"generate") ===
'Y')
35 $errorMsg = Loc::getMessage(
'SALE_YANDEX_RETURN_ERROR_CN');
43 $all =
$request->get(
'SETTINGS_CLEAR_ALL') !==
null;
47 $certFile =
$request->getFile(
"CERT_FILE");
48 if (file_exists($certFile[
'tmp_name']))
70 "TAB" => Loc::getMessage(
'SALE_YANDEX_RETURN_PT'),
71 "TITLE" => Loc::getMessage(
"SALE_YANDEX_RETURN_TITLE")
77<form method=
"POST" enctype=
"multipart/form-data"
78 action=
"<?=$APPLICATION->GetCurPage()?>?shop_id=<?=$shopId;?>&handler=yandex&lang=<?echo LANG?>"
79 xmlns=
"http://www.w3.org/1999/html">
87 <td colspan=
"2"><?=Loc::getMessage(
'SALE_YANDEX_RETURN_SUBTITLE');?></td>
90 <td
width=
"40%" class=
"adm-detail-content-cell-l"><?=Loc::getMessage(
"SALE_YANDEX_RETURN_CERT")?>:</td>
92 <td
width=
"60%" class=
"adm-detail-content-cell-r">
94 <input type=
"file" name=
"CERT_FILE" size=
"40"><br>
95 <?=Loc::getMessage(
'SALE_YANDEX_RETURN_TEXT_CLEAR_ALL')?>
96 <input
id=SETTINGS_CLEAR_ALL
' type="checkbox" name='SETTINGS_CLEAR_ALL
'>
98 <?=Loc::getMessage('SALE_YANDEX_RETURN_TEXT_SUCCESS
')?><br>
99 <?=Loc::getMessage('SALE_YANDEX_RETURN_TEXT_CLEAR
')?>
100 <input id='SETTINGS_CLEAR
' type="checkbox" name='SETTINGS_CLEAR
'>
106 <td colspan="2"><?=Loc::getMessage("SALE_YANDEX_RETURN_HELP")?></td>
109 <td colspan="2"><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW")?></td>
114 <li><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW_ITEM0");?></li>
115 <li><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW_ITEM1")?></li>
116 <li><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW_ITEM2")?></li>
117 <li><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW_ITEM3")?></li>
118 <li><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW_ITEM4")?></li>
119 <li><?=Loc::getMessage("SALE_YANDEX_RETURN_HOW_ITEM5")?></li>
124 <td colspan="2"><?=Loc::getMessage("SALE_YANDEX_RETURN_STATEMENT")?></td>
129 <td class="adm-detail-valign-top adm-detail-content-cell-l"><strong><?=Loc::getMessage("SALE_YANDEX_RETURN_STATEMENT_CN")?></strong>:</td>
130 <td class="adm-detail-content-cell-r"><?=$strCN?></td>
133 <td class="adm-detail-valign-top adm-detail-content-cell-l"><strong><?=Loc::getMessage("SALE_YANDEX_RETURN_CSR")?></strong>:</td>
134 <td class="adm-detail-content-cell-r"><?=sprintf(Loc::getMessage("SALE_YANDEX_RETURN_CSR_DOWNLOAD"), $APPLICATION->GetCurPage()."?lang=ru&csr=Y&shop_id=".$shopId."&handler=yandex")?></td>
137 <td class="adm-detail-valign-top adm-detail-content-cell-l"><strong><?=Loc::getMessage("SALE_YANDEX_RETURN_STATEMENT_SIGN")?></strong>:</td>
138 <td class="adm-detail-content-cell-r">
139 <textarea cols="55" disabled="" rows="13" >
140 <?=PaySystem\YandexCert::getSign($shopId)?>
145 <td class="adm-detail-valign-top adm-detail-content-cell-l"><strong><?=Loc::getMessage("SALE_YANDEX_RETURN_STATEMENT_CAUSE")?></strong>:</td>
146 <td class="adm-detail-content-cell-r"><?=Loc::getMessage("SALE_YANDEX_RETURN_STATEMENT_CAUSE_VAL")?></td>
150 <td class="adm-detail-valign-top" colspan="2">
151 <?=Loc::getMessage('SALE_YANDEX_RETURN_COMPANY_NAME
')?>: <input type="text" name="company_name" value="">
155 <td class="adm-detail-valign-top" colspan="2">
156 <input type="submit" name="generate" value="<?=Loc::getMessage("SALE_YANDEX_RETURN_GENERATE")?>">
157 <input type="hidden" name="generate" value="Y">
162 <?$tabRControl->EndTab();?>
165 <?$tabRControl->Buttons();?>
166 <input type="submit" name="Update" value="<?=Loc::getMessage("SALE_YANDEX_RETURN_SAVE")?>">
167 <input type="hidden" name="Update" value="Y">
171<?$tabRControl->End();
if(!Loader::includeModule('catalog')) if(!AccessController::getCurrent() ->check(ActionDictionary::ACTION_PRICE_EDIT)) if(!check_bitrix_sessid()) $request
static includeModule($moduleName)
static setCert($file, $shopId)
static generate($shopId, $companyName)
static clear($shopId, $all=false)
static ShowMessage($message)
bx popup label bx width30 PAGE_NEW_MENU_NAME text width
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
check_bitrix_sessid($varname='sessid')
LocalRedirect($url, $skip_security_check=false, $status="302 Found")