修改系统模板

This commit is contained in:
Anyon 2020-05-20 10:33:21 +08:00
parent f634b2f349
commit 693379509c
5 changed files with 11 additions and 44 deletions

View File

@ -1,6 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="zh"> <html lang="zh">
<head> <head>
<title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title> <title>{block name="title"}{$title|default=''}{if !empty($title)} · {/if}{:sysconf('site_name')}{/block}</title>
<meta charset="utf-8"> <meta charset="utf-8">
@ -18,11 +17,9 @@
<script>window.tapiRoot = '{:sysuri("admin/index/index",[],false)}'</script> <script>window.tapiRoot = '{:sysuri("admin/index/index",[],false)}'</script>
<script src="__ROOT__/static/plugs/jquery/pace.min.js"></script> <script src="__ROOT__/static/plugs/jquery/pace.min.js"></script>
</head> </head>
<body class="layui-layout-body"> <body class="layui-layout-body">
{block name='body'} {block name='body'}
<div class="layui-layout layui-layout-admin layui-layout-left-hide"> <div class="layui-layout layui-layout-admin layui-layout-left-hide">
<!-- 顶部菜单 开始 --> <!-- 顶部菜单 开始 -->
<div class="layui-header notselect"> <div class="layui-header notselect">
<a href="{:url('@')}" class="layui-logo layui-elip"> <a href="{:url('@')}" class="layui-logo layui-elip">
@ -66,16 +63,12 @@
</ul> </ul>
</div> </div>
<!-- 顶部菜单 结束 --> <!-- 顶部菜单 结束 -->
<!-- 左则菜单 开始 --> <!-- 左则菜单 开始 -->
<div class="layui-side layui-bg-black notselect"> <div class="layui-side layui-bg-black notselect">
<div class="layui-side-scroll"> <div class="layui-side-scroll">
{foreach $menus as $one}{notempty name='one.sub'}
{foreach $menus as $one}
{notempty name='one.sub'}
<ul class="layui-nav layui-nav-tree layui-hide" data-menu-layout="m-{$one.id}"> <ul class="layui-nav layui-nav-tree layui-hide" data-menu-layout="m-{$one.id}">
{foreach $one.sub as $two} {foreach $one.sub as $two}{empty name='two.sub'}
{empty name='two.sub'}
<li class="layui-nav-item"> <li class="layui-nav-item">
<a data-target-tips="{$two.title}" data-menu-node="m-{$one.id}-{$two.id}" data-open="{$two.url}"> <a data-target-tips="{$two.title}" data-menu-node="m-{$one.id}-{$two.id}" data-open="{$two.url}">
<span class='{$two.icon|default="layui-icon layui-icon-link"}'></span> <span class='{$two.icon|default="layui-icon layui-icon-link"}'></span>
@ -99,19 +92,15 @@
{/foreach} {/foreach}
</dl> </dl>
</li> </li>
{/empty} {/empty}{/foreach}
{/foreach}
</ul> </ul>
{/notempty} {/notempty}{/foreach}
{/foreach}
</div> </div>
</div> </div>
<!-- 左则菜单 结束 --> <!-- 左则菜单 结束 -->
<!-- 主体内容 开始 --> <!-- 主体内容 开始 -->
<div class="layui-body layui-bg-gray">{block name='content'}{/block}</div> <div class="layui-body layui-bg-gray">{block name='content'}{/block}</div>
<!-- 主体内容 结束 --> <!-- 主体内容 结束 -->
</div> </div>
{/block} {/block}
<script src="__ROOT__/static/plugs/layui/layui.all.js"></script> <script src="__ROOT__/static/plugs/layui/layui.all.js"></script>
@ -119,5 +108,4 @@
<script src="__ROOT__/static/admin.js"></script> <script src="__ROOT__/static/admin.js"></script>
{block name='script'}{/block} {block name='script'}{/block}
</body> </body>
</html> </html>

View File

@ -1,6 +1,5 @@
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off"> <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
<div class="layui-card-body padding-left-40"> <div class="layui-card-body padding-left-40">
<div class="layui-row layui-col-space15"> <div class="layui-row layui-col-space15">
<div class="layui-col-xs2 text-center"> <div class="layui-col-xs2 text-center">
<input type="hidden" name="headimg" value="{$vo.headimg|default=''}"> <input type="hidden" name="headimg" value="{$vo.headimg|default=''}">
@ -27,8 +26,6 @@
</label> </label>
</div> </div>
</div> </div>
<div class="layui-row layui-col-space15"> <div class="layui-row layui-col-space15">
<div class="layui-col-xs4"> <div class="layui-col-xs4">
<label class="relative block"> <label class="relative block">
@ -55,7 +52,6 @@
</label> </label>
</div> </div>
</div> </div>
{notempty name='authorizes'} {notempty name='authorizes'}
<div class="layui-form-item"> <div class="layui-form-item">
<span class="color-green font-w7">访问权限</span> <span class="color-green font-w7">访问权限</span>
@ -80,7 +76,7 @@
</div> </div>
{/notempty} {/notempty}
<label class="layui-form-item block relative"> <label class="layui-form-item block relative">
<span class="color-green font-w7">用户描述</span><span class="color-desc">Description</span> <span class="color-green font-w7">用户描述</span><span class="color-desc margin-left-5">Description</span>
<textarea placeholder="请输入用户描述" class="layui-textarea" name="describe">{$vo.describe|default=""}</textarea> <textarea placeholder="请输入用户描述" class="layui-textarea" name="describe">{$vo.describe|default=""}</textarea>
</label> </label>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>

