本文整理汇总了PHP中CAdminForm::AddTextField方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::AddTextField方法的具体用法?PHP CAdminForm::AddTextField怎么用?PHP CAdminForm::AddTextField使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminForm
的用法示例。
在下文中一共展示了CAdminForm::AddTextField方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialcharsbx
echo htmlspecialcharsbx($arVariants["VALUE"]);
?>
"><?php
echo htmlspecialcharsbx($arVariants["NAME"]);
?>
</option>
<?php
}
?>
</select>
</td>
</tr>
<?php
$tabControl->EndCustomField("CODE_" . IntVal($arProperties["ID"]));
} elseif ($arProperties["TYPE"] == "TEXTAREA") {
$tabControl->AddTextField("CODE_" . IntVal($arProperties["ID"]), $arProperties["NAME"] . ":", $fieldValue, array("cols" => "30", "rows" => "5"), $shure);
} elseif ($arProperties["TYPE"] == "RADIO") {
$tabControl->BeginCustomField("CODE_" . IntVal($arProperties["ID"]), $arProperties["NAME"], $shure);
?>
<tr<?php
$shure ? " class=\"adm-detail-required-field\"" : "";
?>
>
<td width="40%">
<?php
echo htmlspecialcharsEx($arProperties["NAME"]);
?>
:
</td>
<td width="60%">
<?php
示例2: FindUserID
$control->EndCustomField($prefix . 'PERIOD');
$control->BeginCustomField($prefix . 'USER_ID', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_USER_ID'), false);
?>
<tr id="tr_USER_ID">
<td width="40%"><?php
echo $control->GetCustomLabelHTML();
?>
</td>
<td width="60%"><?php
echo FindUserID($prefix . 'USER_ID', $coupon['USER_ID'] > 0 ? $coupon['USER_ID'] : '', '', $couponFormID);
?>
</td>
</tr><?php
$control->EndCustomField($prefix . 'USER_ID');
$control->AddEditField($prefix . 'MAX_USE', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_MAX_USE'), false, array(), $coupon['MAX_USE'] > 0 ? $coupon['MAX_USE'] : '');
$control->AddTextField($prefix . 'DESCRIPTION', Loc::getMessage('BX_SALE_DISCOUNT_COUPON_FIELD_DESCRIPTION'), $coupon['DESCRIPTION'], array(), false);
if ($subWindow) {
$control->Buttons(false, '');
} else {
$control->Buttons(array('disabled' => $readOnly, 'back_url' => "sale_discount_coupons.php?lang=" . LANGUAGE_ID . GetFilterParams('filter_')));
}
$control->Show();
?>
<script type="text/javascript">
BX.ready(function(){
var obCouponValue = BX('COUPON'),
obCouponBtn = BX('COUPON_GENERATE');
if (!!obCouponValue && !!obCouponBtn)
{
BX.bind(obCouponBtn, 'click', function(){
var url,
示例3: GetMessage
'<input type="hidden" name="MAX_DISCOUNT" value="'.roundEx($arDiscount['MAX_DISCOUNT'], CATALOG_VALUE_PRECISION).'">'
);
$tabControl->AddCheckBoxField("RENEWAL", GetMessage("DSC_RENEW").":", false, "Y", $arDiscount['RENEWAL']=="Y");
$tabControl->AddEditField("PRIORITY", GetMessage("BT_CAT_DISCOUNT_EDIT_FIELDS_PRIORITY").":", false, array("size" => 20, "maxlength" => 20), intval($arDiscount['PRIORITY']));
$tabControl->BeginCustomField("LAST_DISCOUNT", GetMessage('BT_CAT_DISCOUNT_EDIT_FIELDS_LAST_DISCOUNT').":",false);
?><tr id="tr_LAST_DISCOUNT">
<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
<td width="60%">
<input type="hidden" value="N" name="LAST_DISCOUNT">
<input type="checkbox" value="Y" name="LAST_DISCOUNT" <? echo ('Y' == $arDiscount['LAST_DISCOUNT']? 'checked' : '');?>>
</td>
</tr><?
$tabControl->EndCustomField("LAST_DISCOUNT",
'<input type="hidden" name="LAST_DISCOUNT" value="'.htmlspecialcharsbx($arDiscount['LAST_DISCOUNT']).'">'
);
$tabControl->AddTextField("NOTES", GetMessage("DSC_DESCR").':', htmlspecialcharsbx($arDiscount['NOTES']), array("cols" => 50, 'rows' => 6));
$tabControl->BeginNextFormTab();
$tabControl->BeginCustomField("CONDITIONS", GetMessage('BT_CAT_DISCOUNT_EDIT_FIELDS_COND').":",false);
?><tr id="tr_CONDITIONS">
<td valign="top" colspan="2"><div id="tree" style="position: relative; z-index: 1;"></div><?
if (!is_array($arDiscount['CONDITIONS']))
{
if (CheckSerializedData($arDiscount['CONDITIONS']))
{
$arDiscount['CONDITIONS'] = unserialize($arDiscount['CONDITIONS']);
}
else
{
$arDiscount['CONDITIONS'] = '';
示例4: BeginNote
$tabControl->EndCustomField('ONE_TIME',
'<input type="hidden" name="ONE_TIME" value="'.htmlspecialcharsbx($arCoupon['ONE_TIME']).'">'
);
$tabControl->BeginCustomField('COUPON', GetMessage("DSC_CPN_CODE").':', true);
?><tr id="tr_COUPON" class="adm-detail-required-field">
<td width="40%"><? echo $tabControl->GetCustomLabelHTML(); ?></td>
<td width="60%" id="td_COUPON_VALUE">
<input type="text" id="COUPON" name="COUPON" size="32" maxlength="32" value="<? echo htmlspecialcharsbx($arCoupon['COUPON']); ?>" />
<input type="button" value="<? echo GetMessage("DSC_CPN_GEN") ?>" id="COUPON_GENERATE">
</td>
</tr><?
$tabControl->EndCustomField('COUPON',
'<input type="hidden" name="COUPON" value="'.htmlspecialcharsbx($arCoupon['COUPON']).'">'
);
$tabControl->AddCalendarField('DATE_APPLY', GetMessage("DDSC_CPN_DATE").':', $arCoupon['DATE_APPLY']);
$tabControl->AddTextField("DESCRIPTION", GetMessage("DSC_CPN_DESCRIPTION").':', htmlspecialcharsbx($arCoupon['DESCRIPTION']), array("cols" => 50, 'rows' => 6));
$arButtonsParams = array(
"disabled" => $bReadOnly,
"back_url" => "/bitrix/admin/cat_discount_coupon.php?lang=".LANGUAGE_ID.GetFilterParams("filter_", false)
);
$tabControl->Buttons($arButtonsParams);
$tabControl->Show();
$tabControl->ShowWarnings("tabControl", $obMessages);
echo BeginNote();
?><span class="required" style="vertical-align: super; font-size: smaller;">1</span> <? echo GetMessage('DSC_CPN_ONE_ORDER_NOTE');
echo EndNote();
?><script type="text/javascript">
示例5: GetMessage
$tabControl->AddEditField("PERSONAL_MOBILE", GetMessage('USER_MOBILE'), false, array("size"=>30, "maxlength"=>255), $str_PERSONAL_MOBILE);
$tabControl->AddEditField("PERSONAL_PAGER", GetMessage('USER_PAGER'), false, array("size"=>30, "maxlength"=>255), $str_PERSONAL_PAGER);
$tabControl->AddSection("USER_POST_ADDRESS", GetMessage("USER_POST_ADDRESS"));
$tabControl->BeginCustomField("PERSONAL_COUNTRY", GetMessage('USER_COUNTRY'));
?>
<tr>
<td><?echo $tabControl->GetCustomLabelHTML()?></td>
<td><?echo SelectBoxFromArray("PERSONAL_COUNTRY", GetCountryArray(), $str_PERSONAL_COUNTRY, GetMessage("USER_DONT_KNOW"));?></td>
</tr>
<?
$tabControl->EndCustomField("PERSONAL_COUNTRY", '<input type="hidden" name="PERSONAL_COUNTRY" value="'.$str_PERSONAL_COUNTRY.'">');
$tabControl->AddEditField("PERSONAL_STATE", GetMessage('USER_STATE'), false, array("size"=>30, "maxlength"=>255), $str_PERSONAL_STATE);
$tabControl->AddEditField("PERSONAL_CITY", GetMessage('USER_CITY'), false, array("size"=>30, "maxlength"=>255), $str_PERSONAL_CITY);
$tabControl->AddEditField("PERSONAL_ZIP", GetMessage('USER_ZIP'), false, array("size"=>30, "maxlength"=>255), $str_PERSONAL_ZIP);
$tabControl->AddTextField("PERSONAL_STREET", GetMessage("USER_STREET"), $str_PERSONAL_STREET, array("cols"=>40, "rows"=>3));
$tabControl->AddEditField("PERSONAL_MAILBOX", GetMessage('USER_MAILBOX'), false, array("size"=>30, "maxlength"=>255), $str_PERSONAL_MAILBOX);
$tabControl->AddTextField("PERSONAL_NOTES", GetMessage("USER_NOTES"), $str_PERSONAL_NOTES, array("cols"=>40, "rows"=>5));
$tabControl->BeginNextFormTab();
$tabControl->AddEditField("WORK_COMPANY", GetMessage('USER_COMPANY'), false, array("size"=>30, "maxlength"=>255), $str_WORK_COMPANY);
$tabControl->AddEditField("WORK_WWW", GetMessage('USER_WWW'), false, array("size"=>30, "maxlength"=>255), $str_WORK_WWW);
$tabControl->AddEditField("WORK_DEPARTMENT", GetMessage('USER_DEPARTMENT'), false, array("size"=>30, "maxlength"=>255), $str_WORK_DEPARTMENT);
$tabControl->AddEditField("WORK_POSITION", GetMessage('USER_POSITION'), false, array("size"=>30, "maxlength"=>255), $str_WORK_POSITION);
$tabControl->AddTextField("WORK_PROFILE", GetMessage("USER_WORK_PROFILE"), $str_WORK_PROFILE, array("cols"=>40, "rows"=>5));
$tabControl->AddFileField("WORK_LOGO", GetMessage("USER_LOGO"), $str_WORK_LOGO, array("iMaxW"=>150, "iMaxH"=>150));
$tabControl->AddSection("USER_WORK_PHONES", GetMessage("USER_PHONES"));
$tabControl->AddEditField("WORK_PHONE", GetMessage('USER_PHONE'), false, array("size"=>30, "maxlength"=>255), $str_WORK_PHONE);
$tabControl->AddEditField("WORK_FAX", GetMessage('USER_FAX'), false, array("size"=>30, "maxlength"=>255), $str_WORK_FAX);