<?
if (!defined("B_PROLOG_INCLUDED") || B_PROLOG_INCLUDED!==true)die();
if (empty($arResult))return;
?>
<ul class="second-menu"> <?
$previousLevel = 0;
$firstRoot = false;
foreach($arResult as $itemIdex => $arItem):?> <?if ($previousLevel && $arItem["DEPTH_LEVEL"] < $previousLevel):?> <?=str_repeat("</ul></div></li>", ($previousLevel - $arItem["DEPTH_LEVEL"]));?> <?endif?> <?if ($arItem["IS_PARENT"]):
$countSub=0;?> <?if ($arItem["DEPTH_LEVEL"] == 1):?> <?if ($arItem["SELECTED"]):?></ul>
|