diff --git a/application/admin/controller/Config.php b/application/admin/controller/Config.php index b90492a82..3e5b6421a 100644 --- a/application/admin/controller/Config.php +++ b/application/admin/controller/Config.php @@ -30,4 +30,18 @@ class Config extends BasicAdmin { } } + public function file() { + if (!$this->request->isPost()) { + $this->title = '文件存储配置'; + parent::_list($this->table); + } else { + $data = $this->request->post(); + foreach ($data as $key => $vo) { + $_data = ['name' => $key, 'value' => $vo]; + Data::save($this->table, $_data, 'name'); + } + $this->success('数据修改成功!', ''); + } + } + } diff --git a/application/admin/view/config.file.html b/application/admin/view/config.file.html new file mode 100644 index 000000000..1fae75e83 --- /dev/null +++ b/application/admin/view/config.file.html @@ -0,0 +1,126 @@ +{extend name="extra@admin/content"} + +{block name="content"} +
+
+
+
+ 网站信息 +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+
+
+ +
+
+
+
+ +
+
+
+ 其它参数 +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+ +
+ + +
+
+ 建议LOGO图片的尺寸为160x56px,此LOGO图片用于后台登陆页面。 +
+
+
+ +
+ + +
+
+ 建议上传ICO图标的尺寸为128x128px,此图标用于网站标题前,ICON在线制作。 +
+
+
+ +
+
+
+ + +
+ + + +{/block} \ No newline at end of file