|
@@ -30,56 +30,131 @@
|
|
|
|
|
|
</style>
|
|
|
<body class="layui-layout-body">
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
+{block name='body'}
|
|
|
+<div class="layui-layout layui-layout-admin layui-layout-left-hide">
|
|
|
+ <!-- 顶部菜单 开始 -->
|
|
|
+ <div class="layui-header notselect">
|
|
|
+ <a href="{:url('@')}" class="layui-logo layui-elip">
|
|
|
+ {:sysconf('app_name')}
|
|
|
+ </a>
|
|
|
+ <ul class="layui-nav layui-layout-left">
|
|
|
+ <li class="layui-nav-item" lay-unselect>
|
|
|
+ <a class="text-center" data-target-menu-type>
|
|
|
+ <i class="layui-icon layui-icon-spread-left"></i>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ {foreach $menus as $oneMenu}
|
|
|
+ <li class="layui-nav-item">
|
|
|
+ <!-- <a data-menu-node="m-{$oneMenu.id}" data-open="{$oneMenu.url}">-->
|
|
|
+ <!-- {notempty name='oneMenu.icon'}<span class='{$oneMenu.icon} padding-right-5'></span>{/notempty}-->
|
|
|
+ <!-- <span>{$oneMenu.title|default=''}</span>-->
|
|
|
+ <!-- </a>-->
|
|
|
+ </li>
|
|
|
+ {/foreach}
|
|
|
+ </ul>
|
|
|
+ <ul class="layui-nav layui-layout-right">
|
|
|
+ <li lay-unselect class="layui-nav-item"><a data-reload><i class="layui-icon layui-icon-refresh-3"></i></a></li>
|
|
|
+ {notempty name='Think.session.user.username'}
|
|
|
+ <li class="layui-nav-item">
|
|
|
+ <dl class="layui-nav-child">
|
|
|
+ <dd lay-unselect><a data-modal="{:url('admin/index/pass',['id'=>session('user.id')])}"><i class="layui-icon layui-icon-component margin-right-5"></i>密码设置</a></dd>
|
|
|
+
|
|
|
+ <dd lay-unselect><a data-confirm="确定要退出登录吗?" data-load="{:url('admin/login/out')}"><i class="layui-icon layui-icon-release margin-right-5"></i>退出登录</a></dd>
|
|
|
+ </dl>
|
|
|
+ <a><span><i class="layui-icon layui-icon-username margin-right-5"></i> {:session('user.username')}</span></a>
|
|
|
+ </li>
|
|
|
+ {else}
|
|
|
+ <li class="layui-nav-item">
|
|
|
+ <a data-href="{:url('@admin/login')}"><i class="layui-icon layui-icon-username"></i> 立即登录</a>
|
|
|
+ </li>
|
|
|
+ {/notempty}
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <!-- 顶部菜单 结束 -->
|
|
|
+
|
|
|
+ <!-- 左则菜单 开始 -->
|
|
|
+ <div class="layui-side layui-bg-black notselect">
|
|
|
+ <div class="layui-side-scroll">
|
|
|
+
|
|
|
+ {foreach $menus as $oneMenu}
|
|
|
+ {notempty name='oneMenu.sub'}
|
|
|
+ <ul class="layui-nav layui-nav-tree layui-hide" data-menu-layout="m-{$oneMenu.id}">
|
|
|
+ {foreach $oneMenu.sub as $twoMenu}
|
|
|
+ {empty name='twoMenu.sub'}
|
|
|
+ <li class="layui-nav-item">
|
|
|
+ <a data-target-tips="{$twoMenu.title}" data-menu-node="m-{$oneMenu.id}-{$twoMenu.id}" data-open="{$twoMenu.url}">
|
|
|
+ <span class='{$twoMenu.icon|default="layui-icon layui-icon-link"}'></span>
|
|
|
+ <span class="nav-text padding-left-5">{$twoMenu.title}</span>
|
|
|
+ </a>
|
|
|
+ </li>
|
|
|
+ {else}
|
|
|
+ <li class="layui-nav-item" data-submenu-layout='m-{$oneMenu.id}-{$twoMenu.id}'>
|
|
|
+ <a data-target-tips="{$twoMenu.title}" style="background:#393D49">
|
|
|
+ <span class='{$twoMenu.icon|default="layui-icon layui-icon-link"}'></span>
|
|
|
+ <span class="nav-text padding-left-5">{$twoMenu.title}</span>
|
|
|
+ </a>
|
|
|
+ <dl class="layui-nav-child">
|
|
|
+ {foreach $twoMenu.sub as $thrMenu}
|
|
|
+ <dd>
|
|
|
+ <a data-target-tips="{$thrMenu.title}" data-open="{$thrMenu.url}" data-menu-node="m-{$oneMenu.id}-{$twoMenu.id}-{$thrMenu.id}">
|
|
|
+ <span class='nav-icon padding-left-5 {$thrMenu.icon|default="layui-icon layui-icon-link"}'></span>
|
|
|
+ <span class="nav-text padding-left-5">{$thrMenu.title}</span>
|
|
|
+ </a>
|
|
|
+ </dd>
|
|
|
+ {/foreach}
|
|
|
+ </dl>
|
|
|
+ </li>
|
|
|
+ {/empty}
|
|
|
+ {/foreach}
|
|
|
+ </ul>
|
|
|
+ {/notempty}
|
|
|
+ {/foreach}
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <!-- 左则菜单 结束 -->
|
|
|
|
|
|
<!-- 主体内容 开始 -->
|
|
|
- <div class="layui-body layui-bg-gray">
|
|
|
+ <div class="layui-body layui-bg-gray"><form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
|
|
|
+ <div class="layui-card-body">
|
|
|
|
|
|
- <form onsubmit="return false;" action="{:request()->url()}" data-auto="true" method="post" class='layui-form layui-card' autocomplete="off">
|
|
|
- <div class="layui-card-body">
|
|
|
|
|
|
-
|
|
|
- <div class="layui-form-item">
|
|
|
- <label class="layui-col-xs2 think-form-label">名称</label>
|
|
|
- <label class="layui-col-xs10">
|
|
|
- <input name="title" required value='{$vo.title|default=""}' placeholder="请输入名称" class="layui-input">
|
|
|
- </label>
|
|
|
- </div>
|
|
|
-
|
|
|
- <div class="layui-row margin-bottom-15">
|
|
|
- <label class="layui-col-xs2 think-form-label">模板</label>
|
|
|
- <label class="layui-col-xs8 think-form-group-left">
|
|
|
- <input name="url" required readonly value='{$vo.url|default=""}' placeholder="请上传模板" class="layui-input">
|
|
|
- </label>
|
|
|
- <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="url" data-type="xls,xlsx">
|
|
|
- <i class="layui-icon layui-icon-upload"></i> 上传模板
|
|
|
- </a>
|
|
|
- </div>
|
|
|
+ <div class="layui-form-item">
|
|
|
+ <label class="layui-col-xs2 think-form-label">名称</label>
|
|
|
+ <label class="layui-col-xs10">
|
|
|
+ <input name="title" required value='{$vo.title|default=""}' placeholder="请输入名称" class="layui-input">
|
|
|
+ </label>
|
|
|
</div>
|
|
|
|
|
|
- <div class="hr-line-dashed"></div>
|
|
|
- <div class="layui-form-item text-center">
|
|
|
- {if isset($vo.id)}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>{else}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='create_at'>{/if}
|
|
|
- {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
|
|
|
- <button class="layui-btn" type='submit'>保存数据</button>
|
|
|
+ <div class="layui-row margin-bottom-15">
|
|
|
+ <label class="layui-col-xs2 think-form-label">模板</label>
|
|
|
+ <label class="layui-col-xs8 think-form-group-left">
|
|
|
+ <input name="url" required readonly value='{$vo.url|default=""}' placeholder="请上传模板" class="layui-input">
|
|
|
+ </label>
|
|
|
+ <a class="layui-col-xs2 layui-btn think-form-group-right" data-file="btn" data-field="url" data-type="xls,xlsx">
|
|
|
+ <i class="layui-icon layui-icon-upload"></i> 上传模板
|
|
|
+ </a>
|
|
|
</div>
|
|
|
- </form>
|
|
|
-
|
|
|
-
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="hr-line-dashed"></div>
|
|
|
+ <div class="layui-form-item text-center">
|
|
|
+ {if isset($vo.id)}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='update_at'>{else}<input type='hidden' value="<?php echo date('Y-m-d H:i:s'); ?>" name='create_at'>{/if}
|
|
|
+ {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
|
|
|
+ <button class="layui-btn" type='submit'>保存数据</button>
|
|
|
+ </div>
|
|
|
+ </form>
|
|
|
+ <script>window.form.render();
|
|
|
+ </script>
|
|
|
</div>
|
|
|
<!-- 主体内容 结束 -->
|
|
|
|
|
|
</div>
|
|
|
-
|
|
|
+{/block}
|
|
|
<script src="__ROOT__/static/plugs/layui/layui.all.js"></script>
|
|
|
<script src="__ROOT__/static/plugs/echarts/echarts.min.js"></script>
|
|
|
<script src="__ROOT__/static/plugs/require/require.js"></script>
|
|
|
<script src="__ROOT__/static/admin.js"></script>
|
|
|
-<script>
|
|
|
- window.form.render();
|
|
|
-</script>
|
|
|
+{block name='script'}{/block}
|
|
|
</body>
|
|
|
|
|
|
</html>
|