<div class="panel-heading"> {:build_heading(null,FALSE)} <ul class="nav nav-tabs" data-field="{%field%}"> <li class="{:$Think.get.{%field%} === null ? 'active' : ''}"><a href="#t-all" data-value="" data-toggle="tab">{:__('All')}</a></li> {foreach name="{%fieldName%}List" item="vo"} <li class="{:$Think.get.{%field%} === (string)$key ? 'active' : ''}"><a href="#t-{$key}" data-value="{$key}" data-toggle="tab">{$vo}</a></li> {/foreach} </ul> </div>