Код |
---|
foreach ($arResult["ELEMENTS"] as $arElement) { $ELEMENT_ID = $arElement["ID"]; $aFilter = Array("IBLOCK_ID"=>23,"ID"=>$ELEMENT_ID); $aSelect = Array("PROPERTY_87.NAME", "PROPERTY_87.PROPERTY_81"); $db_VALUE = CIBlockElement::GetList(Array(), $aFilter, false, false, $aSelect); $a=$db_VALUE->Fetch(); $arResult["prop99"] = $a["PROPERTY_87_NAME"].$a["PROPERTY_87_PROPERTY_81_VALUE"]; |
Код |
---|
<?if (count($arResult["ELEMENTS"]) > 0):?> <?foreach ($arResult["ELEMENTS"] as $arElement):?> <tr> <td>ID_<?=$arElement["ID"]?></td> <td><?=$arElement["DATE_ACTIVE_FROM"]?></td> <td><?=$arElement["SHOW_COUNTER"]?></td> <td><?=$arElement["ACTIVE"]?></td> |
Код |
---|
foreach ($arResult["ELEMENTS"] as $arElement) { $ELEMENT_ID = $arElement["ID"]; $aFilter = Array("IBLOCK_ID"=>23,"ID"=>$ELEMENT_ID); $aSelect = Array("PROPERTY_87.NAME", "PROPERTY_87.PROPERTY_81"); $db_VALUE = CIBlockElement::GetList(Array(), $aFilter, false, false, $aSelect); $a=$db_VALUE->Fetch(); $arResult["prop99"] = $a["PROPERTY_87_NAME"].$a["PROPERTY_87_PROPERTY_81_VALUE"]; |
Код |
---|
<td><?=$arResult["prop99"]?></td> |
Код |
---|
foreach ($arResult["ELEMENTS"] as $arElement) |
Код |
---|
$arResult["prop99"] = $a["PROPERTY_87_NAME"].$a["PROPERTY_87_PROPERTY_81_VALUE"]; |
Код |
---|
$arResult[$ELEMENT_ID]["prop99"] = $a["PROPERTY_87_NAME"].$a["PROPERTY_87_PROPERTY_81_VALUE"]; |