var n = document.getElementById('name_'+v).innerHTML; SelEl(v, n); } } } window.close(); } } </script> <tr> <td><b><?php echo GetMessage('BX_MOD_CATALOG_ADMIN_CSS_HEAD_IBLOCK_ID'); ?> </b></td> <td><?php echo GetIBlockDropDownListEx($IBLOCK_ID, 'find_iblock_type_id', 'find_iblock_id'); ?> </td> </tr> <tr> <td><b><?php echo GetMessage("BX_MOD_CATALOG_ADMIN_CSS_HEAD_NAME"); ?> :</b></td> <td><input type="text" name="find_section_name" value="<?php echo htmlspecialcharsex($find_section_name); ?> " size="47"> <?php echo ShowFilterLogicHelp(); ?> </td>
<tr class="heading"> <td colspan="2"><?php echo GetMessage("CATI_DATA_EXPORT"); ?> </td> </tr> <tr> <td valign="top" width="40%"><?php echo GetMessage("CAT_ADM_CSV_EXP_IBLOCK_ID"); ?> :</td> <td valign="top" width="60%"><?php if (!isset($IBLOCK_ID)) { $IBLOCK_ID = 0; } echo GetIBlockDropDownListEx($IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', array('CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'U'), '', '', 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"'); ?> </td> </tr><?php } $tabControl->EndTab(); $tabControl->BeginNextTab(); if ($STEP == 2) { ?> <tr class="heading"> <td colspan="2"><?php echo GetMessage("CATI_FORMAT_PROPS"); ?> </td> </tr> <tr>
</tr> <? endforeach; $tabControl->BeginNextTab(); ?> <tr> <td width="40%"><?echo GetMessage("STALL_OPT_CHOOSE_IBLOCK") ?></td> <td width="60%"> <?echo GetIBlockDropDownListEx( $IBLOCK_ID, 'iblock_type_id', 'iblock_id', array( "MIN_PERMISSION" => "X", "OPERATION" => "iblock_export", ), '', '', 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"' );?> </td> </tr> <tr> <td width="30%" valign="top"><?echo GetMessage('STALL_OPT_MESSAGE')?>: </td> <td width="70%"><textarea cols="50" rows="7" name="message"><?echo htmlspecialcharsbx($message)?></textarea></td> </tr> <? $tabControl->BeginNextTab();
<input type="hidden" name="id" value="eshopapp"> <input type="hidden" name="install" value="Y"> <input type="hidden" name="step" value="2"> <!--<input type="radio" value="demo" name="iblock_to_install" id="eshopapp_demo_iblock" onclick="BX('eshopapp_iblock').style.display='none'" checked> <label for="eshopapp_demo_iblock"><?php echo GetMessage("MOD_INSTALL_DEMO"); ?> </label> <br/> <input type="radio" value="choose" name="iblock_to_install" id="eshopapp_choose_iblock" onclick="BX('eshopapp_iblock').style.display='block'"> <label for="eshopapp_choose_iblock"><?php echo GetMessage("MOD_INSTALL_CHOOSE_IBLOCK"); ?> </label>--> <p style="display:none;color:red" id="error_iblock"><?php echo GetMessage("APP_IBLOCK_ERROR"); ?> </p> <p><?php echo GetMessage("MOD_CHOOSE_IBLOCK_INFO"); ?> </p> <div id="eshopapp_iblock"><?php echo GetIBlockDropDownListEx(0, 'eshopapp_iblock_type', 'eshopapp_iblock_id'); ?> </div> <br/> <input type="submit" name="inst" value="<?php echo GetMessage("MOD_INSTALL"); ?> " onclick="if ((BX('eshopapp_iblock_type').value == '0') || !(parseInt(BX('eshopapp_iblock_id').value) > 0)) {BX('error_iblock').style.display = 'block';return false;} "> <form>
var a = e[i].checked; if (a == true) { var v = e[i].value; var n = document.getElementById('name_'+v).value; SelEl(v, n); } } } window.close(); } } </script> <tr> <td><b><?echo GetMessage("IBLOCK_ELSEARCH_IBLOCK")?></b></td> <td><?echo GetIBlockDropDownListEx($IBLOCK_ID, "filter_type", "filter_iblock_id", array('MIN_PERMISSION' => 'S'));?></td> </tr> <tr> <td><?echo GetMessage("IBLOCK_ELSEARCH_FROMTO_ID")?></td> <td> <input type="text" name="filter_id_start" size="10" value="<?echo htmlspecialcharsex($filter_id_start)?>"> ... <input type="text" name="filter_id_end" size="10" value="<?echo htmlspecialcharsex($filter_id_end)?>"> </td> </tr> <tr> <td nowrap><? echo GetMessage("IBLOCK_FIELD_TIMESTAMP_X").":"?></td> <td nowrap><? echo CalendarPeriod("filter_timestamp_from", htmlspecialcharsex($filter_timestamp_from), "filter_timestamp_to", htmlspecialcharsex($filter_timestamp_to), "form1")?></td> </tr>
$arCatalog['PRODUCT_IBLOCK_ID'] = (int) $arCatalog['PRODUCT_IBLOCK_ID']; if ($arCatalog['PRODUCT_IBLOCK_ID'] > 0) { $arIBlockIDs[$arCatalog['PRODUCT_IBLOCK_ID']] = true; } } $rsCatalogs = CCatalog::GetList(array(), array('PRODUCT_IBLOCK_ID' => 0), false, false, array('IBLOCK_ID')); while ($arCatalog = $rsCatalogs->Fetch()) { $arCatalog['IBLOCK_ID'] = (int) $arCatalog['IBLOCK_ID']; if ($arCatalog['IBLOCK_ID'] > 0) { $arIBlockIDs[$arCatalog['IBLOCK_ID']] = true; } } if (empty($arIBlockIDs)) { $arIBlockIDs[-1] = true; } echo GetIBlockDropDownListEx($IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', array('ID' => array_keys($arIBlockIDs), 'ACTIVE' => 'Y', 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'W'), "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID=0&'+'" . bitrix_sessid_get() . "';", "ClearSelected(); BX('id_ifr').src='/bitrix/tools/catalog_export/yandex_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'" . bitrix_sessid_get() . "';", 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"'); ?> <script type="text/javascript"> var TreeSelected = []; <?php $intCountSelected = 0; if (isset($V) && !empty($V) && is_array($V)) { foreach ($V as $oneKey) { ?> TreeSelected[<?php echo $intCountSelected; ?> ] = <?php echo intval($oneKey); ?> ;
public function getHtml() { $result = '<div id="SALE_EBAY_IBLOCK_CHOOSE">'; if (!is_array($this->ebaySettings[$this->siteId]["IBLOCK_ID"]) || !isset($this->ebaySettings[$this->siteId]["IBLOCK_ID"])) { $this->ebaySettings[$this->siteId]["IBLOCK_ID"] = array(); } $this->ebaySettings[$this->siteId]["IBLOCK_ID"][] = ""; for ($i = 0; $i < count($this->ebaySettings[$this->siteId]["IBLOCK_ID"]); $i++) { $result .= '<div style="padding-top: 10px;">' . GetIBlockDropDownListEx($this->ebaySettings[$this->siteId]["IBLOCK_ID"][$i], 'EBAY_SETTINGS[IBLOCK_TYPE_ID][' . $i . ']', 'EBAY_SETTINGS[IBLOCK_ID][' . $i . ']', array('ID' => array_keys(Helper::getIblocksIds()), 'ACTIVE' => 'Y', 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'W', 'SITE_ID' => $this->siteId), '', 'this.form.submit();') . ' ' . Helper::getBitrixCategoryPropsHtml("EBAY_SETTINGS[MORE_PHOTO_PROP][" . $this->ebaySettings[$this->siteId]["IBLOCK_ID"][$i] . "]", $this->ebaySettings[$this->siteId]["IBLOCK_ID"][$i], 0, $this->ebaySettings[$this->siteId]["MORE_PHOTO_PROP"][$this->ebaySettings[$this->siteId]["IBLOCK_ID"][$i]]) . '</div>'; } $result .= '</div>' . '<input type="button" value="' . Loc::getMessage('SALE_EBAY_W_STEP_CATALOG_ADD') . '" onclick="BX.Sale.EbayAdmin.addIblockSelect();" style="margin-top: 10px;">' . '<br><br><hr><br>' . Loc::getMessage('SALE_EBAY_W_STEP_CATALOG_DESCR') . '.'; return $result; }
/** * Returns html presenting a control of two drop boxes to choose iblock iblock from. * All iblock permission check to be at least W * * @param int $IBLOCK_ID Selected iblock * @param string $strTypeName Name of the iblock type select * @param string $strIBlockName Name of the iblock name select * @param bool|array $arFilter Additional filter for iblock list * @param string $strAddType Additional html inserted into type select * @param string $strAddIBlock Additional html inserted into iblock select * @return string */ function GetIBlockDropDownList($IBLOCK_ID, $strTypeName, $strIBlockName, $arFilter = false, $strAddType = '', $strAddIBlock = '') { if (!is_array($arFilter)) { $arFilter = array(); } $arFilter["MIN_PERMISSION"] = "W"; return GetIBlockDropDownListEx($IBLOCK_ID, $strTypeName, $strIBlockName, $arFilter, '', '', $strAddType, $strAddIBlock); }
?> :</b></td> </tr> <tr> <td width="40%"><span class="adm-required-field"><?php echo Loc::getMessage("SALE_EBAY_IBLOCK_SELECT"); ?> :</span></td> <td width="60%"> <div id="SALE_EBAY_IBLOCK_CHOOSE"> <?php for ($i = 0; $i < count($siteSettings["IBLOCK_ID"]); $i++) { ?> <div style="padding-top: 10px;"> <?php echo GetIBlockDropDownListEx($siteSettings["IBLOCK_ID"][$i], 'EBAY_SETTINGS[IBLOCK_TYPE_ID][' . $i . ']', 'EBAY_SETTINGS[IBLOCK_ID][' . $i . ']', array('ID' => array_keys(Helper::getIblocksIds()), 'ACTIVE' => 'Y', 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'W', 'SITE_ID' => $SITE_ID), '', 'this.form.submit();'); ?> <?php echo Helper::getBitrixCategoryPropsHtml("EBAY_SETTINGS[MORE_PHOTO_PROP][" . $siteSettings["IBLOCK_ID"][$i] . "]", $siteSettings["IBLOCK_ID"][$i], 0, $siteSettings["MORE_PHOTO_PROP"][$siteSettings["IBLOCK_ID"][$i]]); ?> </div> <?php } ?> </div> <input type="button" value="<?php echo Loc::getMessage("SALE_EBAY_IBLOCK_ADD"); ?> " onclick='BX.Sale.EbayAdmin.addIblockSelect();' style="margin-top: 10px;"> </td>
<td colspan="2">Каталог</td> </tr> <tr> <td valign="top" width="40%">Информационный блок каталога:</td> <td valign="top" width="60%"><? if (!intval($CATALOG_ID)) { $CATALOG_ID = 0; } echo GetIBlockDropDownListEx( $CATALOG_ID, 'CATALOG_TYPE_ID', 'CATALOG_ID', array( 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'W' ), "", "", 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"' ); ?></td> </tr> <? if ($ACTION == "IMPORT_SETUP" || $ACTION == 'IMPORT_EDIT' || $ACTION == 'IMPORT_COPY') { ?> <tr class="heading"> <td colspan="2">Сохранить настройки</td> </tr>
?> <form method="POST" action="<? echo $APPLICATION->GetCurPageParam("mid=".htmlspecialcharsbx($mid)."&lang=".LANG, array("mid", "lang")); ?>"> <? echo bitrix_sessid_post(); $tabControl->BeginNextTab(); ?> <tr> <td valign="top" width="50%">Информационный блок модификаторов:</td> <td valign="top" width="50%"><? echo GetIBlockDropDownListEx( $arParams['MODIFIER_ID'], 'modifier_type_id', 'modifier_id', array( 'CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'W' ), "", "", 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"' ); ?></td> </tr> <tr class="heading"> <td colspan="2">Настройка доставки</td> </tr> <tr> <td valign="top" width="50%">Самовывоз:</td> <td valign="top" width="50%"> <select name="SELF_DELIVERY_ID">
"> <input type="hidden" name="filter_iblock_id" value="<?php echo $IBLOCK_ID; ?> "><?php } $oFilter->Begin(); if (!$iblockFix) { ?> <tr> <td><b><?php echo GetMessage("IBLOCK_ELSEARCH_IBLOCK"); ?> </b></td> <td><?php echo GetIBlockDropDownListEx($IBLOCK_ID, "filter_type", "filter_iblock_id", array('MIN_PERMISSION' => 'S'), '', 'reloadFilter(this)'); ?> </td> </tr> <?php } ?> <tr> <td><?php echo GetMessage("IBLOCK_ELSEARCH_FROMTO_ID"); ?> </td> <td> <input type="text" name="filter_id_start" size="10" value="<?php echo htmlspecialcharsex($filter_id_start); ?>
{ TreeSelected = new Array(); } </script> <table width="100%"> <tr> <td width="0%" valign="top"> <font class="text" style="font-size: 20px;">1. </font> </td> <td width="100%" valign="top"> <font class="text"><b><?php echo GetMessage('CET_SELECT_IBLOCK_EXT'); ?> </b></font><br> <?php echo GetIBlockDropDownListEx($IBLOCK_ID, 'IBLOCK_TYPE_ID', 'IBLOCK_ID', array('CHECK_PERMISSIONS' => 'Y', 'MIN_PERMISSION' => 'W'), "ClearSelected(); document.getElementById('ifr').src='/bitrix/tools/catalog_export/froogle_util.php?IBLOCK_ID=0&'+'" . bitrix_sessid_get() . "';", "ClearSelected(); document.getElementById('ifr').src='/bitrix/tools/catalog_export/froogle_util.php?IBLOCK_ID='+this[this.selectedIndex].value+'&'+'" . bitrix_sessid_get() . "';", 'class="adm-detail-iblock-types"', 'class="adm-detail-iblock-list"'); ?> <br><br> </td> </tr> <tr> <td width="0%" valign="top"> <font class="text" style="font-size: 20px;">2. </font> </td> <td width="100%" valign="top"> <?php // Get sections list ?> <font class="text"><b><?php echo GetMessage("CET_SELECT_GROUP");