mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
调整基础模板结构
This commit is contained in:
parent
3c2cb947fc
commit
90f5a26642
@ -58,7 +58,14 @@ class Index extends BasicAdmin {
|
|||||||
$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']);
|
||||||
$this->assign('title', '系统信息');
|
if (session('user.username') === 'admin' && session('user.password') === '662af1cd1976f09a9f8cecc868ccc0a2') {
|
||||||
|
$alert = [
|
||||||
|
'type' => 'danger',
|
||||||
|
'title' => '安全提示',
|
||||||
|
'content' => '超级管理员默认密码未修改,建议马上修改!'
|
||||||
|
];
|
||||||
|
$this->assign('alert', $alert);
|
||||||
|
}
|
||||||
return view();
|
return view();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,15 @@
|
|||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="ibox-content fadeInUp animated">
|
<div class="ibox-content fadeInUp animated">
|
||||||
|
{if isset($alert)}
|
||||||
|
<div class="alert alert-{$alert.type} alert-dismissible" role="alert">
|
||||||
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
{if isset($alert['title'])}<strong>{$alert.title}</strong><br/>{/if}
|
||||||
|
{if isset($alert['content'])}<p>{$alert.content}</p>{/if}
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
{block name="content"}
|
{block name="content"}
|
||||||
{/block}
|
{/block}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user