<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div class="catalog-sections-top">
<?foreach($arResult["SECTIONS"] as $arSection):?>
<p><a href="<?=$arSection["SECTION_PAGE_URL"]?>"><?=$arSection["NAME"]?></a></p>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<?
$cell = 0;
foreach($arSection["ITEMS"] as $arElement):
?>
<td valign="top" width="<?=round(100/$arParams["LINE_ELEMENT_COUNT"])?>%">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td valign="top">
<?if(is_array($arElement["PREVIEW_PICTURE"])):?>
<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><img border="0" src="<?=$arElement["PREVIEW_PICTURE"]["SRC"]?>" width="<?=$arElement["PREVIEW_PICTURE"]["WIDTH"]?>" height="<?=$arElement["PREVIEW_PICTURE"]["HEIGHT"]?>" alt="<?=$arElement["PREVIEW_PICTURE"]["ALT"]?>" title="<?=$arElement["NAME"]?>" /></a><br />
<?elseif(is_array($arElement["DETAIL_PICTURE"])):?>
<a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><img border="0" src="<?=$arElement["DETAIL_PICTURE"]["SRC"]?>" width="<?=$arElement["DETAIL_PICTURE"]["WIDTH"]?>" height="<?=$arElement["DETAIL_PICTURE"]["HEIGHT"]?>" alt="<?=$arElement["DETAIL_PICTURE"]["ALT"]?>" title="<?=$arElement["NAME"]?>" /></a><br />
<?endif?>
</td>
<td valign="top"><a href="<?=$arElement["DETAIL_PAGE_URL"]?>"><?=$arElement["NAME"]?></a><br />
<?foreach($arElement["DISPLAY_PROPERTIES"] as $pid=>$arProperty):?>
<small><?=$arProperty["NAME"]?>: <?
if(is_array($arProperty["DISPLAY_VALUE"]))
echo implode(" / ", $arProperty["DISPLAY_VALUE"]);
else
echo $arProperty["DISPLAY_VALUE"];?></small><br />
<?endforeach?>
<br />
<?=$arElement["PREVIEW_TEXT"]?>
</td>
</tr>
</table>
<?foreach($arElement["PRICES"] as $code=>$arPrice):?>
<?if($arPrice["CAN_ACCESS"]):?>
<p><?=$arResult["PRICES"][$code]["TITLE"];?>:
<?if($arPrice["DISCOUNT_VALUE"] < $arPrice["VALUE"]):?>
<s><?=$arPrice["PRINT_VALUE"]?></s> <span class="catalog-price"><?=$arPrice["PRINT_DISCOUNT_VALUE"]?></span>
<?else:?>
<span class="catalog-price"><?=$arPrice["PRINT_VALUE"]?></span>
<?endif?>
</p>
<?endif;?>
<?endforeach;?>
<?if(is_array($arElement["PRICE_MATRIX"])):?>
<table cellpadding="0" cellspacing="0" border="0" width="100%" class="data-table">
<thead>
&nbs |