{include file="header.html"}

{assign var=scoreAry value=$model->execute("SELECT * FROM tc_flash where sid = 1 order by id desc limit 20",86400)} {foreach from=$scoreAry key=key item=val name=products}
{/foreach}

{assign var=scoreAry value=$model->execute("SELECT * FROM tc_flash where sid = 1 order by id desc limit 20",86400)} {foreach from=$scoreAry key=key item=val name=products}
{/foreach}

最新
更多 >>

{assign var=newtoday value=$model->query("select * from tc_news where photo != '' order by addtime desc limit 2")} {foreach from=$newtoday item=val name=products}

- ### {$val.title|truncate:24:'...':true}

  {$val.smallmemo|truncate:72:'...':true}
{/foreach}

{foreach from=$categoryAry item=categoryAry} {assign var=categoryId value=$categoryAry.id}
{$categoryObj->getCategoryNameById($categoryId)}
更多 >>
{assign var=value value=$model->execute("select id,title,smallmemo,photo,photo_s from tc_news where photo != '' AND isphoto=1 and classid in (SELECT id FROM tc_category WHERE classid = $categoryId or pid =$categoryId) order by id desc limit 1",86400)} {foreach from=$value item=val}

### {$val.title|truncate:13:"...":true}

{$val.smallmemo|truncate:40:"...":true}
{/foreach}

{assign var=values value=$model->execute("select id,title from tc_news where photo != '' AND classid in (SELECT id FROM tc_category WHERE classid = $categoryId or pid =$categoryId) order by id desc limit 7",86400)} {foreach from=$values item=v}
- {$v.title|truncate:50:"...":true}
{/foreach}

{/foreach}
专题
更多 >>

{assign var=special value=$model->execute("select id,title,content,photo,banner from tc_special order by addtime desc limit 5",86400)} {foreach from=$special item=v}

- ### {$v.title}

  {$v.content|truncate:22:"...":true}
{/foreach}

排行
更多 >>

{assign var=topnews value=$model->execute("select * from tc_news where yz = 1 and top=1 order by addtime desc limit 10",86400)} {foreach from=$topnews item=val key=key}
- {$key+1}
  {$val.title|truncate:50:"...":true}
{/foreach}

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