<div id="header">
    <ul id="nav" class="common">
        <li class="nav_li {:empty($active) ? 'actived' : ''}" ><a href="{__BASE_URL__}">首页</a></li>
        <li class="nav_li_suf">|</li>
        <!--{foreach $nav $k $v}-->
        <li class="nav_li {$active == $v['code'] ? 'actived' : ''} ">
            <a href="{$v['url']}" title="{$v['name']}" {$v['target']} >{$v['name']}</a></li> 
        <li class="nav_li_suf">|</li>
        <!--{/foreach}-->
        <li class="clear"></li>
    </ul>
</div>
<div class="clear"></div>