PbootCMS想要實現(xiàn)多條件搜索要怎么操作呢?
簡單搜索代碼示例(只通過關鍵詞進行搜索)
<form action="{pboot:scaction}" method="get">
關鍵字:<input type="text" name="keyword" >
<button type="submit">搜索</button>
</form>
多條件搜索代碼示例:
可以通過隱藏字段,指定搜索的欄目
<form action="{pboot:scaction}" method="get">
內(nèi)容:<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>
搜索結(jié)果列表
{pboot:search}
<a href="search:link">search:title</a>
{/pboot:search}
【網(wǎng)站聲明】本站除付費源碼經(jīng)過測試外,其他素材未做測試,不保證完整性,網(wǎng)站上部分源碼僅限學習交流,請勿用于商業(yè)用途。如損害你的權(quán)益請聯(lián)系客服QQ:2655101040 給予處理,謝謝支持。