ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯(lián)系官方銷(xiāo)售客服

1835022288

028-61286886

投訴 已解決 頁(yè)面中如何設(shè)置搜索為文章模塊的內(nèi)容呢搜索這段是用來(lái)執(zhí)行搜索的 2 0
模板標(biāo)簽里面

page頁(yè)面中如何設(shè)置搜索為文章模塊的內(nèi)容呢?

<div class="dx-form dx-form-group-inputs">
                    <input type="text" onkeypress="if(event.keyCode==13) {dr_module_search('search_keyword');return false;}" name='keyword' value='{$keyword}' id='search_keyword' class="form-control" placeholder="關(guān)鍵詞...">
                    <button onclick="dr_module_search('search_keyword')" type="button" class="dx-btn dx-btn-lg"> <i class="fa fa-search"></i> 搜索</button>
                </div>
            </div>
        </div>
		<script>
         // 這段js是用來(lái)執(zhí)行搜索的
        function dr_module_search(name) {
        var url="{Router::search_url($params, 'keyword', 'dayruicom')}";
        var value = $("#"+name).val();
        if (value) {
                                            location.href=url.replace('dayruicom', value);
                                        } else {
                                            $("#"+name).focus()
                                            dr_tips(0, "輸入關(guān)鍵字");
                                        }
                                        return false;
                                    }
        </script>


模板文件:page.html

解決方案