Advertisement
Guest User

ruki by im otorvat

a guest
Jul 18th, 2019
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.73 KB | None | 0 0
  1. <?
  2.     $rsUsers = CUser::GetList($by, $order, array("SELECT" => array("UF_DISPLAY_OPTIONS")));
  3.     while ($rsUsers->GetNext())
  4.     {
  5.         $resListUserProperty = CUserFieldEnum::GetList();
  6.         while ($arListUserProperty = $resListUserProperty->GetNext()){
  7.             $arListUserPropertyPrint[$arListUserProperty["ID"]]=$arListUserProperty;   
  8.         }
  9.     }
  10.     //убераем из списка
  11.     foreach($arResult["SECTIONS"] as $key=>&$arChildSection)
  12.     {
  13.         $UF_DISPLAY_OPTIONS=$arListUserPropertyPrint[$arChildSection["UF_DISPLAY_OPTIONS"]]["XML_ID"];
  14.        
  15.         if($UF_DISPLAY_OPTIONS=="no_active"||$UF_DISPLAY_OPTIONS=="active_by_link")
  16.         {
  17.                 $arUnset[]=$key;
  18.         }
  19.        
  20.     }
  21.     foreach($arUnset as $key){
  22.        
  23.         unset($arResult["SECTIONS"][$key]);
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement