{m:include "index","header"}

## “{$q}” 的搜索结果，共{$total}条

{loop $search_data $v} {php $v['color_title'] = str_ireplace($q, "$q", $v['title']);} {php $v['description'] = str_ireplace($q, "$q", $v['description']);}
{if strstr($v['flag'],'1')}顶{/if} {$v[color_title]}

{$v[description]}

{php $aid = $v['id'];} {m:get sql="SELECT id,tag FROM yzmcms_tag_content AS a LEFT JOIN yzmcms_tag AS b ON a.tagid=b.id WHERE aid=$aid" limit="5" return="tag_data"} {loop $tag_data $val} {$val[tag]} {/loop}
{/loop}
{$pages}

## 点击排行

{m:hits field="title,url,color,inputtime" modelid="1" limit="10" cache="3600"} {loop $data $k=>$v} {php $k=$k+1;}
- {$k}{date('m-d',$v['inputtime'])}{title_color($v['title'], $v['color'])}
{/loop}

## 最近更新

{m:lists field="title,url,color,inputtime" modelid="1" limit="10"} {loop $data $v}
- {date('m-d',$v['inputtime'])}{title_color($v['title'], $v['color'])}
{/loop}

PC+WAP+微信三站合一

YzmCMS开源CMS

{m:include "index","footer"}