{include file='index@common/header' /}
{include file='common/side' /}

搜索


{notempty name='q'}
{php} $where = [ 'status' => 1, 'title|keywords|description' => ['like', '%' . $q . '%'] ]; $lists = \app\content\model\Content::where($where) -> cache(60) -> paginate(5, false, ['query' => ['q' => $q]]); {/php} {notempty name='lists'}
{foreach name='lists' item='vo'}

{:str_replace([$q],[''.$q.''],$vo['shorttitle'])}

{:str_replace([$q],[''.$q.''],$vo['description'])}

{/foreach}
{$lists -> render()} {else/}
没有搜索到与 " {$q} " 相关的结果
{/notempty} {/notempty}
{include file='index@common/footer' /}