mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
更新配置模块
This commit is contained in:
parent
bd5649b4ab
commit
cfa42e7d46
@ -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('数据修改成功!', '');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
126
application/admin/view/config.file.html
Normal file
126
application/admin/view/config.file.html
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
{extend name="extra@admin/content"}
|
||||||
|
|
||||||
|
{block name="content"}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<form class=" layui-form" data-auto="" method="post">
|
||||||
|
<fieldset class="layui-elem-field layui-box">
|
||||||
|
<legend>网站信息</legend>
|
||||||
|
<div class="layui-field-box" style="padding-right:35px">
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站标题</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_name" required="required" title="请输入网站标题" placeholder="请输入网站标题" value="{:sysconf('site_name')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站域名</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_domain" required="required" title="请输入网站域名" placeholder="请输入网站域名" value="{:sysconf('site_domain')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站版权</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_copy" required="required" title="请输入网站版权" placeholder="请输入网站版权" value="{:sysconf('site_copy')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站备案号</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_beian" title="请输入网站备案号" placeholder="请输入网站备案号" value="{:sysconf('site_beian')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站关键字</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_keys" title="请输入SEO关键字" placeholder="请输入关键字,多个以英文逗号隔开" value="{:sysconf('site_keys')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站描述</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<textarea name="site_desc" placeholder="请输入网站描述" class="layui-textarea">{:sysconf('site_desc')}</textarea>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item layui-box text-center">
|
||||||
|
<button class="layui-btn" type="submit">立即提交</button>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-lg-6">
|
||||||
|
<form class=" layui-form" data-auto="" method="post">
|
||||||
|
<fieldset class="layui-elem-field layui-box">
|
||||||
|
<legend>其它参数</legend>
|
||||||
|
<div class="layui-field-box" style="padding-right:35px">
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">系统名称</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="app_name" required="required" title="请输入系统名称" placeholder="请输入系统名称" value="{:sysconf('app_name')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">系统版本</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="app_version" required="required" title="请输入网站域名" placeholder="请输入网站域名" value="{:sysconf('app_version')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">百度统计ID</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_tongji_baidu" title="请输入公司名称" placeholder="请输入百度统计ID" value="{:sysconf('site_tongji_baidu')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">CNZZ统计ID</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<input type="text" name="site_tongji_cnzz" placeholder="请输入CNZZ统计ID" value="{:sysconf('site_tongji_cnzz')}" class="layui-input">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">网站Logo</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px" src="{:sysconf('site_logo')}"/>
|
||||||
|
<input type="text" name="site_logo" required="required" title="请输入公司名称" placeholder="请输入公司名称" value="{:sysconf('site_logo')}" class="layui-input hide">
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">
|
||||||
|
建议LOGO图片的尺寸为160x56px,此LOGO图片用于后台登陆页面。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item layui-box">
|
||||||
|
<label class="layui-form-label">浏览器图标</label>
|
||||||
|
<div class="layui-input-block">
|
||||||
|
<img data-tips-image="" style="height:auto;max-height:32px;min-width:32px"
|
||||||
|
src="{:sysconf('app_logo')}"/>
|
||||||
|
<input type="text" name="app_logo" title="请输入公司名称" placeholder="请输入百度统计ID" value="{:sysconf('app_logo')}" class="layui-input hide">
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-mid layui-word-aux">
|
||||||
|
建议上传ICO图标的尺寸为128x128px,此图标用于网站标题前,ICON在线制作。
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="layui-form-item layui-box text-center">
|
||||||
|
<button class="layui-btn" type="submit">立即提交</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</fieldset>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/block}
|
Loading…
x
Reference in New Issue
Block a user