[更新]后台模块修改

This commit is contained in:
Anyon 2019-08-27 16:01:32 +08:00
parent 83da4c6bc0
commit a89cf6cf57
10 changed files with 122 additions and 96 deletions

View File

@ -1,20 +1,28 @@
<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">
<div class="layui-card-body padding-left-40">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">权限名称</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">权限名称</span>
<span class="color-desc margin-left-5">Title</span>
<input type="text" name="title" value='{$vo.title|default=""}' required placeholder="请输入权限名称" class="layui-input"> <input type="text" name="title" value='{$vo.title|default=""}' required placeholder="请输入权限名称" class="layui-input">
</div> </label>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">权限描述</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">权限描述</span>
<span class="color-desc margin-left-5">Authorization</span>
<textarea placeholder="请输入权限描述" required class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea> <textarea placeholder="请输入权限描述" required class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
</div> </label>
</div> </div>
</div> </div>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty} {notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<div class="layui-form-item text-center"> <div class="layui-form-item text-center">
<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>

View File

@ -14,7 +14,7 @@
<!--{/eq}--> <!--{/eq}-->
<!--{/foreach}--> <!--{/foreach}-->
</select> </select>
<p class="help-block"><b>必选</b>,请选择上级菜单或顶级菜单(目前最多支持三级菜单)</p> <p class="help-block">必选,请选择上级菜单或顶级菜单(目前最多支持三级菜单)</p>
</div> </div>
</div> </div>
@ -22,7 +22,7 @@
<label class="layui-form-label">菜单名称</label> <label class="layui-form-label">菜单名称</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input name="title" value='{$vo.title|default=""}' required placeholder="请输入菜单名称" class="layui-input"> <input name="title" value='{$vo.title|default=""}' required placeholder="请输入菜单名称" class="layui-input">
<p class="help-block"><b>必填</b>请填写菜单名称系统管理建议字符不要太长一般4-6个汉字</p> <p class="help-block">必填请填写菜单名称系统管理建议字符不要太长一般4-6个汉字</p>
</div> </div>
</div> </div>
@ -31,7 +31,7 @@
<div class="layui-input-block"> <div class="layui-input-block">
<input onblur="this.value=this.value === ''?'#':this.value" name="url" required placeholder="请输入菜单链接" value="{$vo.url|default='#'}" class="layui-input"> <input onblur="this.value=this.value === ''?'#':this.value" name="url" required placeholder="请输入菜单链接" value="{$vo.url|default='#'}" class="layui-input">
<p class="help-block"> <p class="help-block">
<b>必填</b>请填写系统节点admin/user/index节点加入权限管理时菜单才会自动隐藏非规则内的不会隐藏 必填请填写系统节点admin/user/index节点加入权限管理时菜单才会自动隐藏非规则内的不会隐藏
<br>正常情况下,在输入的时候会有自动提示。如果是上级菜单时,请填写"#"符号,不要填写地址或节点地址 <br>正常情况下,在输入的时候会有自动提示。如果是上级菜单时,请填写"#"符号,不要填写地址或节点地址
</p> </p>
</div> </div>
@ -41,7 +41,7 @@
<label class="layui-form-label">链接参数</label> <label class="layui-form-label">链接参数</label>
<div class="layui-input-block"> <div class="layui-input-block">
<input name="params" placeholder="请输入链接参数" value="{$vo.params|default=''}" class="layui-input"> <input name="params" placeholder="请输入链接参数" value="{$vo.params|default=''}" class="layui-input">
<p class="help-block"><b>可选</b>设置菜单链接的GET访问参数name=1&age=3</p> <p class="help-block">可选设置菜单链接的GET访问参数name=1&age=3</p>
</div> </div>
</div> </div>
@ -55,16 +55,16 @@
<i style="font-size:1.2em;margin:0" class='{$vo.icon|default=""}'></i> <i style="font-size:1.2em;margin:0" class='{$vo.icon|default=""}'></i>
</span> </span>
<button data-icon='icon' type='button' class='layui-btn layui-btn-primary'>选择图标</button> <button data-icon='icon' type='button' class='layui-btn layui-btn-primary'>选择图标</button>
<p class="help-block"><b>可选</b>,设置菜单选项前置图标,目前只支持 Font Awesome 5.2.0 字体图标</p> <p class="help-block">可选,设置菜单选项前置图标,目前只支持 Font Awesome 5.2.0 字体图标</p>
</div> </div>
</div> </div>
</div> </div>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<div class="layui-form-item text-center"> <div class="layui-form-item text-center">
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<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>

View File

@ -2,12 +2,12 @@
{block name="button"} {block name="button"}
{if auth("admin/menu/add")} {if auth("add")}
<button data-modal='{:url("add")}' data-title="添加菜单" class='layui-btn layui-btn-sm layui-btn-primary'>添加菜单</button> <button data-modal='{:url("add")}' data-title="添加菜单" class='layui-btn layui-btn-sm layui-btn-primary'>添加菜单</button>
{/if} {/if}
{if auth("admin/menu/remove")} {if auth("remove")}
<button data-action='{:url("remove")}' data-csrf="{:systoken('admin/menu/remove')}" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除菜单</button> <button data-action='{:url("remove")}' data-csrf="{:systoken('remove')}" data-rule="id#{key}" class='layui-btn layui-btn-sm layui-btn-primary'>删除菜单</button>
{/if} {/if}
{/block} {/block}
@ -47,7 +47,7 @@
<td class='text-center nowrap'>{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">使用中</span>{/eq}</td> <td class='text-center nowrap'>{eq name='vo.status' value='0'}<span class="color-red">已禁用</span>{else}<span class="color-green">使用中</span>{/eq}</td>
<td class='text-center nowrap notselect'> <td class='text-center nowrap notselect'>
{if auth("admin/menu/add")} {if auth("add")}
<span class="text-explode">|</span> <span class="text-explode">|</span>
<!--{if $vo.spt < 2}--> <!--{if $vo.spt < 2}-->
<a class="layui-btn layui-btn-xs layui-btn-primary" data-title="添加子菜单" data-modal='{:url("add")}?pid={$vo.id}'>添 加</a> <a class="layui-btn layui-btn-xs layui-btn-primary" data-title="添加子菜单" data-modal='{:url("add")}?pid={$vo.id}'>添 加</a>
@ -56,18 +56,18 @@
<!--{/if}--> <!--{/if}-->
{/if} {/if}
{if auth("admin/menu/edit")} {if auth("edit")}
<a data-dbclick class="layui-btn layui-btn-xs" data-title="编辑菜单" data-modal='{:url("admin/menu/edit")}?id={$vo.id}'>编 辑</a> <a data-dbclick class="layui-btn layui-btn-xs" data-title="编辑菜单" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
{/if} {/if}
{if $vo.status eq 1 and auth("admin/menu/forbid")} {if $vo.status eq 1 and auth("forbid")}
<a class="layui-btn layui-btn-warm layui-btn-xs" data-confirm="确定要禁用菜单吗?" data-action="{:url('forbid')}" data-value="id#{$vo.ids};status#0" data-csrf="{:systoken('admin/menu/forbid')}">禁 用</a> <a class="layui-btn layui-btn-warm layui-btn-xs" data-confirm="确定要禁用菜单吗?" data-action="{:url('forbid')}" data-value="id#{$vo.ids};status#0" data-csrf="{:systoken('forbid')}">禁 用</a>
{elseif auth("admin/menu/resume")} {elseif auth("resume")}
<a class="layui-btn layui-btn-warm layui-btn-xs" data-action="{:url('resume')}" data-value="id#{$vo.ids};status#1" data-csrf="{:systoken('admin/menu/resume')}">启 用</a> <a class="layui-btn layui-btn-warm layui-btn-xs" data-action="{:url('resume')}" data-value="id#{$vo.ids};status#1" data-csrf="{:systoken('resume')}">启 用</a>
{/if} {/if}
{if auth("admin/menu/remove")} {if auth("remove")}
<a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.ids}" data-csrf="{:systoken('admin/menu/remove')}">删 除</a> <a class="layui-btn layui-btn-danger layui-btn-xs" data-confirm="确定要删除数据吗?" data-action="{:url('remove')}" data-value="id#{$vo.ids}" data-csrf="{:systoken('remove')}">删 除</a>
{/if} {/if}
</td> </td>

View File

@ -2,12 +2,12 @@
{block name="button"} {block name="button"}
{if auth("admin/oplog/clear")} {if auth("clear")}
<button data-load='{:url("clear")}' data-confirm="确定要消除所有日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>清理日志</button> <button data-load='{:url("clear")}' data-confirm="确定要消除所有日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>清理日志</button>
{/if} {/if}
{if auth("admin/oplog/remove")} {if auth("remove")}
<button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('admin/oplog/remove')}" data-confirm="确定要删除日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除日志</button> <button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除日志吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除日志</button>
{/if} {/if}
{/block} {/block}
@ -51,8 +51,8 @@
日期:{$vo.create_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间:',###|raw}</span> 日期:{$vo.create_at|format_datetime|str_replace=' ','<br><span class="color-desc">时间:',###|raw}</span>
</td> </td>
<td class='text-left nowrap'> <td class='text-left nowrap'>
{if auth("admin/oplog/remove")} {if auth("remove")}
<a data-dbclick class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该日志吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('admin/oplog/remove')}">删 除</a> <a data-dbclick class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该日志吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
{/if} {/if}
</td> </td>
</tr> </tr>

