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[
'outFileAction']))
15 $outFileAction = $arOldSetupVars[
'outFileAction'];
16 if (isset($arOldSetupVars[
'CONVERT_UTF8']))
17 $CONVERT_UTF8 = $arOldSetupVars[
'CONVERT_UTF8'];
18 if (isset($arOldSetupVars[
'SETUP_PROFILE_NAME']))
19 $SETUP_PROFILE_NAME = $arOldSetupVars[
'SETUP_PROFILE_NAME'];
20 if (isset($arOldSetupVars[
'USE_TRANSLIT']))
22 if (isset($arOldSetupVars[
'ADD_TRANSLIT']))
24 if (isset($arOldSetupVars[
'keepExistingProperties']))
25 $keepExistingProperties = $arOldSetupVars[
'keepExistingProperties'];
26 if (isset($arOldSetupVars[
'activateFileData']))
31 if ($URL_FILE_1C <>
'' && file_exists(
$_SERVER[
"DOCUMENT_ROOT"].$URL_FILE_1C) && is_file(
$_SERVER[
"DOCUMENT_ROOT"].$URL_FILE_1C))
46 $keepExistingProperties = (isset($keepExistingProperties) &&
'Y' == $keepExistingProperties ?
'Y' :
'N');
59 "TITLE"=>
GetMessage(
"CATI_ADM_RETURN_TO_LIST_TITLE"),
60 "LINK"=>
"/bitrix/admin/cat_import_setup.php?lang=".LANGUAGE_ID,
78<form method=
"POST" action=
"<? echo $APPLICATION->GetCurPage().$actionParams; ?>" ENCTYPE=
"multipart/form-data" name=
"dataload">
81 array(
"DIV" =>
"edit1",
"TAB" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB1"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB1_TITLE")),
82 array(
"DIV" =>
"edit2",
"TAB" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB2"),
"ICON" =>
"store",
"TITLE" =>
GetMessage(
"CAT_ADM_CML1_IMP_TAB2_TITLE")),
93 ?><tr
class=
"heading">
94 <td colspan=
"2"><? echo
GetMessage(
"CICML_DATA_IMPORT"); ?></td>
97 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_F_DATAFILE2"); ?></td>
98 <td valign=
"top" width=
"60%">
99 <input type=
"text" name=
"URL_FILE_1C" size=
"40" value=
"<? echo htmlspecialcharsbx($URL_FILE_1C); ?>">
100 <input type=
"button" value=
"<? echo GetMessage("CICML_F_BUTTON_CHOOSE
"); ?>" onclick=
"cmlBtnSelectClick();"><?
103 "event" =>
"cmlBtnSelectClick",
104 "arResultDest" =>
array(
"FORM_NAME" =>
"dataload",
"FORM_ELEMENT_NAME" =>
"URL_FILE_1C"),
105 "arPath" =>
array(
"PATH" =>
"/upload/catalog",
"SITE" =>
SITE_ID),
108 "showUploadTab" =>
true,
109 "showAddToMenuTab" =>
false,
110 "fileFilter" =>
'xml',
111 "allowAllFiles" =>
true,
118 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_F_IBLOCK"); ?></td>
119 <td valign=
"top" width=
"60%">
120 <
select name=
"IBLOCK_TYPE_ID" class=
"adm-detail-iblock-types"><?
123 ?><option value=
"">- <? echo
GetMessage(
"CICML_F_IBLOCK_SELECT"); ?> -</option><?
129 ?><option value=
"<? echo htmlspecialcharsbx($arIBlockType['ID']); ?>"<? echo ($arIBlockType[
'ID'] ==
$IBLOCK_TYPE_ID ?
' selected' :
''); ?>><? echo htmlspecialcharsex($arIBLang[
"NAME"]); ?> [<? echo htmlspecialcharsex($arIBlockType[
'ID']); ?>]</option><?
137 <td colspan=
"2"><? echo
GetMessage(
'CATI_ADDIT_SETTINGS'); ?></td>
140 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_F_OUTFILEACTION"); ?>:</td>
141 <td valign=
"top" width=
"60%"><?
142 if (!isset($outFileAction) || (
143 $outFileAction !=
'D' && $outFileAction !=
'H' && $outFileAction !=
'F'
148 ?><input type=
"radio" name=
"outFileAction" id=
"outFileAction_D" value=
"D" <?
if ($outFileAction ==
"D") echo
"checked";?>> <label
for=
"outFileAction_D"><?echo
GetMessage(
"CICML_OF_DEL") ?></label><br>
149 <input type=
"radio" name=
"outFileAction" id=
"outFileAction_H" value=
"H" <?
if ($outFileAction==
"H") echo
"checked";?>> <label
for=
"outFileAction_H"><?echo
GetMessage(
"CICML_OF_DEACT") ?></label><br>
150 <input type=
"radio" name=
"outFileAction" id=
"outFileAction_F" value=
"F" <?
if ($outFileAction==
"F") echo
"checked";?>> <label
for=
"outFileAction_F"><?echo
GetMessage(
"CICML_OF_KEEP") ?></label>
155 <td valign=
"top" width=
"60%"><?
160 ?><input type=
"radio" name=
"activateFileData" id=
"activateFileData_Y" value=
"Y" <?
if (
$activateFileData==
"Y") echo
"checked";?>> <label
for=
"activateFileData_Y"><?=
GetMessage(
"CML_S_YES") ?></label><br>
161 <input type=
"radio" name=
"activateFileData" id=
"activateFileData_N" value=
"N" <?
if (
$activateFileData==
"N") echo
"checked";?>> <label
for=
"activateFileData_N"><?=
GetMessage(
"CML_S_NO") ?></label>
165 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CML_S_KEEP_PRP"); ?>:</td>
166 <td valign=
"top" width=
"60%">
167 <input type=
"hidden" name=
"keepExistingProperties" id=
"keepExistingProperties_N" value=
"N">
168 <input type=
"checkbox" name=
"keepExistingProperties" id=
"keepExistingProperties_Y" value=
"Y" <?
if (isset($keepExistingProperties) && $keepExistingProperties==
"Y") echo
"checked";?>>
172 <td valign=
"top" width=
"40%"><? echo
GetMessage(
"CICML_CONVERT_UTF8"); ?>:</td>
173 <td valign=
"top" width=
"60%"><?
174 if (!isset($CONVERT_UTF8) || (
'N' != $CONVERT_UTF8 &&
'Y' != $CONVERT_UTF8))
178 ?><input type=
"radio" name=
"CONVERT_UTF8" id=
"CONVERT_UTF8_N" value=
"N" <?
if ($CONVERT_UTF8==
"N") echo
"checked";?>> <label
for=
"CONVERT_UTF8_N"><?echo
GetMessage(
"CICML_CONVERT_NO");?></label><br>
179 <input type=
"radio" name=
"CONVERT_UTF8" id=
"CONVERT_UTF8_Y" value=
"Y" <?
if ($CONVERT_UTF8==
"Y") echo
"checked";?>> <label
for=
"CONVERT_UTF8_Y"><?echo
GetMessage(
"CICML_CONVERT_YES");?></label>
183 <td valign=
"top" width=
"40%"><? echo
GetMessage(
'CATI_USE_CODE_TRANSLIT'); ?>:</td>
184 <td valign=
"top" width=
"60%">
185 <input type=
"hidden" name=
"USE_TRANSLIT" id=
"USE_TRANSLIT_N" value=
"N">
186 <input type=
"checkbox" name=
"USE_TRANSLIT" id=
"USE_TRANSLIT_Y" value=
"Y" <? echo (isset(
$USE_TRANSLIT) &&
'Y' ==
$USE_TRANSLIT ?
' checked' :
''); ?>>
190 <td valign=
"top" width=
"40%"><? echo
GetMessage(
'CATI_ADD_CODE_TRANSLIT'); ?>:</td>
191 <td valign=
"top" width=
"60%">
192 <input type=
"hidden" name=
"ADD_TRANSLIT" id=
"ADD_TRANSLIT_N" value=
"N">
193 <input type=
"checkbox" name=
"ADD_TRANSLIT" id=
"ADD_TRANSLIT_Y" value=
"Y" <? echo (isset(
$ADD_TRANSLIT) &&
'Y' ==
$ADD_TRANSLIT ?
' checked' :
''); ?>>
198 ?><tr
class=
"heading">
199 <td colspan=
"2"><? echo
GetMessage(
"CICML_SAVE_SCHEME"); ?></td>
202 <td valign=
"top" width=
"40%"><?echo
GetMessage(
"CICML_SSCHEME_NAME") ?>:</td>
203 <td valign=
"top" width=
"60%">
204 <input type=
"text" name=
"SETUP_PROFILE_NAME" size=
"40" value=
"<? echo htmlspecialcharsbx($SETUP_PROFILE_NAME); ?>">
228 ?><input type=
"hidden" name=
"PROFILE_ID" value=
"<? echo intval($PROFILE_ID); ?>"><?
233 ?><input type=
"hidden" name=
"STEP" value=
"<?echo intval($STEP) + 1;?>">
234 <input type=
"hidden" name=
"lang" value=
"<?echo LANGUAGE_ID; ?>">
235 <input type=
"hidden" name=
"ACT_FILE" value=
"<?echo htmlspecialcharsbx($_REQUEST["ACT_FILE
"]) ?>">
236 <input type=
"hidden" name=
"ACTION" value=
"<?echo htmlspecialcharsbx($ACTION) ?>">
237 <input type=
"hidden" name=
"SETUP_FIELDS_LIST" value=
"URL_FILE_1C,IBLOCK_TYPE_ID,USE_TRANSLIT,ADD_TRANSLIT,outFileAction,CONVERT_UTF8,keepExistingProperties,activateFileData">
238 <input type=
"submit" value=
"<?echo (($ACTION=="IMPORT
")?GetMessage("CICML_NEXT_STEP_F
"):GetMessage("CICML_SAVE
"))." &
gt;&
gt;
" ?>" name=
"submit_btn"><?
245tabControl.SelectTab(
"edit1");
246tabControl.DisableTab(
"edit2");
248tabControl.SelectTab(
"edit2");
249tabControl.DisableTab(
"edit1");
static ShowScript($arConfig)
static GetOptionString($module_id, $name, $def="", $site=false, $bExactSite=false)
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)