10 if (isset($arOldSetupVars[
'URL_FILE_1C']))
11 $URL_FILE_1C = $arOldSetupVars[
'URL_FILE_1C'];
12 if (isset($arOldSetupVars[
'IBLOCK_TYPE_ID']))
14 if (isset($arOldSetupVars[
'keepExistingProperties']))
15 $keepExistingProperties = $arOldSetupVars[
'keepExistingProperties'];
16 if (isset($arOldSetupVars[
'keepExistingData']))
17 $keepExistingData = $arOldSetupVars[
'keepExistingData'];
18 if (isset($arOldSetupVars[
'activateFileData']))
20 if (isset($arOldSetupVars[
'deleteComments']))
21 $deleteComments = $arOldSetupVars[
'deleteComments'];
22 if (isset($arOldSetupVars[
'cmlDebug']))
23 $cmlDebug = $arOldSetupVars[
'cmlDebug'];
24 if (isset($arOldSetupVars[
'cmlMemoryDebug']))
25 $cmlMemoryDebug = $arOldSetupVars[
'cmlMemoryDebug'];
26 if (isset($arOldSetupVars[
'SETUP_PROFILE_NAME']))
27 $SETUP_PROFILE_NAME = $arOldSetupVars[
'SETUP_PROFILE_NAME'];
28 if (isset($arOldSetupVars[
'USE_TRANSLIT']))
30 if (isset($arOldSetupVars[
'ADD_TRANSLIT']))
37 if ($URL_FILE_1C <>
'' && file_exists(
$_SERVER[
"DOCUMENT_ROOT"].$URL_FILE_1C) && is_file(
$_SERVER[
"DOCUMENT_ROOT"].$URL_FILE_1C))
63 "TITLE"=>
GetMessage(
"CATI_ADM_RETURN_TO_LIST_TITLE"),
64 "LINK"=>
"/bitrix/admin/cat_import_setup.php?lang=".LANGUAGE_ID,
82<form method=
"POST" action=
"<? echo $APPLICATION->GetCurPage().$actionParams; ?>" ENCTYPE=
"multipart/form-data" name=
"dataload">
85 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB1"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB1_TITLE")),
86 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB2"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB2_TITLE")),
97 ?><tr
class=
"heading">
98 <td colspan=
"2"><? echo
GetMessage(
"CICML_DATA_IMPORT"); ?></td>
101 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_F_DATAFILE2");?></td>
102 <td valign=
"top" width=
"60%">
103 <input type=
"text" name=
"URL_FILE_1C" size=
"40" value=
"<?= htmlspecialcharsbx($URL_FILE_1C) ?>">
104 <input type=
"button" value=
"<? echo GetMessage("CML_S_SELECT
"); ?>" onclick=
"cmlBtnSelectClick()">
108 "event" =>
"cmlBtnSelectClick",
109 "arResultDest" =>
array(
"FORM_NAME" =>
"dataload",
"FORM_ELEMENT_NAME" =>
"URL_FILE_1C"),
110 "arPath" =>
array(
"PATH" =>
"/upload/catalog",
"SITE" =>
SITE_ID),
113 "showUploadTab" =>
true,
114 "showAddToMenuTab" =>
false,
115 "fileFilter" =>
'xml',
116 "allowAllFiles" =>
true,
123 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_F_IBLOCK");?></td>
124 <td valign=
"top" width=
"60%">
125 <
select name=
"IBLOCK_TYPE_ID" class=
"adm-detail-iblock-types"><?
128 ?><option value=
"">- <?echo
GetMessage(
"CICML_F_IBLOCK_SELECT") ?> -</option><?
134 ?><option value=
"<? echo htmlspecialcharsbx($arIBlockType['ID']); ?>"<? echo ($arIBlockType[
'ID'] ==
$IBLOCK_TYPE_ID ?
' selected' :
''); ?>><? echo htmlspecialcharsex($arIBLang[
"NAME"]); ?> [<? echo htmlspecialcharsex($arIBlockType[
'ID']); ?>]</option><?
142 <td colspan=
"2"><? echo
GetMessage(
'CATI_ADDIT_SETTINGS'); ?></td>
145 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CML_S_KEEP_PRP") ?>:</td>
146 <td valign=
"top" width=
"60%"><?
147 if (!isset($keepExistingProperties) || (
'N' != $keepExistingProperties &&
'Y' != $keepExistingProperties))
149 $keepExistingProperties =
'Y';
151 ?><input type=
"radio" name=
"keepExistingProperties" id=
"keepExistingProperties_N" value=
"N" <?
if ($keepExistingProperties==
"N") echo
"checked";?>> <label
for=
"keepExistingProperties_N"><? echo
GetMessage(
"CML_S_NO"); ?></label><br>
152 <input type=
"radio" name=
"keepExistingProperties" id=
"keepExistingProperties_Y" value=
"Y" <?
if ($keepExistingProperties==
"Y") echo
"checked";?>> <label
for=
"keepExistingProperties_Y"><? echo
GetMessage(
"CML_S_YES"); ?></label>
156 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CML_S_KEEP_DATA"); ?>:</td>
157 <td valign=
"top" width=
"60%"><?
158 if (!isset($keepExistingData) || (
'N' != $keepExistingData &&
'Y' != $keepExistingData))
160 $keepExistingData =
'Y';
162 ?><input type=
"radio" name=
"keepExistingData" id=
"keepExistingData_N" value=
"N" <?
if ($keepExistingData==
"N") echo
"checked";?>> <label
for=
"keepExistingData_N"><? echo
GetMessage(
"CML_S_NO"); ?></label><br>
163 <input type=
"radio" name=
"keepExistingData" id=
"keepExistingData_Y" value=
"Y" <?
if ($keepExistingData==
"Y") echo
"checked";?>> <label
for=
"keepExistingData_Y"><? echo
GetMessage(
"CML_S_YES"); ?></label>
167 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CML_S_ACT_DATA"); ?>:</td>
168 <td valign=
"top" width=
"60%"><?
173 ?><input type=
"radio" name=
"activateFileData" id=
"activateFileData_Y" value=
"Y" <?
if (
$activateFileData==
"Y") echo
"checked";?>> <label
for=
"activateFileData_Y"><? echo
GetMessage(
"CML_S_YES"); ?></label><br>
174 <input type=
"radio" name=
"activateFileData" id=
"activateFileData_N" value=
"N" <?
if (
$activateFileData==
"N") echo
"checked";?>> <label
for=
"activateFileData_N"><? echo
GetMessage(
"CML_S_NO"); ?></label>
178 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CML_S_COMMNT"); ?>:</td>
179 <td valign=
"top" width=
"60%"><?
180 if (!isset($deleteComments) || (
'N' != $deleteComments &&
'Y' != $deleteComments))
182 $deleteComments =
'N';
184 ?><input type=
"radio" name=
"deleteComments" id=
"deleteComments_N" value=
"N" <?
if ($deleteComments==
"N") echo
"checked";?>> <label
for=
"deleteComments_N"><? echo
GetMessage(
"CML_S_NO"); ?></label><br>
185 <input type=
"radio" name=
"deleteComments" id=
"deleteComments_Y" value=
"Y" <?
if ($deleteComments==
"Y") echo
"checked";?>> <label
for=
"deleteComments_Y"><? echo
GetMessage(
"CML_S_YES"); ?></label>
190 <td valign=
"top" width=
"60%"><?
191 if (!isset($cmlDebug) || (
'N' != $cmlDebug &&
'Y' != $cmlDebug))
195 ?><input type=
"radio" name=
"cmlDebug" id=
"cmlDebug_N" value=
"N" <?
if ($cmlDebug==
"N") echo
"checked";?>> <label
for=
"cmlDebug_N"><? echo
GetMessage(
"CML_S_NO"); ?></label><br>
196 <input type=
"radio" name=
"cmlDebug" id=
"cmlDebug_Y" value=
"Y" <?
if ($cmlDebug==
"Y") echo
"checked";?>> <label
for=
"cmlDebug_Y"><? echo
GetMessage(
"CML_S_YES"); ?></label>
200 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CML_S_MEMDEB"); ?>:</td>
201 <td valign=
"top" width=
"60%"><?
202 if (!isset($cmlMemoryDebug) || (
'N' != $cmlMemoryDebug &&
'Y' != $cmlMemoryDebug))
204 $cmlMemoryDebug =
'N';
206 ?><input type=
"radio" name=
"cmlMemoryDebug" id=
"cmlMemoryDebug_N" value=
"N" <?
if ($cmlMemoryDebug==
"N") echo
"checked";?>> <label
for=
"cmlMemoryDebug_N"><? echo
GetMessage(
"CML_S_NO"); ?></label><br>
207 <input type=
"radio" name=
"cmlMemoryDebug" id=
"cmlMemoryDebug_Y" value=
"Y" <?
if ($cmlMemoryDebug==
"Y") echo
"checked";?>> <label
for=
"cmlMemoryDebug_Y"><? echo
GetMessage(
"CML_S_YES"); ?></label>
211 <td valign=
"top" width=
"40%"><? echo
GetMessage(
'CATI_USE_CODE_TRANSLIT'); ?>:</td>
212 <td valign=
"top" width=
"60%">
213 <input type=
"hidden" name=
"USE_TRANSLIT" id=
"USE_TRANSLIT_N" value=
"N">
214 <input type=
"checkbox" name=
"USE_TRANSLIT" id=
"USE_TRANSLIT_Y" value=
"Y" <? echo (isset(
$USE_TRANSLIT) &&
'Y' ==
$USE_TRANSLIT ?
' checked' :
''); ?>>
218 <td valign=
"top" width=
"40%"><? echo
GetMessage(
'CATI_ADD_CODE_TRANSLIT'); ?>:</td>
219 <td valign=
"top" width=
"60%">
220 <input type=
"hidden" name=
"ADD_TRANSLIT" id=
"ADD_TRANSLIT_N" value=
"N">
221 <input type=
"checkbox" name=
"ADD_TRANSLIT" id=
"ADD_TRANSLIT_Y" value=
"Y" <? echo (isset(
$ADD_TRANSLIT) &&
'Y' ==
$ADD_TRANSLIT ?
' checked' :
''); ?>>
226 ?><tr
class=
"heading">
227 <td colspan=
"2"><? echo
GetMessage(
"CICML_SAVE_SCHEME") ?></td>
230 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_SSCHEME_NAME") ?>:</td>
231 <td valign=
"top" width=
"60%">
232 <input type=
"text" name=
"SETUP_PROFILE_NAME" size=
"40" value=
"<?echo htmlspecialcharsbx($SETUP_PROFILE_NAME)?>">
256 ?><input type=
"hidden" name=
"PROFILE_ID" value=
"<? echo intval($PROFILE_ID); ?>"><?
261 ?><input type=
"hidden" name=
"STEP" value=
"<? echo intval($STEP) + 1;?>">
262 <input type=
"hidden" name=
"lang" value=
"<? echo LANGUAGE_ID; ?>">
263 <input type=
"hidden" name=
"ACT_FILE" value=
"<? echo htmlspecialcharsbx($_REQUEST["ACT_FILE
"]); ?>">
264 <input type=
"hidden" name=
"ACTION" value=
"<? echo htmlspecialcharsbx($ACTION); ?>">
265 <input type=
"hidden" name=
"SETUP_FIELDS_LIST" value=
"URL_FILE_1C,IBLOCK_TYPE_ID,keepExistingProperties,keepExistingData,clearTempTables,deleteComments,cmlDebug,cmlMemoryDebug,activateFileData,USE_TRANSLIT,ADD_TRANSLIT">
266 <input type=
"submit" value=
"<? echo (($ACTION=="IMPORT
")?GetMessage("CICML_NEXT_STEP_F
"):GetMessage("CICML_SAVE
"))." &
gt;&
gt;
" ?>" name=
"submit_btn"><?
274tabControl.SelectTab(
"edit1");
275tabControl.DisableTab(
"edit2");
277tabControl.SelectTab(
"edit2");
278tabControl.DisableTab(
"edit1");
static ShowScript($arConfig)
static GetList($arOrder=array("SORT"=> "ASC"), $arFilter=array())
static GetByIDLang($ID, $LID, $bFindAny=true)
if(!function_exists("file_get_contents")) $DATA_FILE_NAME
if(''===$strImportErrorMessage) if(''===$strImportErrorMessage) $USE_TRANSLIT
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(( $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)