"><image id="sub_code_link" title="<?php echo GetMessage("IBEL_E_LINK_TIP"); ?> " class="linked" src="/bitrix/themes/.default/icons/iblock/<?php if ($bLinked) { echo 'link.gif'; } else { echo 'unlink.gif'; } ?> " onclick="set_linked()" /> </td> </tr><?php $tabControl->EndCustomField("SUB_CODE", '<input type="hidden" name="SUB_CODE" id="SUB_CODE" value="' . $str_CODE . '">'); } else { $tabControl->AddEditField("SUB_NAME", GetMessage("IBLOCK_FIELD_NAME") . ":", true, array("size" => 50, "maxlength" => 255), $str_NAME); $tabControl->AddEditField("SUB_CODE", GetMessage("IBLOCK_FIELD_CODE") . ":", $arIBlock["FIELDS"]["CODE"]["IS_REQUIRED"] === "Y", array("size" => 20, "maxlength" => 255), $str_CODE); } if (COption::GetOptionString("iblock", "show_xml_id", "N") == "Y") { $tabControl->AddEditField("SUB_XML_ID", GetMessage("IBLOCK_FIELD_XML_ID") . ":", $arIBlock["FIELDS"]["XML_ID"]["IS_REQUIRED"] === "Y", array("size" => 20, "maxlength" => 255, "id" => "SUB_XML_ID"), $str_XML_ID); } $tabControl->AddEditField("SUB_SORT", GetMessage("IBLOCK_FIELD_SORT") . ":", $arIBlock["FIELDS"]["SORT"]["IS_REQUIRED"] === "Y", array("size" => 7, "maxlength" => 10), $str_SORT); if (!empty($PROP)) { $tabControl->AddSection("IBLOCK_ELEMENT_PROP_VALUE", GetMessage("IBLOCK_ELEMENT_PROP_VALUE")); foreach ($PROP as $prop_code => $prop_fields) { $prop_values = $prop_fields["VALUE"]; $tabControl->BeginCustomField("PROPERTY_" . $prop_fields["ID"], $prop_fields["NAME"], $prop_fields["IS_REQUIRED"] === "Y"); if ($arSubCatalog['SKU_PROPERTY_ID'] != $prop_fields['ID']) { ?> <tr id="tr_PROPERTY_<?php echo $prop_fields["ID"];
?> <input type="hidden" name="return_url" value="<?php echo htmlspecialcharsbx($return_url); ?> "><?php } ?> <input type="hidden" name="DISCOUNT_ID" value="<?php echo intval($intDiscountID); ?> "> <input type="hidden" name="MULTI" value="<?php echo $boolMulti ? 'Y' : 'N'; ?> "> <input type="hidden" name="TMP_ID" value="<?php echo htmlspecialcharsbx($strSubTMP_ID); ?> "><?php $tabControl->EndEpilogContent(); $tabControl->Begin(array("FORM_ACTION" => '/bitrix/admin/cat_subcoupon_edit.php?lang=' . urlencode(LANGUAGE_ID))); $tabControl->BeginNextFormTab(); $tabControl->AddDropDownField("ONE_TIME", GetMessage('DSC_COUPON_TYPE') . ':', true, $arTypeList, $arCoupon['ONE_TIME']); $tabControl->AddEditField("COUNT", GetMessage('BT_CAT_DISC_SUBCOUPON_FIELD_COUNT') . ':', true, $arCoupon['COUNT']); $tabControl->Buttons(false, ''); $tabControl->Show(); $tabControl->ShowWarnings("subcoupons_edit", $obMessages); ?> <script type="text/javascript">top.BX.WindowManager.Get().adjustSizeEx();</script><?php } require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";