“栏目模型字段” 搜索字段出不来,如何写才能匹配

迅睿框架 更新 2020-05-18 02:05:19 迅睿粉丝

“栏目模型字段”新建了“文本字段” 默认的模块搜索字段出不来,如何写才能匹配

              <input class="input" onkeypress="if(event.keyCode==13) {dr_module_search('search_keyword');return false;}" name='keyword' value='{$keyword}' id='search_keyword' placeholder="此处输入查询的标准名称(标准号)" type="text"  />
 
            <button type="button"   onclick="dr_module_search('search_keyword')"  >提交查询</button>
 
          <script>
                                    // 这段js是用来执行搜索的
                                    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, "输入关键字");
                                        }
                                        return false;
                                    }
        </script>

            


image
image

方案

迅睿系统漏洞

站群分站系统
站群分站系统(2026-10-15)
子站域名新增llms.txt访问
GEO系统
GEO系统(2026-10-14)
修复下载zip空白地址问题 修复流量复刻和任务队列错误
GeoSeo收录宝
GeoSeo收录宝(2026-10-14)
新增 站长工具箱 前端首页自动调用meta 数据
滑块验证码 Gocaptcha
滑块验证码 Gocaptcha(2026-10-13)
基于开源项目 go-captcha 的行为验证码插件,滑动拼图、区域...
GeoSeo工具箱
GeoSeo工具箱(2026-10-13)
优化巡检任务
GeoSeo排名助手
GeoSeo排名助手(2026-10-11)
加入大模型自定义
SEO聚合关键字
SEO聚合关键字(2026-10-11)
优化关键字列表页最多支持1万篇文章,过多会导致服务器扛不住;
CMS内容同步复制
CMS内容同步复制(2026-10-10)
增加时间是否更新的开关