I
I
IGrch2018-01-30 16:35:14
1C-Bitrix
IGrch, 2018-01-30 16:35:14

How to display personal user account information?

How can I display user (login) field data on the page without using components?
I take out the name:

<?
global $USER;
echo $USER->GetFullNAme();
?>

How can I do the same, but for accounting fields? PERSONAL_NOTES , WORK_NOTES and other fields?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ainur Valiev, 2018-01-30
@IGrch

everything is in the docs
www.omnimed.ru/v2/bitrix/help/ru/index.html?page=s...
$filter = Array("ID" => "1");
$rsUsers = CUser::GetList(($by="personal_country"), ($order="desc"), $filter);
while($rsUsers->NavNext(true, "f_")) :
echo $f_PERSONAL_NOTES;
echo $f_WORK_NOTES;
echo "
";
endwhile;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question