搜索代码
<form action="[!--news.url--]e/search/index.php" method="post" name="searchform" id="searchform"> <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字词" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字词'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字词'}" type="text"> <input name="show" value="title" type="hidden"> <input name="tempid" value="1" type="hidden"> <input name="tbname" value="news" type="hidden"> <input name="Submit" class="input_submit" value="搜索" type="submit"> </form>
有多个模型的搜索代码
<div class="search"> <form action="[!--news.url--]e/search/index.php" method="post" name="searchform" id="searchform"> <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字词" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字词'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字词'}" type="text"> <input name="show" value="title" type="hidden"> <input name="tempid" value="1" type="hidden"> <select name="tbname"> <option value="article">杂志</option> <option value="news">文章</option> </select> <input name="Submit" class="input_submit" value="搜索" type="submit"> </form> </div>
全站搜索搜索代码
<div class="search"> <form action="[!--news.url--]e/sch/index.php" method="get" name="searchform" id="searchform"> <input name="keyboard" id="keyboard" class="input_text" value="请输入关键字词" style="color: rgb(153, 153, 153);" onfocus="if(value=='请输入关键字词'){this.style.color='#000';value=''}" onblur="if(value==''){this.style.color='#999';value='请输入关键字词'}" type="text"> <input name="show" value="title" type="hidden"> <input name="tempid" value="1" type="hidden"> <input name="tbname" value="news" type="hidden"> <input name="Submit" class="input_submit" value="搜索文章" type="submit"> </form> </div>
全站搜索搜索代码对应的模板是"公共模板"-“全站搜索模板”
<div class="weizhi">您当前的位置:系统搜索到约有<strong>[!--num--]</strong>项符合<strong>[!--keyboard--]</strong>的查询结果</div> <div class="news_search"> <h2>搜索结果</h2> <ul class="search_news"> [!--empirenews.listtemp--] <li>[!--no.num--]. <a href="[!--titleurl--]" target="_blank"> <h2>[!--title--]</h2> </a> <p class="search_text">[!--smalltext--]</p> <p class="search_info"><span>[!--titleurl--] - [!--newstime--]</span></p> </li> [!--empirenews.listtemp--] </ul> <div class="epages">[!--listpage--]</div> </div>
当前仅支持登录后发布评论