<?if(!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();?>
<div style=" text-align:left; width:1000px; height:238px; " >
<table border="0" cellpadding="10">
<tr>
<? $i=0; ?>
<?
$CURRENT_DEPTH=$arResult["SECTION"]["DEPTH_LEVEL"]+1;
foreach($arResult["SECTIONS"] as $arSection):
if($CURRENT_DEPTH<$arSection["DEPTH_LEVEL"])
echo "<ul>";
elseif($CURRENT_DEPTH>$arSection["DEPTH_LEVEL"])
echo str_repeat("</ul>", $CURRENT_DEPTH - $arSection["DEPTH_LEVEL"]);
$CURRENT_DEPTH = $arSection["DEPTH_LEVEL"];
?>
<? $i=$i+1;
if ($i<=11):
if ($i==1): ?>
<td width="330">
<?endif;?>
<div> <li><a style="text-decoration:none; font-size:10px; color:#000; " href="<?=$arSection["SECTION_PAGE_URL"]?>"><?=$arSection["NAME"]?><?if($arParams["COUNT_ELEMENTS"]):?> (<?=$arSection["ELEMENT_CNT"]?>)<?endif;?></a></li></div>
<? elseif ($i>11 && $i<=22):
if ($i==12): ?>
</td><td width="330">
<?endif;?>
<div><li><a style="text-decoration:none; font-size:10px; color:#000; " href="<?=$arSection["SECTION_PAGE_URL"]?>"><?=$arSection["NAME"]?><?if($arParams["COUNT_ELEMENTS"]):?> (<?=$arSection["ELEMENT_CNT"]?>)<?endif;?></a></li></div>
<? elseif ($i>22 && $i<=33): ?>
<? if ($i==23): ?>
</td><td width="330">
<?endif;?>
<div><li><a style="text-decoration:none; font-size:10px; color:#000; " href="<?=$arSection["SECTION_PAGE_URL"]?>"><?=$arSection["NAME"]?><?if($arParams["COUNT_ELEMENTS"]):?> (<?=$arSection["ELEMENT_CNT"]?>)<?endif;?></a></li></div>
<?endif;?>
<?endforeach;?>
</td>
</tr>
</table>
</div> |