Bitrix Site Manager

CSearcher::GetDropdownList

CDBResult
CSearcher::GetDropdownList(
 string order = "ORDER BY NAME, ID"
)

The method GetDropdownList returns a list of search engines for use in a drop-down list (SelectBox function), or in a multiple selection list (SelectBoxM function).

Parameters

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

See Also

Example



<?
// single-selection list
echo SelectBox(
    "SEARCHER_ID", 
    CSearcher::GetDropdownList(), 
    "", 
    intval($SEARCHER_ID)
    );

// multiple selection list of 20 visible items
echo SelectBoxM(
    "arSEARCHER_ID[]", 
    CSearcher::GetDropdownList(), 
    $arSEARCHER_ID, 
    "", 
    false, 
    20
    );
?>