网站模板中心

您现在的位置:首页>>PbootCMS教程>>使用教程

PbootCMS多条件搜索怎么写

来源:本站 编辑:超级管理员 发布时间:2022-10-16热度:205 ℃
PbootCMS想要实现多条件搜索要怎么操作呢?简单搜索代码示例(只通过关键词进行搜索)<form action="{pboot:scaction}" method="get"> 关键字:<input type="text" name="keyword" > <button type="submit"...
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}
 
Pbootcms问题解决

请点击在线联系我们【点击咨询解决问题】   如果您有任何Pbootcms问题,我们将免费为您写解决教程!

    PB模板网:承接仿站业务,价格200元起!