- Модуль: main
- Путь к файлу: ~/bitrix/modules/main/classes/mysql/user.php
- Класс: CGroup
- Вызов: CGroup::GetDropDownList
static function GetDropDownList($strSqlSearch="and ACTIVE='Y'", $strSqlOrder="ORDER BY C_SORT, NAME, ID")
{
global $DB;
$err_mess = (CGroup::err_mess())."
Function: GetDropDownList
Line: ";
$strSql = "
SELECT
ID as REFERENCE_ID,
concat(NAME, ' [', ID, ']') as REFERENCE
FROM
b_group
WHERE
1=1
$strSqlSearch
$strSqlOrder
";
$res = $DB->Query($strSql, false, $err_mess.__LINE__);
return $res;
}