Example #1
0
    echo htmlspecialcharsbx($strSubTMP_ID);
    ?>
">
<?php 
    CCatalogAdminTools::showFormParams();
    $tabControl->EndEpilogContent();
    $customTabber->SetErrorState($bVarsFromForm);
    $tabControl->AddTabs($customTabber);
    $strFormAction = CIBlock::GetAdminSubElementEditLink($IBLOCK_ID, $intProductID, $ID > 0 && !$bSubCopy ? $ID : 0, array('WF' => $WF, 'find_section_section' => (int) $find_section_section), '', !BX_SUB_SETTINGS);
    $tabControl->Begin(array("FORM_ACTION" => $strFormAction));
    $tabControl->BeginNextFormTab();
    if ($ID > 0 && !$bSubCopy) {
        $p = CIblockElement::GetByID($ID);
        $pr = $p->ExtractFields("prn_");
    }
    $tabControl->AddCheckBoxField("SUB_ACTIVE", GetMessage("IBLOCK_FIELD_ACTIVE") . ":", false, "Y", $str_ACTIVE == "Y");
    $tabControl->BeginCustomField("SUB_ACTIVE_FROM", GetMessage("IBLOCK_FIELD_ACTIVE_PERIOD_FROM"), $arIBlock["FIELDS"]["ACTIVE_FROM"]["IS_REQUIRED"] === "Y");
    ?>
<tr id="tr_SUB_ACTIVE_FROM">
	<td><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
:</td>
	<td><?php 
    echo CAdminCalendar::CalendarDate("SUB_ACTIVE_FROM", $str_ACTIVE_FROM, 19, true);
    ?>
</td>
</tr>
<?php 
    $tabControl->EndCustomField("SUB_ACTIVE_FROM", '<input type="hidden" id="SUB_ACTIVE_FROM" name="SUB_ACTIVE_FROM" value="' . $str_ACTIVE_FROM . '">');
    $tabControl->BeginCustomField("SUB_ACTIVE_TO", GetMessage("IBLOCK_FIELD_ACTIVE_PERIOD_TO"), $arIBlock["FIELDS"]["ACTIVE_TO"]["IS_REQUIRED"] === "Y");
Example #2
0
">
	<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();
    if ($ID > 0 && !$boolCopy) {
        $tabControl->AddViewField('ID', 'ID:', $ID, false);
    }
    $tabControl->AddCheckBoxField("ACTIVE", GetMessage("DSC_ACTIVE") . ":", false, "Y", $arCoupon['ACTIVE'] == "Y");
    $tabControl->AddDropDownField("ONE_TIME", GetMessage('DSC_COUPON_TYPE') . ':', true, $arTypeList, $arCoupon['ONE_TIME']);
    $tabControl->BeginCustomField('COUPON', GetMessage("DSC_CPN_CODE") . ':', true);
    ?>
<tr id="tr_COUPON" class="adm-detail-required-field">
			<td width="40%"><?php 
    echo $tabControl->GetCustomLabelHTML();
    ?>
</td>
			<td width="60%" id="td_COUPON_VALUE">
				<input type="text" id="COUPON" name="COUPON" size="32" maxlength="32" value="<?php 
    echo htmlspecialcharsbx($arCoupon['COUPON']);
    ?>
" />&nbsp;
				<input type="button" value="<?php 
    echo GetMessage("DSC_CPN_GEN");