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

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

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

{$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"} {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"}