{include file="header.html"}
首页> 文章中心> {if $smarty.get.classid neq ''} {$categoryObj->getCategoryNameById($smarty.get.classid)} {else /}文章中心{/if}

#### {if $smarty.get.classid neq ''} {$categoryObj->getCategoryNameById($smarty.get.classid)}{else /}文章中心{/if}

{assign var=category_id value=$smarty.get.classid} {assign var=count_num value=$model->execute("SELECT count(*) as count_num FROM tc_news WHERE classid = $category_id ",86400)} 共{$count_num[0].count_num}篇文章

{foreach from=$objAry key=key item=v}
- {$v.title}

  标签:{$v.post_key|default:"文章"} 作者 {$userObj->getName($v.uid)|default:'无名氏'} {$v.addtime|date} {$v.hits} {$v.reply_num}

  发布时间：{$v.addtime|date}

{/foreach}

{$Obj->pagenav}

#### 更多分类

{assign var=group value=$model->execute("SELECT * FROM tc_category WHERE mid = 1 ORDER BY rank DESC LIMIT 12",86400)} {foreach from=$group item=val}
- {$val.name}
{/foreach}

#### 相关文章

{assign var=relatedNews value=$model->execute("select * from tc_news where classid = $category_id order by hits LIMIT 10",86400)}
- 1{$relatedNews[0].title}
- 2{$relatedNews[1].title}
- 3{$relatedNews[2].title}
{foreach from=$relatedNews item=val key=key} {if $key gt 2}
- {$key+1}{$val.title}
{/if} {/foreach}

{include file="footer.html"} {literal}
{/literal}