> 搜索表单(模板:search.html)
```
<form method="get" name="search" action="{:url('cms/index/search')}">
<input id="modelid" name="modelid" value="0" type\="hidden">
<input class="inp_srh" name="keyword" placeholder="请输入搜索关键词">
<input class="btn_srh" type="submit" value="搜索">
</form>
```
> 搜索列表结果页 (模板:search_result.html)
```
<div class="search_result"><span>获得约{$count}条结果 (用时{$search\_time} 秒)</span></div>
```
> 按时间搜索
```
<a href="?keyword={$keyword}&modelid={$modelid}&time=" class="list-group-item_gr {empty name="time"}active{/empty}">全部时间</a>
<a href="?keyword={$keyword}&modelid={$modelid}&time=day" class="list-group-item_gr {empty name="time" value="day"}active{/empty}">一天内</a>
<a href="?keyword={$keyword}&modelid={$modelid}&time=week" class="list-group-item_gr {empty name="time" value="week"}active{/empty}">一周内</a>
<a href="?keyword={$keyword}&modelid={$modelid}&time=month" class="list-group-item_gr {empty name="time" value="month"}active{/empty}">一月内</a>
<a href="?keyword={$keyword}&modelid={$modelid}&time=year" class="list-group-item_gr {empty name="time" value="year"}active{/empty}">一年内</a>
```
> 搜索历史
```
{volist name="shistory" id="vo"}
<a href="?keyword={$vo}" class="list-group-item_gr" title="{$vo}">{$vo}</a>
{/volist}
```
> 搜索结果列表
```
<!--S 结果搜索的关键词高亮显示 -->
{volist name="list" id="vo" empty="暂时没有数据"}
<a href\="{$vo.url}" title\="{$vo.title}"><img class\="fl" src\="https://via.placeholder.com/168x126" alt\="{$vo.title}">
{$vo.title|str_cut=###,60|str_ireplace=$keyword,"<font style='color:red'>$keyword</font>",###|raw}
</a>
{/volist}
<!--S 分页 -->
{$pages|raw}
```