View File

@ -79,7 +79,6 @@
{/if} {/if}
</td> </td>
<td class='text-left nowrap'> <td class='text-left nowrap'>
{if isset($type) and $type eq 'all'} {if isset($type) and $type eq 'all'}
<!--{if auth("pass")}--> <!--{if auth("pass")}-->
<a class="layui-btn layui-btn-sm layui-btn-normal" data-title="设置密码" data-modal='{:url("pass")}?id={$vo.id}'>密 码</a> <a class="layui-btn layui-btn-sm layui-btn-normal" data-title="设置密码" data-modal='{:url("pass")}?id={$vo.id}'>密 码</a>

View File

@ -1,49 +1,40 @@
<fieldset> <fieldset>
<legend>条件搜索</legend> <legend>条件搜索</legend>
<form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off"> <form class="layui-form layui-form-pane form-search" action="{:request()->url()}" onsubmit="return false" method="get" autocomplete="off">
<div class="layui-form-item layui-inline"> <div class="layui-form-item layui-inline">
<label class="layui-form-label">用户账号</label> <label class="layui-form-label">用户账号</label>
<div class="layui-input-inline"> <label class="layui-input-inline">
<input name="username" value="{:input('get.username')}" placeholder="请输入用户名" class="layui-input"> <input name="username" value="{:input('get.username')}" placeholder="请输入用户名" class="layui-input">
</div> </label>
</div> </div>
<div class="layui-form-item layui-inline"> <div class="layui-form-item layui-inline">
<label class="layui-form-label">联系手机</label> <label class="layui-form-label">联系手机</label>
<div class="layui-input-inline"> <label class="layui-input-inline">
<input name="phone" value="{:input('get.phone')}" placeholder="请输入联系手机" class="layui-input"> <input name="phone" value="{:input('get.phone')}" placeholder="请输入联系手机" class="layui-input">
</div> </label>
</div> </div>
<div class="layui-form-item layui-inline"> <div class="layui-form-item layui-inline">
<label class="layui-form-label">联系邮箱</label> <label class="layui-form-label">联系邮箱</label>
<div class="layui-input-inline"> <label class="layui-input-inline">
<input name="mail" value="{:input('get.mail')}" placeholder="请输入联系邮箱" class="layui-input"> <input name="mail" value="{:input('get.mail')}" placeholder="请输入联系邮箱" class="layui-input">
</div> </label>
</div> </div>
<div class="layui-form-item layui-inline"> <div class="layui-form-item layui-inline">
<label class="layui-form-label">登录时间</label> <label class="layui-form-label">登录时间</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input data-date-range name="login_at" value="{:input('get.login_at')}" placeholder="请选择登录时间" class="layui-input"> <input data-date-range name="login_at" value="{:input('get.login_at')}" placeholder="请选择登录时间" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item layui-inline"> <div class="layui-form-item layui-inline">
<label class="layui-form-label">创建时间</label> <label class="layui-form-label">创建时间</label>
<div class="layui-input-inline"> <div class="layui-input-inline">
<input data-date-range name="create_at" value="{:input('get.create_at')}" placeholder="请选择创建时间" class="layui-input"> <input data-date-range name="create_at" value="{:input('get.create_at')}" placeholder="请选择创建时间" class="layui-input">
</div> </div>
</div> </div>
<div class="layui-form-item layui-inline"> <div class="layui-form-item layui-inline">
<button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button> <button class="layui-btn layui-btn-primary"><i class="layui-icon">&#xe615;</i> 搜 索</button>
</div> </div>
</form> </form>
</fieldset> </fieldset>
<script>form.render()</script> <script>form.render()</script>

View File

@ -1,7 +1,5 @@
<form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off"> <form class="layui-form layui-card" action="{:request()->url()}" data-auto="true" method="post" autocomplete="off">
<div class="layui-card-body padding-left-40"> <div class="layui-card-body padding-left-40">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">登录用户账号</span> <span class="color-green font-w7">登录用户账号</span>
@ -14,7 +12,6 @@
</label> </label>
<p class="help-block">登录用户账号创建后,不允许再次修改。</p> <p class="help-block">登录用户账号创建后,不允许再次修改。</p>
</div> </div>
<!--{if $verify}--> <!--{if $verify}-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
@ -25,7 +22,6 @@
<p class="color-desc">请输入旧密码来验证修改权限,旧密码不限制格式。</p> <p class="color-desc">请输入旧密码来验证修改权限,旧密码不限制格式。</p>
</div> </div>
<!--{/if}--> <!--{/if}-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">新的登录密码</span> <span class="color-green font-w7">新的登录密码</span>
@ -34,7 +30,6 @@
</label> </label>
<p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p> <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="relative block"> <label class="relative block">
<span class="color-green font-w7">重复登录密码</span> <span class="color-green font-w7">重复登录密码</span>
@ -43,7 +38,6 @@
</label> </label>
<p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p> <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
</div> </div>
</div> </div>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>
@ -53,5 +47,4 @@
<button class="layui-btn" type='submit'>保存数据</button> <button class="layui-btn" type='submit'>保存数据</button>
<button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button> <button class="layui-btn layui-btn-danger" type='button' data-confirm="确定要取消编辑吗?" data-close>取消编辑</button>
</div> </div>
</form> </form>