View File

@ -1,39 +1,50 @@
<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"> <div class="layui-card-body padding-left-40">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label label-required">用户账号</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">用户账号</span>
<span class="color-desc margin-left-5">Username</span>
<!--{if isset($vo) and isset($vo.username)}--> <!--{if isset($vo) and isset($vo.username)}-->
<input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray"> <input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
<!--{else}--> <!--{else}-->
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符用户名称" class="layui-input"> <input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符用户名称" class="layui-input">
<!--{/if}--> <!--{/if}-->
<p class="color-desc">用户账号创建后,不允许再次修改。</p> </label>
</div> <p class="help-block">用户账号创建后,不允许再次修改。</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">联系手机</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">联系手机</span>
<span class="color-desc margin-left-5">Phone</span>
<input type="tel" maxlength="11" autocomplete="off" autofocus name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入联系手机" class="layui-input"> <input type="tel" maxlength="11" autocomplete="off" autofocus name="phone" value='{$vo.phone|default=""}' pattern="^1[3-9][0-9]{9}$" placeholder="请输入联系手机" class="layui-input">
<p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p> </label>
</div> <p class="color-desc">可选,用户联系手机号码,需要填写正确的格式</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">联系邮箱</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">联系邮箱</span>
<span class="color-desc margin-left-5">Email</span>
<input name="mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.mail|default=""}' placeholder="请输入联系邮箱" class="layui-input"> <input name="mail" autocomplete="off" pattern="^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$" value='{$vo.mail|default=""}' placeholder="请输入联系邮箱" class="layui-input">
<p class="color-desc">可选,用户联系电子邮箱,需要填写正确的格式</p> </label>
</div> <p class="color-desc">可选,用户联系电子邮箱,需要填写正确的格式</p>
</div> </div>
{notempty name='authorizes'} {notempty name='authorizes'}
<div class="layui-form-item">
<label class="layui-form-label">访问授权</label> <div class="layui-form-item relative">
<div class="layui-input-block"> <span class="color-green font-w7">访问授权</span>
<span class="color-desc margin-left-5">Authorization</span>
<div class="layui-textarea">
{if isset($vo.username) and $vo.username eq 'admin'} {if isset($vo.username) and $vo.username eq 'admin'}
<span class="color-desc" style="line-height:36px">超级用户不需要配置权限</span> <span class="color-desc">超级用户不需要配置权限</span>
{elseif empty($authorizes)}
<span class="color-desc">未配置权限</span>
{else} {else}
{foreach $authorizes as $authorize} {foreach $authorizes as $authorize}
<label class="think-checkbox"> <label class="think-checkbox layui-unselect">
{if in_array($authorize.id, $vo.authorize)} {if in_array($authorize.id, $vo.authorize)}
<input type="checkbox" checked name="authorize[]" value="{$authorize.id}" lay-ignore> {$authorize.title} <input type="checkbox" checked name="authorize[]" value="{$authorize.id}" lay-ignore> {$authorize.title}
{else} {else}
@ -41,23 +52,26 @@
{/if} {/if}
</label> </label>
{/foreach} {/foreach}
{empty name='authorizes'}<span class="color-desc" style="line-height:36px">未配置权限</span>{/empty}
{/if} {/if}
</div> </div>
</div> </div>
{/notempty} {/notempty}
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">用户描述</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">用户描述</span>
<span class="color-desc margin-left-5">Description</span>
<textarea placeholder="请输入用户描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea> <textarea placeholder="请输入用户描述" class="layui-textarea" name="desc">{$vo.desc|default=""}</textarea>
</div> </label>
</div> </div>
</div> </div>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<div class="layui-form-item text-center"> <div class="layui-form-item text-center">
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<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>
<script>window.form.render();</script>
</form> </form>

View File

@ -2,12 +2,12 @@
{block name="button"} {block name="button"}
{if auth("admin/user/add")} {if auth("add")}
<button data-modal='{:url("add")}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加用户</button> <button data-modal='{:url("add")}' data-title="添加用户" class='layui-btn layui-btn-sm layui-btn-primary'>添加用户</button>
{/if} {/if}
{if auth("admin/user/remove")} {if auth("remove")}
<button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('admin/user/remove')}" data-confirm="确定要删除这些用户吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除用户</button> <button data-action='{:url("remove")}' data-rule="id#{key}" data-csrf="{:systoken('remove')}" data-confirm="确定要删除这些用户吗?" class='layui-btn layui-btn-sm layui-btn-primary'>删除用户</button>
{/if} {/if}
{/block} {/block}
@ -46,22 +46,22 @@
<td class='text-left nowrap'>{if $vo.login_num>0}{$vo.login_at|format_datetime}{else} - {/if}</td> <td class='text-left nowrap'>{if $vo.login_num>0}{$vo.login_at|format_datetime}{else} - {/if}</td>
<td class='text-left nowrap'> <td class='text-left nowrap'>
{if auth("admin/user/pass")} {if auth("pass")}
<a class="layui-btn layui-btn-normal layui-btn-sm" data-title="设置密码" data-modal='{:url("pass")}?id={$vo.id}'>密 码</a> <a class="layui-btn layui-btn-normal layui-btn-sm" data-title="设置密码" data-modal='{:url("pass")}?id={$vo.id}'>密 码</a>
{/if} {/if}
{if auth("admin/user/edit")} {if auth("edit")}
<a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a> <a data-dbclick class="layui-btn layui-btn-sm" data-title="编辑用户" data-modal='{:url("edit")}?id={$vo.id}'>编 辑</a>
{/if} {/if}
{if $vo.status eq 1 and auth("admin/user/forbid")} {if $vo.status eq 1 and auth("forbid")}
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('admin/user/forbid')}">禁 用</a> <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('forbid')}" data-value="id#{$vo.id};status#0" data-csrf="{:systoken('forbid')}">禁 用</a>
{elseif $vo.status eq 0 and auth("admin/user/resume")} {elseif $vo.status eq 0 and auth("resume")}
<a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('admin/user/resume')}">启 用</a> <a class="layui-btn layui-btn-sm layui-btn-warm" data-action="{:url('resume')}" data-value="id#{$vo.id};status#1" data-csrf="{:systoken('resume')}">启 用</a>
{/if} {/if}
{if auth("admin/user/remove")} {if auth("remove")}
<a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('admin/user/remove')}">删 除</a> <a class="layui-btn layui-btn-sm layui-btn-danger" data-confirm="确定要删除该用户吗?" data-action="{:url('remove')}" data-value="id#{$vo.id}" data-csrf="{:systoken('remove')}">删 除</a>
{/if} {/if}
</td> </td>

