更新布局名称

This commit is contained in:
邹景立 2017-02-13 16:29:38 +08:00
parent a3c19a38fb
commit 21325a604c
2 changed files with 76 additions and 1 deletions

View File

@ -3,10 +3,14 @@
namespace app\admin\controller;
use controller\BasicAdmin;
use think\Db;
class Index extends BasicAdmin {
public function index() {
$version = Db::query('select version() as ver');
$version = array_pop($version);
$this->assign('mysql_ver', $version['ver']);
return view();
}

View File

@ -4,6 +4,77 @@
{include file="extra@admin/top"}
<div class="framework-body framework-sidebar-mini">
<{include file="extra@admin/left"}>
<div class="framework-container layer-main-container"></div>
<div class="framework-container layer-main-container">
<div style="padding:15px">
<div class="row">
<div class="col-sm-6">
<table class="table table-bordered">
<tr>
<td>框架版本</td>
<td>{$Think.const.THINK_VERSION}</td>
</tr>
<tr>
<td>系统类型</td>
<td>{:php_uname('s')}</td>
</tr>
<tr>
<td>运行环境</td>
<td>{:php_sapi_name()}</td>
</tr>
<tr>
<td>PHP版本</td>
<td>{:phpversion()}</td>
</tr>
<tr>
<td>MySQL版本</td>
<td>{$mysql_ver}</td>
</tr>
<tr>
<td>上传限制</td>
<td>{:ini_get('upload_max_filesize')}</td>
</tr>
<tr>
<td>POST限制</td>
<td>{:ini_get('post_max_size')}</td>
</tr>
</table>
</div>
<div class="col-sm-6">
<table class="table table-bordered">
<tr>
<td>框架版本</td>
<td>{$Think.const.THINK_VERSION}</td>
</tr>
<tr>
<td>系统类型</td>
<td>{:php_uname('s')}</td>
</tr>
<tr>
<td>运行环境</td>
<td>{:php_sapi_name()}</td>
</tr>
<tr>
<td>PHP版本</td>
<td>{:phpversion()}</td>
</tr>
<tr>
<td>MySQL版本</td>
<td>{$mysql_ver}</td>
</tr>
<tr>
<td>上传限制</td>
<td>{:ini_get('upload_max_filesize')}</td>
</tr>
<tr>
<td>POST限制</td>
<td>{:ini_get('post_max_size')}</td>
</tr>
</table>
</div>
</div>
</div>
</div>
</div>
{/block}