{m:search field="id,catid,title,updatetime,thumb,url,color,flag,description" keyword="$q" siteid="$siteid" modelid="$modelid" limit="10" page="page"}
<div class="yzm-title">
<h2>“{$q}” 的搜索结果,共{php echo $tag->total}条</h2>
</div>
{loop $data $v}
{php $v['color_title'] = str_ireplace($q, "<span style='color:red;'>$q</span>", $v['title']);}
{php $v['description'] = str_ireplace($q, "<span style='color:red;'>$q</span>", $v['description']);}
<div class="yzm-news">
<a href="{$v[url]}" class="yzm-news-img">
<img src="{get_thumb($v['thumb'])}" alt="{$v[title]}" title="{$v[title]}" />
</a>
<div class="yzm-news-right">
{if strstr($v['flag'],'1')}<em>顶</em>{/if}
<!-- 内容属性 -->
<a href="{$v[url]}">{$v[color_title]}</a>
<p>{$v[description]}</p>
<div class="yzm-news-tags">
{php $tag_data = content_list_tag($v['catid'], $v['id']);}
{loop $tag_data $val}
<a href="{tag_url($val['id'])}" target="_blank">{$val[tag]}</a>
{/loop}
</div>
</div>
</div>
{/loop}
<div id="page">{$pages}</div> |