{php}
$search=1;
{/php}
{include file="common/common"/}
{include file="common/top"/}
{include file="common/menu"/}
<style>
.iss_box{
    width: 100%;
    max-width: 1200px;
    margin: 60px auto;
}
.iss_tit{
    font-size:24px;
    font-weight:bold;
    color:#333;
    margin-bottom:20px;
}
.iss_nodata{
    padding:40px 0;
    font-size:16px;
    color:#666;
    text-align:center;
}
.iss_data{
    margin-bottom:30px;
}
.iss_data li{
    padding:20px 0;
    overflow:hidden;
    font-size:16px;
    border-bottom:solid 1px #e5e5e5;
}
.iss_data li a,
.iss_data li span{
    float:left;
    color:#333;
}
.iss_data li a{
    max-width:50%;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    transition:all .35s;
}
.iss_data li i{
    float:right;
    font-family:arial;
    color:#999;
}
.iss_data li a:hover{
    color:#3A8BFE;
}
@media screen and (max-width:767px){
    .iss_box{
        margin-top:20px;
        margin-bottom:30px;
    }
    .iss_tit{
        font-size:18px;
        margin-bottom:10px;
    }
    .iss_data{
        margin-bottom:20px;
    }
    .iss_data li{
        padding:15px 0;
        display:flex;
        flex-wrap:wrap;
        justify-content:space-between;
        align-items:center;
        font-size:14px;
    }
    .iss_data li a{
       max-width:none;
       white-space:pre-wrap;
       text-overflow:clip;
    }
    .iss_data li i{
        width:100%;
        margin-top:5px;
    }
    .iss_data li span{
        display:none;
    }
}
</style>
<div class="middle iss_box">
	<p class="iss_tit">Search Result</p>
    {php}
    //搜索关键词高亮
    function search_red($title,$keywords){
    $th="<font color=red>$keywords</font>";
    return str_replace($keywords,$th,$title);                             
    }

    {/php}
    
    {if empty($list)==true}
    <p class="iss_nodata">No search results</p>
    {/if}
    <ul class="iss_data">
    	{volist name="list" id="v"}
        <li><span>【{:cate($v['pid'])}】---</span><a href="{$v.url}" target="_blank">{:search_red($v['title'],$keywords)}</a><i><?php echo date('Y-m-d',strtotime($v['create_time']))?></i></li>
        {/volist}
    </ul>
    
    {$page|raw}
</div>

{include file="common/foot"/}
{include file="common/bottom"/}