Guest User

Untitled

a guest
Jul 17th, 2018
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. if(CModule::IncludeModule("iblock")) {
  2. $arSelect = Array();
  3. $arFilter = Array(
  4. "IBLOCK_ID" => 52,
  5. "ACTIVE_DATE"=>"Y",
  6. "ACTIVE"=>"Y"
  7. );
  8. $res = CIBlockElement::GetList(Array(), $arFilter, false, Array(), $arSelect);
  9. while($ob = $res->GetNextElement()){
  10. $arFields = $ob->GetFields();
  11. $db_props = CIBlockElement::GetProperty(52, $arFields['ID'], "sort", "asc", array());
  12. while($ar_props = $db_props->Fetch()){
  13. $ar_props2[] = $ar_props;
  14. }
  15. }
  16. echo json_encode($ar_props2);
  17. }
Add Comment
Please, Sign In to add comment