联系官方销售客服
1835022288
028-61286886
使用搜索代码搜索内容后,分页出错。(没有开静态功能)
搜索代码(前端首页):
<form id="search_box" action="/index.php" method="get"> <input type="hidden" name="s" value="news"> <input type="hidden" name="c" value="search"> <input type="text" id="search_cl" name="keyword" class="fc-search-keyword form-control" onblur="if(this.value==''){this.value='请输入关键字';}" onfocus="if(this.value=='请输入关键字'){this.value='';}" value="请输入关键字" /> <input type="image" src="{THEME_PATH}img/sousuo.png" width="30" height="30" id="search_go" alt="输入关键字" /> <script> // 这段js是用来执行搜索的(跟原版一样无修改) </script> </form>
显示页代码:
<div class="content-wenleftt"> <div class="wrapperr"> <div> <div class="news-boxx"> {search module=MOD_DIR id=$searchid total=$sototal order=$params.order catid=$catid page=1 pagesize=10 urlrule=$urlrule} <ul class="news-listt"> <li> <div class="img-boxx"> <a target="_blank" href="{$t.url}"><img src="{dr_thumb($t.thumb)}" width="320" height="240"></a> </div> <div class="txt-boxx"> <h33> <a target="_blank" href="{$t.url}">{$t.title}</a> </h33> <p class="txt-infoo">{$t.description}</p> <div class="s-pp"><a href="{dr_cat_value($t.catid, 'url')}">{dr_cat_value($t.catid, 'name')}</a> {$t.updatetime}</div> </div> </li> </ul> {/search}<div class="p-fyy">{$pages}</div> </div> {if !$count} <div class="col-md-12 page-404"> <div class="number font-green"> 错 误 </div> <div class="details"> <br /> <h3>没有找到相关内容...</h3> <br /> <p><a href="{SITE_URL}">返回首页</a></p> </div> </div> {/if}</div> </div> </div>
其他页面,如文章等,分页