20 if (isset($arOldSetupVars[
'YANDEX_EXPORT']))
21 $YANDEX_EXPORT = $arOldSetupVars[
'YANDEX_EXPORT'];
22 if (isset($arOldSetupVars[
'SETUP_FILE_NAME']))
24 if (isset($arOldSetupVars[
'SETUP_PROFILE_NAME']))
25 $SETUP_PROFILE_NAME = $arOldSetupVars[
'SETUP_PROFILE_NAME'];
26 if (isset($arOldSetupVars[
'SETUP_SERVER_NAME']))
28 if (isset($arOldSetupVars[
'CURRENCY']))
29 $currencyYandex = $arOldSetupVars[
'CURRENCY'];
30 if (isset($arOldSetupVars[
'USE_HTTPS']))
31 $USE_HTTPS = $arOldSetupVars[
'USE_HTTPS'];
36 if (empty($YANDEX_EXPORT) || !is_array($YANDEX_EXPORT))
56 if (!isset($USE_HTTPS) || $USE_HTTPS !=
'Y')
59 if ((
$ACTION==
"EXPORT_SETUP" ||
$ACTION ==
'EXPORT_EDIT' ||
$ACTION ==
'EXPORT_COPY') && $SETUP_PROFILE_NAME ==
'')
72 "TEXT" =>
GetMessage(
"CATI_ADM_RETURN_TO_LIST"),
73 "TITLE" =>
GetMessage(
"CATI_ADM_RETURN_TO_LIST_TITLE"),
74 "LINK" =>
"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID,
92<form method=
"POST" action=
"<? echo $APPLICATION->GetCurPage().$actionParams; ?>" enctype=
"multipart/form-data" name=
"dataload">
96 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB1"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB1_TITLE")),
97 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB2"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB2_TITLE")),
109 if (!isset($YANDEX_EXPORT) || !is_array($YANDEX_EXPORT))
110 $YANDEX_EXPORT =
array();
112 $arYandexKeys =
array();
113 if (!empty($YANDEX_EXPORT))
114 $arYandexKeys = array_fill_keys($YANDEX_EXPORT,
true);
116 $intCountChecked = 0;
117 $intCountAvailIBlock = 0;
118 $arIBlockIDs =
array();
127 $arIBlockIDs[] = (int)
$arCatalog[
'IBLOCK_ID'];
129 if (empty($arIBlockIDs))
131 $arIBlockList =
array();
133 array(
"IBLOCK_TYPE" =>
"ASC",
"NAME" =>
"ASC"),
134 array(
'ID' => $arIBlockIDs,
'ACTIVE' =>
'Y',
'CHECK_PERMISSIONS' =>
'Y',
'MIN_PERMISSION' =>
'U')
145 $boolYandex = isset($arYandexKeys[
$res[
'ID']]);
146 $arIBlockList[] =
array(
148 'NAME' =>
$res[
'NAME'],
149 'IBLOCK_TYPE_ID' =>
$res[
'IBLOCK_TYPE_ID'],
150 'YANDEX_EXPORT' => $boolYandex,
155 $intCountAvailIBlock++;
157 if ($intCountChecked == $intCountAvailIBlock)
159 ?><table
class=
"internal" width=
"100%">
163 <input
style=
"vertical-align: middle;" type=
"checkbox" id=
"yandex_export_all" value=
"Y" onclick=
"checkAll(this,<? echo $intCountAvailIBlock; ?>);"<? echo ($boolAll ?
' checked' :
''); ?>>
171 <input type=
"checkbox" name=
"YANDEX_EXPORT[<? echo $key; ?>]" id=
"YANDEX_EXPORT_<? echo $key; ?>" value=
"<? echo $arIBlock["ID
"]; ?>"<?
if (
$arIBlock[
'YANDEX_EXPORT']) echo
" checked"; ?> onclick=
"checkOne(this,<? echo $intCountAvailIBlock; ?>);">
176 <input type=
"hidden" name=
"count_checked" id=
"count_checked" value=
"<? echo $intCountChecked; ?>">
178 function checkAll(obj, cnt)
180 var boolCheck = obj.checked,
182 for (i = 0; i < cnt; i++)
184 BX(
'YANDEX_EXPORT_'+i,
true).checked = boolCheck;
186 BX(
'count_checked',
true).value = (boolCheck ? cnt : 0);
188 function checkOne(obj, cnt)
190 var boolCheck = obj.checked,
191 intCurrent = parseInt(BX(
'count_checked',
true).value, 10);
192 intCurrent += (boolCheck ? 1 : -1);
193 BX(
'yandex_export_all',
true).checked = (intCurrent >= cnt);
194 BX(
'count_checked',
true).value = intCurrent;
202 <input type=
"hidden" name=
"USE_HTTPS" value=
"N">
203 <input type=
"checkbox" name=
"USE_HTTPS" value=
"Y"<? echo ($USE_HTTPS ==
'Y' ?
' checked' :
''); ?>
209 <input type=
"text" name=
"SETUP_SERVER_NAME" value=
"<?echo ($SETUP_SERVER_NAME <> '') ? htmlspecialcharsbx($SETUP_SERVER_NAME) : '' ?>" size=
"50" /> <input type=
"button" onclick=
"this.form['SETUP_SERVER_NAME'].value = window.location.host;" value=
"<?echo GetMessage('CET_SERVER_NAME_SET_CURRENT')?>" />
215 <input type=
"text" name=
"SETUP_FILE_NAME" value=
"<?echo htmlspecialcharsbx($SETUP_FILE_NAME <> '' ? str_replace($strCatalogDefaultFolder, '', $SETUP_FILE_NAME) : "yandex_
".mt_rand(0, 999999).".php
"); ?>" size=
"50">
224 <input type=
"text" name=
"SETUP_PROFILE_NAME" value=
"<?echo htmlspecialcharsbx($SETUP_PROFILE_NAME)?>" size=
"30">
236 $YANDEX_EXPORT = array_values($YANDEX_EXPORT);
247 ?><input type=
"hidden" name=
"PROFILE_ID" value=
"<? echo intval($PROFILE_ID); ?>"><?
252 ?><input type=
"hidden" name=
"lang" value=
"<?echo LANGUAGE_ID ?>">
253<input type=
"hidden" name=
"ACT_FILE" value=
"<?echo htmlspecialcharsbx($_REQUEST["ACT_FILE
"]) ?>">
254<input type=
"hidden" name=
"ACTION" value=
"<?echo htmlspecialcharsbx($ACTION) ?>">
255<input type=
"hidden" name=
"STEP" value=
"<?echo intval($STEP) + 1 ?>">
256<input type=
"hidden" name=
"SETUP_FIELDS_LIST" value=
"YANDEX_EXPORT,SETUP_SERVER_NAME,SETUP_FILE_NAME,USE_HTTPS">
257<input type=
"submit" value=
"<?echo ($ACTION=="EXPORT
")?GetMessage("CET_EXPORT
"):GetMessage("CET_SAVE
")?>">
265tabControl.SelectTab(
"edit1");
266tabControl.DisableTab(
"edit2");
268tabControl.SelectTab(
"edit2");
269tabControl.DisableTab(
"edit1");
const BX_CATALOG_FILENAME_REG
const CATALOG_DEFAULT_EXPORT_PATH
static GetList($arOrder=array(), $arFilter=array(), $arGroupBy=false, $arNavStartParams=false, $arSelectFields=array())
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)
global $adminSidePanelHelper
$_SERVER["DOCUMENT_ROOT"]
if(!CCatalog::IsUserExists()) if(!function_exists( '__CSVArrayMultiply')) if(!function_exists('__CSVExportFile')) $strCatalogDefaultFolder
if(( $ACTION=='EXPORT_EDIT'||$ACTION=='EXPORT_COPY') &&$STEP==1) if($STEP > 1) if(( $ACTION=='EXPORT_EDIT'||$ACTION=='EXPORT_COPY') &&$STEP==2) if($STEP >2) $aMenu
bitrix_sessid_post($varname='sessid', $returnInvocations=false)
ShowError($strError, $cls="errortext")
IncludeModuleLangFile($filepath, $lang=false, $bReturnArray=false)
GetMessage($name, $aReplace=null)
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
if(empty($signedUserToken)) $key