PbootCMS想要實現多條件搜索要怎么操作呢?
簡單搜索代碼示例(只通過關鍵詞進行搜索)
<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}
【網站聲明】本站除付費源碼經過測試外,其他素材未做測試,不保證完整性,網站上部分源碼僅限學習交流,請勿用于商業用途。如損害你的權益請聯系客服QQ:2655101040 給予處理,謝謝支持。