<? global $USER, $APPLICATION;
if (CModule::IncludeModule("iblock")):
$arSelect = array(
"ID",
"IBLOCK_ID",
"IBLOCK_SECTION_ID",
"NAME",
"PREVIEW_TEXT",
"PREVIEW_TEXT_TYPE",
"PREVIEW_PICTURE",
"DETAIL_TEXT",
"DETAIL_TEXT_TYPE",
"DETAIL_PICTURE",
"DETAIL_PAGE_URL",
"SHOW_COUNTER"
);
$arrFilter["ACTIVE"] = "Y";
$arrFilter["ID"] = $_GET["ID"];
if ($rsElements_befor=GetIBlockElementList(59, false , array ("NAME"=>"DESC"),1,array("ACTIVE"=>"Y", "<ID"=>$_GET["ID"]))){
if ($obElement_befor = $rsElements_befor->GetNext()) $nav_befor='<a id="bxid_586705" href="detail.php?ID='.$obElement_befor[" >« Предыдущая</a>';}
if ($rsElements_after = GetIBlockElementList(59, false , array ("NAME"=>"ASC"),1,array("ACTIVE"=>"Y", "<ID"=>$_GET["ID"]))){
if ($obElement_after = $rsElements_after->GetNext()) $nav_after='<a id="bxid_955307" href="detail.php?ID='.$obElement_after[" >Следующая »</a>';}
CIBlockElement::CounterInc($_GET["ID"]);
if ($rsElements = GetIBlockElementListEx($IBLOCK_TYPE, $IBLOCK_ID, false, array("NAME"=>"ASC"), false, $arrFilter, $arSelect)):
if ($obElement = $rsElements->GetNextElement()):
$arElement = $obElement->GetFields();
$arProperty = $obElement->GetProperties();
$arElement = $obElement->GetFields();
$arProperty = $obElement->GetProperties();
?> |