Bitrix Site Manager

CAdv::GetDropdownList

CDBResult
CAdv::GetDropdownList(
 string order = "ORDER BY REFERER1, REFERER2"
)

The method GetDropdownList returns the list of advertising campaigns (AC) for using with the drop-down lists (SelectBox function), or with the multiple selection lists (SelectBoxM function).

Parameters

Parameter Description
order The SQL code that can be used to set arbitrary sorting of the advertising campaigns list.

Structure of the returned record

Array
(
    [REFERENCE_ID] => ID of AC
    [REFERENCE] => [ID of AC] referer1 / referer2
)

See Also

Example



<?
// single selection drop-down list
echo SelectBox("ADV_ID", CAdv::GetDropdownList(), "", intval($ADV_ID));

// multiple selection list box with 20 visible items
echo SelectBoxM("arADV_ID[]", CAdv::GetDropdownList(), $arADV_ID, "", false, 20);
?>