<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Каталог");
IncludeTemplateLangFile(__FILE__);
if (CModule::IncludeModule("iblock"))
/*
$arrPROPERTY_CODE = Array(
"PROIZV",
"KALL",
"ASS",
"KART",
);
$arrPROPERTY_CODE = (is_array($arrPROPERTY_CODE)) ? $arrPROPERTY_CODE : array();
*/
{
$arSelect = array(
"ID",
"NAME",
"PROPERTY_*"
);
$arFilter = Array("IBLOCK_ID"=>"37", "ACTIVE"=>"Y", "PROPERTY_8"=>$pr);
$res = CIBlockElement::GetList(Array("id"=>"ASC"), $arFilter, false, false, $arrSelect);
while($ar_fields = $res->GetNext())
{
$arProp = $ar_fields->GetProperties();
echo $ar_fields['NAME'];
echo "<br>";
echo $arProp["KART"]["VALUE"];
echo "<br>";
/* echo '<pre>';
// print_r ($ar_fields);
// echo '</pre>';*/
}
}
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");
?>
|