调整基础模板结构

This commit is contained in:
邹景立 2017-02-15 16:19:03 +08:00
parent 70811efd78
commit 0bb2b96f21
6 changed files with 84 additions and 75 deletions

View File

@ -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();
}

View File

@ -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}

View File

@ -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}

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