Код |
---|
if (isset($_POST['sCheckboxId'])&&isset($_POST['ID_ORG'])) { $sCheckboxId = $_POST['sCheckboxId']; $sCheckboxId = mb_substr($sCheckboxId,1); $arCheckboxId = explode(",",$sCheckboxId); $ID_ORG = $_POST['ID_ORG']; } $arPROPS = Array( "RUBRIK" => $arCheckboxId, "ACTUALITY" => "1", ); $e = new CIBlockElement; $e_stat = $e->SetPropertyValuesEx($ID_ORG,false,$arPROPS); |
Код |
---|
$arOrder = Array("ID"=>"ASC"); $arFilter = Array("IBLOCK_ID"=>$arParams["ORGS"],"PROPERTY_C_ID_BLMAP"=>$c_id); $arSelectFields = Array( "ID", "NAME", "PROPERTY_RUBRIK", ); $ListElements = CIBlockElement::GetList($arOrder, $arFilter, false, false, $arSelectFields); $org = $ListElements->Fetch(); |