<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$arIBlockID = array(7,12,13);
$arSelect = array();
if (CModule::IncludeModule("iblock"))
{
$rsElements = CIBlockElement::GetList (array('TIMESTAMP_X' => 'DESC'), array('!PROPERTY_ARCHIVE_VALUE'=> 1, 'IBLOCK_ID' => $arIBlockID), false, Array("nPageSize"=>4), $arSelect);
while ($arElement = $rsElements ->GetNext())
{
$arElement['PREVIEW_PICTURE'] = CFile::GetFileArray($arElement['PREVIEW_PICTURE']);
$arResult['ITEMS'][] = $arElement;
}
}
foreach ($arResult['ITEMS'] as $arItem)
{
echo $arItem['NAME'].'<br>';
echo $arItem['PREVIEW_TEXT'];?>
}
$APPLICATION->IncludeComponent("siemens:system.pagenavigationmain", "pager", Array(
"NAV_RESULT" => $rsElements,
"SHOW_ALWAYS" => false,
"TEXT" => "",
"QUERY" => ""
)
);
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
|