代码语言:javascript复制
{assign var="i" value=0}
{foreach name=simple_tab from=$zhinan_cate key=key item=item}
{if $i}
<small>|</small>
{/if}
{if $item['count']}
{math assign="i" equation="x y" x=$i y=1}
<span><a title="{$segment_parent}期{$item['title']}" href="{$base_url}pinpaizhinan&t_id={$item['id']}"></a>{$segment_parent}期{$item['title']}</span>
{else}
{assign var="i" value=0}
{/if}
{/foreach}