Как вывести элементы инфоблока
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
<? $BID = 8; $result = CIBlockElement::GetList( Array("ID"=>"DESC"), Array("IBLOCK_ID"=>IntVal($BID), "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y"), false, Array("nPageSize"=>15), Array("ID", "NAME", "PROPERTY_ADRESS", "PROPERTY_COORDS") ); ?> <?while($element = $result->GetNext()) :?> <div> <? echo $element["ID"]; ?><br> <? echo $element["NAME"]; ?><br> <? echo $element["PROPERTY_ADRESS_VALUE"]; ?><br> <? echo $element["PROPERTY_COORDS_VALUE"]; ?><br> </div><br> <?endwhile?> |