View File

@ -1,51 +1,55 @@
<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"> <div class="layui-card-body padding-left-40">
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label label-required">用户账号</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">用户账号</span>
<!--{if $vo and isset($vo.username)}--> <span class="color-desc margin-left-5">Username</span>
<!--{if isset($vo) and isset($vo.username)}-->
<input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray"> <input disabled value='{$vo.username|default=""}' class="layui-input layui-bg-gray">
<p class="help-block">用户账号创建后,不允许再次修改。</p>
<!--{else}--> <!--{else}-->
<input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符用户名称" class="layui-input"> <input name="username" value='{$vo.username|default=""}' required pattern="^.{4,}$" placeholder="请输入4位及以上字符用户名称" class="layui-input">
<!--{/if}--> <!--{/if}-->
</div> </label>
<p class="help-block">用户账号创建后,不允许再次修改。</p>
</div> </div>
<!--{if $verify}--> <!--{if $verify}-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">旧的密码</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">旧的密码</span>
<span class="color-desc margin-left-5">Old Password</span>
<input type="password" autofocus name="oldpassword" value='' pattern="^\S{1,}$" required placeholder="请输入旧的密码" class="layui-input"> <input type="password" autofocus name="oldpassword" value='' pattern="^\S{1,}$" required placeholder="请输入旧的密码" class="layui-input">
<p class="help-block">请输入旧密码来验证修改权限,旧密码不限制格式。</p> </label>
</div> <p class="color-desc">请输入旧密码来验证修改权限,旧密码不限制格式。</p>
</div> </div>
<!--{/if}--> <!--{/if}-->
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">新的密码</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">新的密码</span>
<span class="color-desc margin-left-5">New Password</span>
<input type="password" name="password" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入新的密码" class="layui-input"> <input type="password" name="password" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入新的密码" class="layui-input">
<p class="help-block">密码必需包含大小写字母、数字、符号的任意两者组合。</p> </label>
</div> <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
</div> </div>
<div class="layui-form-item"> <div class="layui-form-item">
<label class="layui-form-label">重复密码</label> <label class="relative block">
<div class="layui-input-block"> <span class="color-green font-w7">重复密码</span>
<span class="color-desc margin-left-5">Retype Password</span>
<input type="password" name="repassword" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入重复密码" class="layui-input"> <input type="password" name="repassword" maxlength="32" pattern="^(?![\d]+$)(?![a-zA-Z]+$)(?![^\da-zA-Z]+$).{6,32}$" required placeholder="请输入重复密码" class="layui-input">
<p class="help-block">密码必需包含大小写字母、数字、符号的任意两者组合。</p> </label>
</div> <p class="color-desc">密码必需包含大小写字母、数字、符号的任意两者组合。</p>
</div> </div>
</div> </div>
<div class="hr-line-dashed"></div> <div class="hr-line-dashed"></div>
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<div class="layui-form-item text-center"> <div class="layui-form-item text-center">
{notempty name='vo.id'}<input type='hidden' value='{$vo.id}' name='id'>{/notempty}
<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>

