
AB模板網(www.tbwwir.cn)專注企業網站模板制作,包括企業pbootcms網站模板,靜態網頁模板,網站源碼下載,HTML網站模板等等。XML地圖 網站地圖 今日更新
免責聲明:本站所有資源(模板、圖片)搜集整理于互聯網或者網友提供,僅供學習與交流使用,如果不小心侵犯到你的權益,請及時聯系我們刪除該資源。
1、數據庫中有內容而頁面提示 未搜索到任何數據
解決方案:
在前半部分添加一個標簽 scode=*
代表搜索所有欄目內容
{pboot:search num=12 order=sorting scode=* field='title|content'} {/pboot:search} |
<form action="{pboot:scaction}" method="get"> 關鍵字:<input type="text" name="keyword" > <button type="submit">搜索</button> </form> |
多條件搜索代碼示例
可以通過隱藏字段,指定搜索的欄目
<form action="{pboot:scaction}" method="get"> 內容:<input type="text" name="content" > 標題:<input type="text" name="title" > 作者:<input type="text" name="author" > <input type="hidden" name="scode" value="2,3" > <button type="submit">搜索</button> </form> |
{pboot:search} <a href="search:link">search:title</a> {/pboot:search} |