本文整理汇总了PHP中CAdminForm::ShowUserFields方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::ShowUserFields方法的具体用法?PHP CAdminForm::ShowUserFields怎么用?PHP CAdminForm::ShowUserFields使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminForm
的用法示例。
在下文中一共展示了CAdminForm::ShowUserFields方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: IntVal
?>
<?php
$tabControl->Begin(array("FORM_ACTION" => $APPLICATION->GetCurPage() . "?ENTITY_ID=" . $hlblock['ID'] . "&ID=" . IntVal($ID) . "&lang=" . LANG));
?>
<?php
$tabControl->BeginNextFormTab();
?>
<?php
$tabControl->AddViewField("ID", "ID", $row['ID']);
?>
<?php
echo $tabControl->ShowUserFields('HLBLOCK_' . $hlblock['ID'], $ID, true);
?>
<?php
$ufields = $USER_FIELD_MANAGER->GetUserFields('HLBLOCK_' . $hlblock['ID'], $ID, LANGUAGE_ID);
$hasSomeFields = !empty($ufields);
?>
<?php
$disable = true;
if ($isEditMode) {
$disable = false;
}
if ($hasSomeFields) {
$tabControl->Buttons(array("disabled" => $disable, "back_url" => "highloadblock_rows_list.php?ENTITY_ID=" . intval($hlblock['ID']) . "&lang=" . LANGUAGE_ID));
} else {
示例2:
?>
<tr>
<td align="center" colspan="2"><textarea name="ADMIN_NOTES" cols="50" rows="10" style="width:100%;"><?echo $str_ADMIN_NOTES?></textarea></td>
</tr>
<?
$tabControl->EndCustomField("ADMIN_NOTES", '<input type="hidden" name="ADMIN_NOTES" value="'.$str_ADMIN_NOTES.'">');
endif;
//Add user fields tab only when there is fields defined or user has rights for adding new field
if(
(count($USER_FIELD_MANAGER->GetUserFields($PROPERTY_ID)) > 0) ||
($USER_FIELD_MANAGER->GetRights($PROPERTY_ID) >= "W")
)
{
$tabControl->BeginNextFormTab();
$tabControl->ShowUserFields($PROPERTY_ID, $ID, ($strError <> '' || !$res));
}
if($canViewUserList)
{
$tabControl->Buttons(array(
"disabled" => !$editable,
"btnSaveAndAdd" => true,
"back_url" => "user_admin.php?lang=".LANGUAGE_ID,
));
}
else
{
$tabControl->Buttons(array(
"disabled" => !$editable,
"btnSave" => false,