简介:无需修改代码!

list.var 支持代码打勾

 $searchid = (int)$_GET['searchid'];
$search=$empire->fetch1("select keyboard from {$dbtbpre}enewssearch where searchid='$searchid' limit 1");
$keyboard = $search['keyboard'];
$r[title]=str_replace($keyboard,"<font color='red'>$keyboard</font>",$r[title]);
$smalltext=str_replace($keyboard,"<font color='red'>$keyboard</font>",$r[smalltext]);
$listtemp='
<li>
<div class="media media-box media-x">
        <a href="[!–titleurl–]" title="[!–oldtitle–]" class="float-left" target="_blank">
                <img src="[!–titlepic–]" class="img-responsive" alt="[!–oldtitle–]">
        </a>
        <div class="media-body">
                <div class="media-box-title"><span>[!–no.num–].</span> <a class="fl" href="[!–this.classlink–]" target="_blank">【[!–this.classname–]】</a> <a href="[!–titleurl–]" title="[!–oldtitle–]" target="_blank">[!–title–]</a></div>
                <div class="media-box-meta"><span><i class="layui-icon layui-icon-face-smile"></i> [!–newstime–]</span><span class="author"><i class="layui-icon layui-icon-user"></i> [!–username–]</span><span class="pv"><i class="layui-icon layui-icon-reply-fill"></i> 阅读([!–onclick–])</span><span class="post-like"><i class="layui-icon layui-icon-praise"></i> 赞([!–diggtop–])</span></div>
                <div class="media-box-note">'.$smalltext.'</div>
        </div>
       
</div>
</li>
';

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。