Бренды:
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Бренды");
$APPLICATION->SetAdditionalCSS("/css/service.css");
?><?
$ServiceIBlockID = 5;
$CurrentSectionID = false;
CModule::IncludeModule("iblock");
if($_REQUEST['sid']) {
$CurrentSectionID = IntVal($_REQUEST['sid']);
$CurrentSection = GetIBlockSection($CurrentSectionID);
} elseif($_REQUEST['scode']) {
$list = CIBlockSection::GetList(array(), array("CODE"=>$_REQUEST['scode']));
$CurrentSection = $list->GetNext();
$CurrentSectionID = $CurrentSection['ID'];
}
CModule::IncludeModule("iblock");
if($_REQUEST['eid']) {
$CurrentElementID = IntVal($_REQUEST['eid']);
$Item = GetIBlockElement($CurrentElementID);
} elseif($_REQUEST['ecode']) {
$list = CIBlockElement::GetList(array(), array("SECTION_ID"=>$CurrentSectionID, "CODE" => $_REQUEST['ecode']));
$Item = $list->GetNext();
}
$APPLICATION->AddChainItem($CurrentSection['NAME'], '/brands/'.($CurrentSection['CODE']?$CurrentSection['CODE']:$CurrentSection['ID']).'/');
if($Item)
{
$APPLICATION->SetTitle($Item['NAME']);
?>
<div class="svc_w100proH">
<div class="service"><?=$Item['DETAIL_TEXT']?></div>
<a href="/brands/<?=(($CurrentSection['CODE']?$CurrentSection['CODE']:$CurrentSection['ID']))?>/" >< назад</a>
</div>
<?
}
?> <?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>
Я так понял далее этот компонент выводит серии в брендах в виде списка:
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/header.php");
$APPLICATION->SetTitle("Бренды");
$APPLICATION->SetAdditionalCSS("/css/service.css");
?>
<?
$ServiceIBlockID = 5;
$CurrentSectionID = false;
$CurrentSectionCode = false;
if($_REQUEST['sid']) $CurrentSectionID = IntVal($_REQUEST['sid']);
if($_REQUEST['scode']) $CurrentSectionCode = $_REQUEST['scode'];
set_keywords_and_description_from_propertys($ServiceIBlockID, $CurrentSectionID);
CModule::IncludeModule("iblock");
if($CurrentSectionID) {
$CurrentSection = GetIBlockSection($CurrentSectionID);
$CurrentSectionCode = $CurrentSection['CODE'];
} else {
$list = CIBlockSection::GetList(array(), array("CODE"=>$CurrentSectionCode));
$CurrentSection = $list->GetNext();
$CurrentSectionID = $CurrentSection['ID'];
}
$APPLICATION->AddChainItem($CurrentSection['NAME']);
$APPLICATION->SetTitle($CurrentSection['NAME']);
?>
<div class="svc_full">
<!--<h1 class="service"><?=$CurrentSection['NAME']?></h1>-->
<?=$CurrentSection['DESCRIPTION']?>
</div>
<?
$items = GetIBlockElementList($ServiceIBlockID, $CurrentSectionID);
while($arItem = $items->GetNext())
{
?>
<div class="svc_w100proH">
<?if(IntVal($arItem['PREVIEW_PICTURE']) > 0):?>
<a href="/brands/<?=$CurrentSectionCode;?>/<?=(($arItem['CODE'])?$arItem['CODE']:$arItem['ID'])?>/"><img src="<?=CFile::GetPath($arItem['PREVIEW_PICTURE']);?>" class="service" /></a>
<?endif;?>
<div style="margin-left: 100px;">
<h2 class="service"><a class="gray" href="/brands/<?=$CurrentSectionCode;?>/<?=(($arItem['CODE'])?$arItem['CODE']:$arItem['ID'])?>/"><?=$arItem['NAME']?></a></h2>
<div class="service"><?=$arItem['PREVIEW_TEXT']?></div>
</div>
</div>
<?
}
?>
<a href="/brands/" >< назад</a>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/footer.php");?>