<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<?
$NUM_COLS = 3;
$CURRENT_DEPTH=0; //$arResult["SECTION"]["DEPTH_LEVEL"]+1;
foreach($arResult['CAT'] as $arSection):
$bHasPicture = is_array($arSection['PICTURE']);
$bHasChildren = is_array($arSection['CHILDREN']) && count($arSection['CHILDREN']) > 0;
?>
<?if ($bHasChildren):?>
<div id="catalog_oil">
<table cellspacing="0" border="0" width="100%">
<?
$cell = 0;
foreach ($arSection['CHILDREN'] as $key => $arChild):
if ($cell == 0):
?>
<tr>
<?
endif;
$cell++;
?>
<td align="center">
<br>
<div style="background: #E9E9E9; width:200px; height:166px;"></div>
<div style="height:5px;"></div>
<a href="<?=$arChild["SECTION_PAGE_URL"]?>">
<?=$arChild['NAME']?></a>
</td>
<?
if ($cell == $NUM_COLS):
$cell = 0;
?>
</tr>
<?
endif;
endforeach;
if ($cell > 0):
while ($cell++ < $NUM_COLS):
?>
<td></td>
<?
endwhile;
?>
</tr>
<?
endif;
?>
</table>
</div>
<?
endif;
?>
<div class="catalog-section-separator"></div>
<?endforeach;?>
</div>
|