- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
if(!CModule::IncludeModule("iblock")) return;
$arFilter = array(
"IBLOCK_ID" => intval($arParams["IBLOCK_ID"]),
"SECTION_CODE" => "",
"PROPERTY_OWNER"=>CUser::GetId(),
);
$arSelect = Array("ID", "NAME", "PROPERTY_arrived", "PROPERTY_IDTRACK", "PROPERTY_OWNER");
$res = CIBlockElement::GetList(Array(), $arFilter, false, Array(), $arSelect);
$arResult = array();
while($ob = $res->GetNextElement())
{
$arFields = $ob->GetFields();
$data = array("TRACK"=>$arFields);
$arSelectHistroty = array("property_date","property_status_str","property_place","name");
$arFilterHistroty = array("IBLOCK_ID" =>$arParams["IBLOCK_ID_HISTORY"],"SECTION_CODE" => "","NAME"=>$arFields[ID]);
$resHistory = CIBlockElement::GetList(Array(), $arFilterHistroty, false, Array(), $arSelectHistroty);
while($history = $resHistory->GetNextElement()){
$history = $history->GetFields();
$data["HISTORY"][] = $history;
}
$arResult["ITEMS"][] = $data;
};
Комментарии (0) RSS
Добавить комментарий