<table cellspacing="0" class="catalog-section-childs">
<?
$cell = 0;
foreach ($arSection['CHILDREN'] as $key => $arChild):
if ($cell == 0):?>
<tr>
<?
endif;
$cell++;?>
<?
//var_dump($arParams);
$ID = $arChild['ID'];
$pict = 0;
if ($arParams['SHOW_PICTURES']=='Y'){
$sec = GetIBlockSection($ID);
// var_dump($sec);
$pict = $arChild['PICTURE']['ID'];
// var_dump($arChild);
}
?>
<td>
<a href="<?=$arChild["SECTION_PAGE_URL"]?>"><?
// var_dump($sec);
if ($pict>0){
echo CFile::ShowImage($pict, 200, 200, "border=0", "", false);
}
?><?=$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> |