13 if (array_key_exists(
'IBLOCK_ID', $arOldSetupVars))
15 if (array_key_exists(
'SETUP_FILE_NAME', $arOldSetupVars))
17 if (array_key_exists(
'SETUP_PROFILE_NAME', $arOldSetupVars))
18 $SETUP_PROFILE_NAME = $arOldSetupVars[
'SETUP_PROFILE_NAME'];
19 if (array_key_exists(
'V', $arOldSetupVars))
20 $V = $arOldSetupVars[
'V'];
59 foreach ($V as
$key => $value)
61 if (trim($value)==
"0")
77 if ((
$ACTION==
"EXPORT_SETUP" ||
$ACTION ==
'EXPORT_EDIT' ||
$ACTION ==
'EXPORT_COPY') && $SETUP_PROFILE_NAME ==
'')
89 "TITLE"=>
GetMessage(
"CATI_ADM_RETURN_TO_LIST_TITLE"),
90 "LINK"=>
"/bitrix/admin/cat_export_setup.php?lang=".LANGUAGE_ID,
108<form method=
"post" action=
"<? echo $APPLICATION->GetCurPage().$actionParams; ?>" name=
"froogle_setup_form" id=
"froogle_setup_form">
112 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB1"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB1_TITLE")),
113 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB2"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_MISC_EXP_TAB2_TITLE")),
126 $arIBlockIDs =
array();
138 if (empty($arIBlockIDs))
143 'ID' => $arIBlockIDs,
'ACTIVE' =>
'Y',
144 'CHECK_PERMISSIONS' =>
'Y',
'MIN_PERMISSION' =>
'W'
146 "ClearSelected(); BX('ifr').src='/bitrix/tools/catalog_export/froogle_util.php?IBLOCK_ID=0&'+'".
bitrix_sessid_get().
"';",
147 "ClearSelected(); BX('ifr').src='/bitrix/tools/catalog_export/froogle_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'".
bitrix_sessid_get().
"';",
148 'class="adm-detail-iblock-types"',
149 'class="adm-detail-iblock-list"'
153 var TreeSelected =
new Array();
155 $intCountSelected = 0;
156 if (isset($V) && !empty($V) && is_array($V))
158 foreach ($V as $oneKey)
160 ?>TreeSelected[<? echo $intCountSelected ?>] = <? echo intval($oneKey); ?>;
166 function ClearSelected()
169 TreeSelected =
new Array();
175 <td
width=
"40%" valign=
"top"><?echo
GetMessage(
"CET_SELECT_GROUP");?></td>
177 <div
id=
"tree"></div>
182 function buildNoMenu()
185 buffer =
'<?echo GetMessageJS("CET_FIRST_SELECT_IBLOCK");?>';
186 BX(
'tree',
true).innerHTML =
buffer;
196 buffer =
'<table border="0" cellspacing="0" cellpadding="0">';
198 buffer +=
'<td colspan="2" valign="top" align="left"><input type="checkbox" name="V[]" value="0" id="v0"'+(BX.util.in_array(0,TreeSelected) ?
' checked' :
'')+
'><label for="v0"><font class="text"><b><?echo CUtil::JSEscape(GetMessage("CET_ALL_GROUPS"));?></b></font></label></td>';
205 space =
'<input type="checkbox" name="V[]" value="'+i+
'" id="V'+i+
'"'+(BX.util.in_array(i,TreeSelected) ?
' checked' :
'')+
'><label for="V'+i+
'"><font class="text">' + Tree[0][i][0] +
'</font></label>';
210 space =
'<input type="checkbox" name="V[]" value="'+i+
'"'+(BX.util.in_array(i,TreeSelected) ?
' checked' :
'')+
'><a href="javascript: collapse(' + i +
')"><font class="text"><b>' + Tree[0][i][0] +
'</b></font></a>';
211 imgSpace =
'<img src="/bitrix/images/catalog/load/plus.gif" width="13" height="13" id="img_' + i +
'" OnClick="collapse(' + i +
')">';
215 buffer +=
'<td width="20" valign="top" align="center">' +
imgSpace +
'</td>';
216 buffer +=
'<td id="node_' + i +
'">' +
space +
'</td>';
221 BX(
'tree',
true).innerHTML =
buffer;
222 BX.adminPanel.modifyFormElements(
'froogle_setup_form');
228 if (!BX(
'table_' + node))
234 buffer =
'<table border="0" id="table_' + node +
'" cellspacing="0" cellpadding="0">';
236 for (i in Tree[node])
240 space =
'<input type="checkbox" name="V[]" value="'+i+
'" id="V'+i+
'"'+(BX.util.in_array(i,TreeSelected) ?
' checked' :
'')+
'><label for="V'+i+
'"><font class="text">' + Tree[node][i][0] +
'</font></label>';
245 space =
'<input type="checkbox" name="V[]" value="'+i+
'"'+(BX.util.in_array(i,TreeSelected) ?
' checked' :
'')+
'><a href="javascript: collapse(' + i +
')"><font class="text"><b>' + Tree[node][i][0] +
'</b></font></a>';
246 imgSpace =
'<img src="/bitrix/images/catalog/load/plus.gif" width="13" height="13" id="img_' + i +
'" OnClick="collapse(' + i +
')">';
250 buffer +=
'<td width="20" align="center" valign="top">' +
imgSpace +
'</td>';
251 buffer +=
'<td id="node_' + i +
'">' +
space +
'</td>';
257 BX(
'node_' + node).innerHTML +=
buffer;
258 BX(
'img_' + node).src =
'/bitrix/images/catalog/load/minus.gif';
262 var tbl = document.getElementById(
'table_' + node);
263 tbl.parentNode.removeChild(tbl);
264 BX(
'img_' + node).src =
'/bitrix/images/catalog/load/plus.gif';
266 BX.adminPanel.modifyFormElements(
'froogle_setup_form');
269 <iframe src=
"/bitrix/tools/catalog_export/froogle_util.php?IBLOCK_ID=<?=intval($IBLOCK_ID)?>&<? echo bitrix_sessid_get(); ?>" id=
"ifr" name=
"ifr" style=
"display:none"></iframe>
275 <input type=
"text" name=
"SETUP_FILE_NAME" value=
"<?echo htmlspecialcharsbx($SETUP_FILE_NAME <> '' ? str_replace($strCatalogDefaultFolder, '', $SETUP_FILE_NAME) : "froogle_
".mt_rand(0, 999999).".txt
"); ?>" size=
"50">
284 <input type=
"text" name=
"SETUP_PROFILE_NAME" value=
"<? echo ($SETUP_PROFILE_NAME <> '' ? htmlspecialcharsbx($SETUP_PROFILE_NAME) : ''); ?>" size=
"30">
306 ?><input type=
"hidden" name=
"PROFILE_ID" value=
"<? echo intval($PROFILE_ID); ?>"><?
311 ?><input type=
"hidden" name=
"lang" value=
"<?echo LANGUAGE_ID ?>">
312 <input type=
"hidden" name=
"ACT_FILE" value=
"<?echo htmlspecialcharsbx($_REQUEST["ACT_FILE
"]) ?>">
313 <input type=
"hidden" name=
"ACTION" value=
"<?echo htmlspecialcharsbx($ACTION) ?>">
314 <input type=
"hidden" name=
"STEP" value=
"<?echo intval($STEP) + 1 ?>">
315 <input type=
"hidden" name=
"SETUP_FIELDS_LIST" value=
"V,IBLOCK_ID,SETUP_FILE_NAME">
316 <input type=
"submit" value=
"<?echo ($ACTION=="EXPORT
")?GetMessage("CET_EXPORT
"):GetMessage("CET_SAVE
")?>"><?
323tabControl.SelectTab(
"edit1");
324tabControl.DisableTab(
"edit2");
326tabControl.SelectTab(
"edit2");
327tabControl.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)
GetIBlockDropDownListEx($IBLOCK_ID, $strTypeName, $strIBlockName, $arFilter=false, $onChangeType='', $onChangeIBlock='', $strAddType='', $strAddIBlock='')
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)
bitrix_sessid_get($varname='sessid')
if( $daysToExpire >=0 &&$daysToExpire< 60 elseif)( $daysToExpire< 0)
if(empty($signedUserToken)) $key
</p ></td >< td valign=top style='border-top:none;border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt;padding:0cm 2.0pt 0cm 2.0pt;height:9.0pt'>< p class=Normal align=center style='margin:0cm;margin-bottom:.0001pt;text-align:center;line-height:normal'>< a name=ТекстовоеПоле54 ></a ><?=($taxRate > count( $arTaxList) > 0) ? $taxRate."%"