mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
标准化格式
This commit is contained in:
parent
37d95013db
commit
1440b4fd8a
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
use controller\BasicAdmin;
|
use controller\BasicAdmin;
|
||||||
@ -19,4 +20,4 @@ class Auth extends BasicAdmin {
|
|||||||
parent::_list($this->table);
|
parent::_list($this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -17,7 +17,6 @@ class Config extends BasicAdmin {
|
|||||||
|
|
||||||
public function index() {
|
public function index() {
|
||||||
parent::_list($this->table);
|
parent::_list($this->table);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -69,4 +69,4 @@ class Index extends BasicAdmin {
|
|||||||
return view();
|
return view();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
use controller\BasicAdmin;
|
use controller\BasicAdmin;
|
||||||
@ -13,7 +14,6 @@ use think\Db;
|
|||||||
*/
|
*/
|
||||||
class Login extends BasicAdmin {
|
class Login extends BasicAdmin {
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 控制器基础方法
|
* 控制器基础方法
|
||||||
*/
|
*/
|
||||||
@ -51,4 +51,5 @@ class Login extends BasicAdmin {
|
|||||||
session('user', null);
|
session('user', null);
|
||||||
$this->success('退出登录成功!', '@admin/login');
|
$this->success('退出登录成功!', '@admin/login');
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
}
|
||||||
|
@ -127,7 +127,6 @@ class Menu extends BasicAdmin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 添加菜单
|
* 添加菜单
|
||||||
*/
|
*/
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
use controller\BasicAdmin;
|
use controller\BasicAdmin;
|
||||||
@ -18,4 +19,4 @@ class Role extends BasicAdmin {
|
|||||||
parent::_list($this->table);
|
parent::_list($this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace app\admin\controller;
|
namespace app\admin\controller;
|
||||||
|
|
||||||
use controller\BasicAdmin;
|
use controller\BasicAdmin;
|
||||||
@ -18,4 +19,4 @@ class User extends BasicAdmin {
|
|||||||
parent::_list($this->table);
|
parent::_list($this->table);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -2,9 +2,8 @@
|
|||||||
|
|
||||||
namespace app\admin\model;
|
namespace app\admin\model;
|
||||||
|
|
||||||
|
|
||||||
use think\Model;
|
use think\Model;
|
||||||
|
|
||||||
class User extends Model {
|
class User extends Model {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -5,82 +5,82 @@
|
|||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<table class="layui-table" lay-even lay-skin="nob">
|
<table class="layui-table" lay-even lay-skin="nob">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center" colspan="2">系统信息</th>
|
<th class="text-center" colspan="2">系统信息</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>框架版本</td>
|
<td>框架版本</td>
|
||||||
<td>{$Think.const.THINK_VERSION}</td>
|
<td>{$Think.const.THINK_VERSION}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>系统类型</td>
|
<td>系统类型</td>
|
||||||
<td>{:php_uname('s')}</td>
|
<td>{:php_uname('s')}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>运行环境</td>
|
<td>运行环境</td>
|
||||||
<td>{:php_sapi_name()}</td>
|
<td>{:php_sapi_name()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>PHP版本</td>
|
<td>PHP版本</td>
|
||||||
<td>{:phpversion()}</td>
|
<td>{:phpversion()}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>MySQL版本</td>
|
<td>MySQL版本</td>
|
||||||
<td>{$mysql_ver}</td>
|
<td>{$mysql_ver}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>上传限制</td>
|
<td>上传限制</td>
|
||||||
<td>{:ini_get('upload_max_filesize')}</td>
|
<td>{:ini_get('upload_max_filesize')}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>POST限制</td>
|
<td>POST限制</td>
|
||||||
<td>{:ini_get('post_max_size')}</td>
|
<td>{:ini_get('post_max_size')}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-6">
|
<div class="col-sm-6">
|
||||||
<table class="layui-table" lay-even lay-skin="nob">
|
<table class="layui-table" lay-even lay-skin="nob">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="text-center" colspan="2">产品团队</th>
|
<th class="text-center" colspan="2">产品团队</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td>产品名称</td>
|
<td>产品名称</td>
|
||||||
<td>Think.Admin</td>
|
<td>Think.Admin</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>当前版本</td>
|
<td>当前版本</td>
|
||||||
<td>{:sysconf('app_version')}</td>
|
<td>{:sysconf('app_version')}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>产品设计及研发团队</td>
|
<td>产品设计及研发团队</td>
|
||||||
<td>广州楚才信息科技有限公司</td>
|
<td>广州楚才信息科技有限公司</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>官方网址</td>
|
<td>官方网址</td>
|
||||||
<td>https://think.ctolog.com</td>
|
<td>https://think.ctolog.com</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>官方QQ群</td>
|
<td>官方QQ群</td>
|
||||||
<td>
|
<td>
|
||||||
<a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=ae25cf789dafbef62e50a980ffc31242f150bc61a61164458216dd98c411832a">
|
<a target="_blank" href="http://shang.qq.com/wpa/qunwpa?idkey=ae25cf789dafbef62e50a980ffc31242f150bc61a61164458216dd98c411832a">
|
||||||
<img src="http://pub.idqqimg.com/wpa/images/group.png" alt="PHP微信开发群 (SDK)">
|
<img src="http://pub.idqqimg.com/wpa/images/group.png" alt="PHP微信开发群 (SDK)">
|
||||||
</a>
|
</a>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>BUG反馈</td>
|
<td>BUG反馈</td>
|
||||||
<td>https://github.com/zoujingli/Think.Admin/issues</td>
|
<td>https://github.com/zoujingli/Think.Admin/issues</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>项目地址</td>
|
<td>项目地址</td>
|
||||||
<td>https://github.com/zoujingli/Think.Admin</td>
|
<td>https://github.com/zoujingli/Think.Admin</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,8 +4,7 @@
|
|||||||
<link rel="stylesheet" href="__STATIC__/theme/default/css/login.css">
|
<link rel="stylesheet" href="__STATIC__/theme/default/css/login.css">
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
{block name="bodyTag"}
|
{block name="body"}
|
||||||
<body>
|
|
||||||
<div class="login-container" style="height:100%">
|
<div class="login-container" style="height:100%">
|
||||||
|
|
||||||
<div class="clouds clouds-footer"></div>
|
<div class="clouds clouds-footer"></div>
|
||||||
@ -72,6 +71,9 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="footer">{:sysconf('site_company')} © {:date('Y')}</div>
|
<div class="footer">{:sysconf('site_company')} © {:date('Y')}</div>
|
||||||
</div>
|
</div>
|
||||||
|
{/block}
|
||||||
|
|
||||||
|
{block name="script"}
|
||||||
<script>
|
<script>
|
||||||
require(['jquery'], function ($) {
|
require(['jquery'], function ($) {
|
||||||
$('[name="password"]').on('focus', function () {
|
$('[name="password"]').on('focus', function () {
|
||||||
@ -83,5 +85,4 @@
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</body>
|
|
||||||
{/block}
|
{/block}
|
@ -9,9 +9,7 @@
|
|||||||
<th class='list-table-check-td'>
|
<th class='list-table-check-td'>
|
||||||
<input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
|
<input data-none-auto="" data-check-target='.list-check-box' type='checkbox'/>
|
||||||
</th>
|
</th>
|
||||||
<th class='list-table-sort-td'>
|
<th class='list-table-sort-td'><button>排序</button></th>
|
||||||
<button>排序</button>
|
|
||||||
</th>
|
|
||||||
<th class='text-center'></th>
|
<th class='text-center'></th>
|
||||||
<th>菜单名称</th>
|
<th>菜单名称</th>
|
||||||
<th>链接</th>
|
<th>链接</th>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user