Zhiqim Console(管理控制台)是知启蒙框架中最简洁的管理控制台组件,没有数据库,只保留一个账号,非常适用于后端程序嵌入WEB控制台模式,包括首页、登录、主界面、左侧菜单和欢迎页功能,依赖该组件实现基本的账号验证,通过覆盖原则增加自有功能。

森中灵 最后提交于17天前 替换lib
profileModifyPassword.zml2KB
${request.getValidateScript()}
<script>
function doUpdatePassword(form)
{
    var ajax = new Z.Ajax();
    ajax.setClassName("ZmrProfilePresenter");
    ajax.setMethodName("doUpdatePassword");
    ajax.setParamForm(form);
    ajax.setFailureAlert();
    ajax.setSuccessAlertReloadParent("修改成功");
    ajax.execute();
}
</script>

<form>
<input type="text" class="z-hidden-fixed">
<input type="password" class="z-hidden-fixed">
<table class="z-table z-mg-t10 z-mg-b10">
<tr class="z-h60">
    <td width="80" class="zi-pd-l10">旧&ensp;密&ensp;码:</td>
    <td width="303"><input name="oldPassword" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16" autocomplete="off"></td>
    <td width="10" class="z-px14 z-text-red zi-pd-t6">*</td>
    <td width="*" class="zi-pd-r10 z-px14 z-color-999">请输入原始密码</td>
</tr>
<tr class="z-h60">
    <td class="zi-pd-l10">新&ensp;密&ensp;码:</td>
    <td><input name="newPassword" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16" autocomplete="off"></td>
    <td class="z-px14 z-text-red zi-pd-t6">*</td>
    <td class="zi-pd-r10 z-px12 z-color-999">6-16位密码,大写字母、小写字母、数字和特殊字符必须四选三,特殊字符支持</span><span class="z-px12 z-color-999 z-samp">.`_~!@#$%</span></td>
</tr>
<tr class="z-h60">
    <td class="zi-pd-l10">确认密码:</td>
    <td><input name="newPassword2" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16" autocomplete="off"></td>
    <td class="z-px14 z-text-red zi-pd-t6">*</td>
    <td class="zi-pd-r10 z-px14 z-color-999">再次输入新密码</td>
</tr>
</table>
<div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
    <button type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="doUpdatePassword(this.form);">提交</button>
    <button type="button" class="z-button z-large z-w100 z-mg-l10"  onclick="parent.Z.Dialog.close();">关闭</button>
</div>
</form>