文章推荐
{get data=phList model=article fun=recList(0,12)} {foreach item=item from=$phList}
{$item.title}
{/foreach}
{get model=category data=catList fun=children(0,"article",1)}
栏目推荐
{foreach item=c key=k from=$catList}
{$c.cname}
{if $c.child} {foreach item=cc from=$c.child}
|--{$cc.cname}
{/foreach} {/if} {/foreach}
阅读排行
{get data=phList model=article fun=Dselect(array("limit"=>12,"where"=>"status=1","order"=>"view_num DESC"))} {foreach item=item from=$phList}
{$item.title}
{/foreach}
评论排行
{get data=phList model=article fun=Dselect(array("limit"=>12,"where"=>"status=1","order"=>"comment_num DESC"))} {foreach item=item from=$phList}
{$item.title}
{/foreach}