Код |
---|
$oldkey = false; foreach ($arResult as $key => $arItem) { $arItem['PARAMS']['PREV'] = false; if (($arItem['SELECTED']) && (false !== $oldkey)) { $arResult[$oldkey]['PARAMS']['PREV'] = true; } $arResult[$key] = $arItem; $oldkey = $key; } |
Код |
---|
if (true == $arItem['PARAMS']['PREV']) { ?><li class="prev"><? } else { ?><li><? } |