企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
# 网站信息 新增条目方法 ## 1、找到模板文件增加条目代码 模板文件目录 `/admin/themes/simplebootx/Admin/Setting/site.html` 增加的代码 ``` <div class="control-group"> <label class="control-label">公安机关备案</label> <div class="controls"> <input type="text" name="options[site_police]" value="{$site_police}"> <a href="http://www.beian.gov.cn/portal/index" target="_blank"> 公安备案网址</a> </div> </div> ``` ## 2、后台方法会自动把新增的字段加到数据库里 打开 `/application/Admin/Controller/SettingController.class.php` 文件 ![](https://box.kancloud.cn/2016-08-21_57b9c0003195e.jpg) ## 3、打开数据表new_options 数据库最终格式如下 ``` {"site_name":"\u535a\u5eb7\u5149\u5927\u667a\u80fd\u8bbe\u5907","site_host":"http:\/\/127.0.0.1\/","site_tpl":"new","site_adminstyle":"bluesky","site_icp":"\u4eacICP\u590712036813\u53f7-4","site_police":"\u4eac\u516c\u7f51\u5b89\u590711010802014104\u53f7","site_admin_email":"qq@qq.com","site_tongji":"2","site_copyright":"\u00a9 2016 \u535a\u5eb7\u5149\u5927 \u7248\u6743\u6240\u6709","site_seo_title":"\u535a\u5eb7\u5149\u5927","site_seo_keywords":"\u535a\u5eb7\u5149\u5927","site_seo_description":"\u535a\u5eb7\u5149\u5927","urlmode":"0","html_suffix":"","comment_time_interval":60} ```