本文整理汇总了PHP中CAdminForm::AddFieldGroup方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::AddFieldGroup方法的具体用法?PHP CAdminForm::AddFieldGroup怎么用?PHP CAdminForm::AddFieldGroup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminForm
的用法示例。
在下文中一共展示了CAdminForm::AddFieldGroup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
{
$arPropLinks = array("IBLOCK_ELEMENT_PROP_VALUE");
if(is_array($str_IBLOCK_ELEMENT_SECTION) && !empty($str_IBLOCK_ELEMENT_SECTION))
{
foreach($str_IBLOCK_ELEMENT_SECTION as $section_id)
{
foreach(CIBlockSectionPropertyLink::GetArray($IBLOCK_ID, $section_id) as $PID => $arLink)
$arPropLinks[$PID] = "PROPERTY_".$PID;
}
}
else
{
foreach(CIBlockSectionPropertyLink::GetArray($IBLOCK_ID, 0) as $PID => $arLink)
$arPropLinks[$PID] = "PROPERTY_".$PID;
}
$tabControl->AddFieldGroup("IBLOCK_ELEMENT_PROPERTY", GetMessage("IBLOCK_ELEMENT_PROP_VALUE"), $arPropLinks, $bPropertyAjax);
}
$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");
?>
<tr id="tr_PROPERTY_<?echo $prop_fields["ID"];?>"<?if ($prop_fields["PROPERTY_TYPE"]=="F"):?> class="adm-detail-file-row"<?endif?>>
<td class="adm-detail-valign-top" width="40%"><?if($prop_fields["HINT"]!=""):
?><span id="hint_<?echo $prop_fields["ID"];?>"></span><script type="text/javascript">BX.hint_replace(BX('hint_<?echo $prop_fields["ID"];?>'), '<?echo CUtil::JSEscape($prop_fields["HINT"])?>');</script> <?
endif;?><?echo $tabControl->GetCustomLabelHTML();?>:</td>
<td width="60%"><?_ShowPropertyField('PROP['.$prop_fields["ID"].']', $prop_fields, $prop_fields["VALUE"], (($historyId <= 0) && (!$bVarsFromForm) && ($ID<=0)), $bVarsFromForm||$bPropertyAjax, 50000, $tabControl->GetFormName(), $bCopy);?></td>
</tr>
<?