{include file="head.html"}
{include file="header.html"}

{api data=t_c control=adapi fun=listbyno("index_flash",4)} {foreach item=c from=$t_c name=t1}
{/foreach}

热帖排行

{api data=tc control=forumapi fun=recommend(0,8)} {foreach item=c from=$tc}
- {$c.title|cutstr:42:..}
  {$c.nickname|cutstr:12}
{/foreach}

{get data=tc model=category fun=children(0,MODEL_FORUM_ID)} {foreach item=c key=k from=$tc} {if $k eq 1} {api data=t_c control=adapi fun=listbyno("forum_index_cat_banner",1)}
{/if}
{$c.cname}
{if $c.child} {foreach item=c from=$c.child}
{$c.cname}
{$c.description}
主题数：{$c.topic_num} 帖子数:{$c.comment_num}
{api data=tp control=forumapi fun=onlist("$c.catid",1)} {if $tp}{$tp[0].title|cutstr:33:...} {$tp[0].dateline|timeago} {$tp[0].nickname} {/if}
{/foreach} {/if}
{/foreach}
{include file="footer.html"}