2
vendor/autoload.php vendored
View File

@ -4,4 +4,4 @@
require_once __DIR__ . '/composer/autoload_real.php'; require_once __DIR__ . '/composer/autoload_real.php';
return ComposerAutoloaderInit51aa80bd984c4321321fc668067c748f::getLoader(); return ComposerAutoloaderInit3d67c96a2b8de036c09432e1ae9a5210::getLoader();

View File

@ -2,7 +2,7 @@
// autoload_real.php @generated by Composer // autoload_real.php @generated by Composer
class ComposerAutoloaderInit51aa80bd984c4321321fc668067c748f class ComposerAutoloaderInit3d67c96a2b8de036c09432e1ae9a5210
{ {
private static $loader; private static $loader;
@ -19,15 +19,15 @@ class ComposerAutoloaderInit51aa80bd984c4321321fc668067c748f
return self::$loader; return self::$loader;
} }
spl_autoload_register(array('ComposerAutoloaderInit51aa80bd984c4321321fc668067c748f', 'loadClassLoader'), true, true); spl_autoload_register(array('ComposerAutoloaderInit3d67c96a2b8de036c09432e1ae9a5210', 'loadClassLoader'), true, true);
self::$loader = $loader = new \Composer\Autoload\ClassLoader(); self::$loader = $loader = new \Composer\Autoload\ClassLoader();
spl_autoload_unregister(array('ComposerAutoloaderInit51aa80bd984c4321321fc668067c748f', 'loadClassLoader')); spl_autoload_unregister(array('ComposerAutoloaderInit3d67c96a2b8de036c09432e1ae9a5210', 'loadClassLoader'));
$useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
if ($useStaticLoader) { if ($useStaticLoader) {
require_once __DIR__ . '/autoload_static.php'; require_once __DIR__ . '/autoload_static.php';
call_user_func(\Composer\Autoload\ComposerStaticInit51aa80bd984c4321321fc668067c748f::getInitializer($loader)); call_user_func(\Composer\Autoload\ComposerStaticInit3d67c96a2b8de036c09432e1ae9a5210::getInitializer($loader));
} else { } else {
$map = require __DIR__ . '/autoload_namespaces.php'; $map = require __DIR__ . '/autoload_namespaces.php';
foreach ($map as $namespace => $path) { foreach ($map as $namespace => $path) {
@ -48,19 +48,19 @@ class ComposerAutoloaderInit51aa80bd984c4321321fc668067c748f
$loader->register(true); $loader->register(true);
if ($useStaticLoader) { if ($useStaticLoader) {
$includeFiles = Composer\Autoload\ComposerStaticInit51aa80bd984c4321321fc668067c748f::$files; $includeFiles = Composer\Autoload\ComposerStaticInit3d67c96a2b8de036c09432e1ae9a5210::$files;
} else { } else {
$includeFiles = require __DIR__ . '/autoload_files.php'; $includeFiles = require __DIR__ . '/autoload_files.php';
} }
foreach ($includeFiles as $fileIdentifier => $file) { foreach ($includeFiles as $fileIdentifier => $file) {
composerRequire51aa80bd984c4321321fc668067c748f($fileIdentifier, $file); composerRequire3d67c96a2b8de036c09432e1ae9a5210($fileIdentifier, $file);
} }
return $loader; return $loader;
} }
} }
function composerRequire51aa80bd984c4321321fc668067c748f($fileIdentifier, $file) function composerRequire3d67c96a2b8de036c09432e1ae9a5210($fileIdentifier, $file)
{ {
if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) { if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
require $file; require $file;

View File

@ -4,7 +4,7 @@
namespace Composer\Autoload; namespace Composer\Autoload;
class ComposerStaticInit51aa80bd984c4321321fc668067c748f class ComposerStaticInit3d67c96a2b8de036c09432e1ae9a5210
{ {
public static $files = array ( public static $files = array (
'841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php', '841780ea2e1d6545ea3a253239d59c05' => __DIR__ . '/..' . '/qiniu/php-sdk/src/Qiniu/functions.php',
@ -314,9 +314,9 @@ class ComposerStaticInit51aa80bd984c4321321fc668067c748f
public static function getInitializer(ClassLoader $loader) public static function getInitializer(ClassLoader $loader)
{ {
return \Closure::bind(function () use ($loader) { return \Closure::bind(function () use ($loader) {
$loader->prefixLengthsPsr4 = ComposerStaticInit51aa80bd984c4321321fc668067c748f::$prefixLengthsPsr4; $loader->prefixLengthsPsr4 = ComposerStaticInit3d67c96a2b8de036c09432e1ae9a5210::$prefixLengthsPsr4;
$loader->prefixDirsPsr4 = ComposerStaticInit51aa80bd984c4321321fc668067c748f::$prefixDirsPsr4; $loader->prefixDirsPsr4 = ComposerStaticInit3d67c96a2b8de036c09432e1ae9a5210::$prefixDirsPsr4;
$loader->classMap = ComposerStaticInit51aa80bd984c4321321fc668067c748f::$classMap; $loader->classMap = ComposerStaticInit3d67c96a2b8de036c09432e1ae9a5210::$classMap;
}, null, ClassLoader::class); }, null, ClassLoader::class);
} }