destoon循环后结果指定不同样式
给指定的标签元素不一样的样式
<ul>
{php $mainarea = get_mainarea(0)}
{loop $mainarea $k $v}
{if in_array($v[areaid], array(1,2,3,4,6,7,9,10,11,12,19,24,))}
<li {if $k == 3} class=”pnobor”{/if} {if $k == 9} class=”pnobor”{/if} {if $k == 19} class=”pnobor”{/if} ><a href=”{$MODULE[5][linkurl]}{$MOD[linkurl]}{rewrite(‘search.php?areaid=‘.$v[‘areaid‘].‘&typeid=‘.$typeid)}” target=”_blank”>{$v[areaname]}</a></li>
{/if}
{/loop}
</ul>