更新临时菜单

This commit is contained in:
邹景立 2017-02-13 17:18:10 +08:00
parent e069986579
commit 09a8fa89f9
5 changed files with 79 additions and 74 deletions

View File

@ -9,6 +9,10 @@ class Index extends BasicAdmin {
public function index() { public function index() {
$this->assign('ptitle', '后台管理'); $this->assign('ptitle', '后台管理');
return view();
}
public function main() {
$version = Db::query('select version() as ver'); $version = Db::query('select version() as ver');
$version = array_pop($version); $version = array_pop($version);
$this->assign('mysql_ver', $version['ver']); $this->assign('mysql_ver', $version['ver']);

View File

@ -4,77 +4,6 @@
{include file="extra@admin/top"} {include file="extra@admin/top"}
<div class="framework-body framework-sidebar-mini"> <div class="framework-body framework-sidebar-mini">
<{include file="extra@admin/left"}> <{include file="extra@admin/left"}>
<div class="framework-container layer-main-container"> <div class="framework-container layer-main-container"></div>
<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> </div>
{/block} {/block}

View 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>

View File

@ -6,7 +6,11 @@
<span class="icon-logo">{:sysconf('app_name')} <sup>{:sysconf('app_version')}</sup></span> <span class="icon-logo">{:sysconf('app_name')} <sup>{:sysconf('app_version')}</sup></span>
</a> </a>
</div> </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> <span> 系统管理</span>
</a> </a>
<div class="topbar-info topbar-right"> <div class="topbar-info topbar-right">

View File

@ -162,7 +162,7 @@ define(['jquery', 'admin.plugs'], function () {
}; };
/*! 通过URI查询最有可能的菜单NODE */ /*! 通过URI查询最有可能的菜单NODE */
function queryNode(url) { 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()) { if ($menu.size()) {
return $menu.get(0).getAttribute('data-menu-node'); return $menu.get(0).getAttribute('data-menu-node');
} }