mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
更新临时菜单
This commit is contained in:
parent
e069986579
commit
09a8fa89f9
@ -9,6 +9,10 @@ class Index extends BasicAdmin {
|
||||
|
||||
public function index() {
|
||||
$this->assign('ptitle', '后台管理');
|
||||
return view();
|
||||
}
|
||||
|
||||
public function main() {
|
||||
$version = Db::query('select version() as ver');
|
||||
$version = array_pop($version);
|
||||
$this->assign('mysql_ver', $version['ver']);
|
||||
|
@ -4,77 +4,6 @@
|
||||
{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 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 class="framework-container layer-main-container"></div>
|
||||
</div>
|
||||
{/block}
|
68
application/admin/view/index.main.html
Normal file
68
application/admin/view/index.main.html
Normal file
@ -0,0 +1,68 @@
|
||||
<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>
|
@ -6,7 +6,11 @@
|
||||
<span class="icon-logo">{:sysconf('app_name')} <sup>{:sysconf('app_version')}</sup></span>
|
||||
</a>
|
||||
</div>
|
||||
<a data-menu-target="m-3" class="topbar-home-link topbar-btn topbar-left active">
|
||||
<a data-menu-node='1' data-open="{:url('@admin/index/main')}"
|
||||
class="topbar-home-link topbar-btn topbar-left active">
|
||||
<span> 系统信息</span>
|
||||
</a>
|
||||
<a data-menu-target="m-3" class="topbar-home-link topbar-btn topbar-left">
|
||||
<span> 系统管理</span>
|
||||
</a>
|
||||
<div class="topbar-info topbar-right">
|
||||
|
@ -162,7 +162,7 @@ define(['jquery', 'admin.plugs'], function () {
|
||||
};
|
||||
/*! 通过URI查询最有可能的菜单NODE */
|
||||
function queryNode(url) {
|
||||
var $menu = $('.framework-sidebar').find('[data-menu-node][data-open*="_URL_"]'.replace('_URL_', url.replace(/\.html$/ig, '')));
|
||||
var $menu = $('[data-menu-node][data-open*="_URL_"]'.replace('_URL_', url.replace(/\.html$/ig, '')));
|
||||
if ($menu.size()) {
|
||||
return $menu.get(0).getAttribute('data-menu-node');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user