在搜索列表模板列表內容模板(list.var) (*)加上以下代碼
$searchid = $_GET['searchid'];
$search=$empire->fetch1("select keyboard from {$dbtbpre}enewssearch where searchid='$searchid' limit 1");
$keyboard = $search['keyboard'];
$title=str_replace($keyboard,"<font color='red'>$keyboard</font>",$r[title]);
$smalltext=str_replace($keyboard,"<font color='red'>$keyboard</font>",$r[smalltext]);
$listtemp='
<li><a href="[!--titleurl--]" title="[!--oldtitle--]" target="_blank">'.$title.'</a>
<div class="media-box-note">'.$smalltext.'</div></li>';
在使用程序代碼前打鉤,如下圖所示: