本文整理汇总了PHP中CAdminForm::ShowUserFieldsWithReadyData方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminForm::ShowUserFieldsWithReadyData方法的具体用法?PHP CAdminForm::ShowUserFieldsWithReadyData怎么用?PHP CAdminForm::ShowUserFieldsWithReadyData使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminForm
的用法示例。
在下文中一共展示了CAdminForm::ShowUserFieldsWithReadyData方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: htmlspecialcharsbx
<input type="hidden" name="update" value="Y">
<input type="hidden" name="lang" value="<?php
echo $lang;
?>
">
<input type="hidden" name="ID" value="<?php
echo $id;
?>
">
<?php
$tabControl->EndEpilogContent();
$tabControl->Begin(array("FORM_ACTION" => $APPLICATION->GetCurPage() . "?ID=" . $id . "&lang=" . $lang));
$tabControl->BeginNextFormTab();
$fields = $request->isPost() ? $_POST : $company;
$tabControl->AddViewField("ID", "ID", $company['ID']);
$tabControl->ShowUserFieldsWithReadyData(CompanyTable::getUfId(), $company, false, 'ID');
if ($id > 0) {
$createdBy = htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_LAST_NAME']) . ' ' . htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_NAME']);
$modifiedBy = htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_LAST_NAME']) . ' ' . htmlspecialcharsbx($company['SALE_INTERNALS_COMPANY_CREATED_NAME']);
$tabControl->AddViewField('DATE_CREATE', GetMessage("COMPANY_DATE_CREATE"), $company['DATE_CREATE']);
$tabControl->AddViewField('DATE_MODIFY', GetMessage("COMPANY_DATE_MODIFY"), $company['DATE_MODIFY']);
$tabControl->AddViewField('CREATED_BY', GetMessage("COMPANY_CREATED_BY"), $createdBy);
if (strlen(trim($modifiedBy)) > 0) {
$tabControl->AddViewField('MODIFIED_BY', GetMessage("COMPANY_MODIFIED_BY"), $modifiedBy);
}
}
$tabControl->ShowUserFieldsWithReadyData(CompanyTable::getUfId(), $fields, false, 'ID');
$tabControl->AddCheckBoxField("ACTIVE", GetMessage("COMPANY_ACTIVE"), false, 'Y', $fields['ACTIVE'] == 'Y');
$tabControl->AddEditField("NAME", GetMessage("COMPANY_NAME"), true, array(), htmlspecialcharsbx($fields['NAME']));
$tabControl->BeginCustomField('LOCATIONS', GetMessage("COMPANY_LOCATION_ID"));
if ($saleModulePermissions >= 'W') {
示例2: 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", !empty($row) ? $row['ID'] : '');
?>
<?php
echo $tabControl->ShowUserFieldsWithReadyData('HLBLOCK_' . $hlblock['ID'], $row, false, 'ID');
?>
<?php
$ufields = $USER_FIELD_MANAGER->GetUserFields('HLBLOCK_' . $hlblock['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 {