mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
调整基础模板结构
This commit is contained in:
parent
70811efd78
commit
0bb2b96f21
@ -58,6 +58,7 @@ class Index extends BasicAdmin {
|
||||
$version = Db::query('select version() as ver');
|
||||
$version = array_pop($version);
|
||||
$this->assign('mysql_ver', $version['ver']);
|
||||
$this->assign('title', '系统信息');
|
||||
return view();
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
{extend name="extra@admin/main" /}
|
||||
|
||||
{block name='body'}
|
||||
{include file="extra@admin/top"}
|
||||
{include file="extra@admin/main.top"}
|
||||
<div class="framework-body framework-sidebar-mini">
|
||||
<{include file="extra@admin/left"}>
|
||||
<{include file="extra@admin/main.left"}>
|
||||
<div class="framework-container layer-main-container"></div>
|
||||
</div>
|
||||
{/block}
|
@ -1,10 +1,6 @@
|
||||
<div class="ibox">
|
||||
{if $title}
|
||||
<div class="ibox-title">
|
||||
<h5>{$title}</h5>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="ibox-content fadeInUp animated">
|
||||
{extend name='extra@admin/content' /}
|
||||
|
||||
{block name="content"}
|
||||
<div class="row">
|
||||
<div class="col-sm-6">
|
||||
<table class="table table-bordered">
|
||||
@ -71,5 +67,4 @@
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
13
application/extra/view/admin.content.html
Normal file
13
application/extra/view/admin.content.html
Normal file
@ -0,0 +1,13 @@
|
||||
{block name="contentTag"}
|
||||
<div class="ibox">
|
||||
{if isset($title)}
|
||||
<div class="ibox-title">
|
||||
<h5>{$title}</h5>
|
||||
</div>
|
||||
{/if}
|
||||
<div class="ibox-content fadeInUp animated">
|
||||
{block name="content"}
|
||||
{/block}
|
||||
</div>
|
||||
</div>
|
||||
{/block}
|
Loading…
x
Reference in New Issue
Block a user