149 lines
6.6 KiB
HTML
149 lines
6.6 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>${context.getContextName()}</title>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
|
|
${Styles.src(zhiqim.css)}
|
|
${Scripts.src(zhiqim.js)}
|
|
${Styles.src(zmr_theme.css)}
|
|
${Scripts.src(zmr_theme.js)}
|
|
</head>
|
|
|
|
<body>
|
|
${Htmls.toCallFrame()}
|
|
<!--顶部导航 -->
|
|
<div class="topnav">
|
|
<div id="logo" class="logo z-pointer z-text-left ${sessionUser.getSidebarClass()}" onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/main.htm")}');">${context.getAttribute("name")}</div>
|
|
<div class="topnavleft">
|
|
<div class="bar z-w60 z-text-center z-pointer" onclick="Zmr.sidebar();"><i class="z-font z-list z-px22"></i></div>
|
|
${zhiqim_manager_topnav_left_defined()}
|
|
</div>
|
|
<div class="topnavright">
|
|
${zhiqim_manager_topnav_right_defined()}
|
|
<#if ZmrOrgDao.getOrgList(request, sessionUser.getOperatorCode()).size() gt 1>
|
|
<div class="nav z-text-center z-pointer z-pd-l20 z-pd-r20" style="max-width:200px;" onclick="Zmr.selectOrgDialog();">${ZmrOrgDao.getOrgName(request, sessionUser.getSelectedOrgId())}</div>
|
|
</#if>
|
|
<div class="nav z-w100 z-text-center z-pointer" onclick="Z.L.reload();">刷新</div>
|
|
<div class="nav z-w100 z-text-center z-pointer" onclick="Z.L.confirm('${context.getRootPath("/"+zhiqim_manager+"/logout.htm")}', '确实要退出吗?');">退出系统</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--容器开始 -->
|
|
<div class="container">
|
|
|
|
<!--边导航开始-->
|
|
<div id="sidebar" class="${sessionUser.getSidebarClass()}">
|
|
<!--顶导航-->
|
|
<#var topMenuCode = sessionUser.getSelectedTopMenuCode(request, designatedPath)/>
|
|
<ul class="sidebar-top">
|
|
<li class="avatar<#if topMenuCode == null> active</#if>" onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}');"><img class="z-bd-rd50p z-w40 z-h40" src="${sessionUser.getAvatar50()}"></li>
|
|
<#for topMenu : sessionUser.getTopMenuList()>
|
|
<#var childMenuFirst = sessionUser.getChildMenuFirst(topMenu.getMenuCode())/>
|
|
<#if childMenuFirst != null || Validates.isNotEmptyBlank(topMenu.getMenuUrl())>
|
|
<li onclick="Z.L.href('${context.getRootPath(childMenuFirst==null?topMenu.getMenuUrl():childMenuFirst.getMenuUrl())}');" <#if topMenu.getMenuCode() == topMenuCode>class="active"</#if>><i class="z-font ${topMenu.getMenuIcon()}"></i><br>#{topMenu.getMenuNameAbbr()}</li>
|
|
</#if>
|
|
</#for>
|
|
</ul>
|
|
<#var childMenuCode = sessionUser.getSelectedSecondMenuCode(request, designatedPath)/>
|
|
<#if childMenuCode != null && topMenuCode != null>
|
|
<#var topMenu = sessionUser.getMenu(topMenuCode)/>
|
|
<#if sessionUser.hasChildMenu(topMenu.getMenuCode())>
|
|
<!--子导航-->
|
|
<div class="sidebar-child">
|
|
<div class="info z-float-left z-text-left z-bd-b" >
|
|
<span class="z-relative z-px18 z-bold" style="line-height:32px;"><i class="z-font ${topMenu.getMenuIcon()}"></i><span class="z-mg-l10">#{topMenu.getMenuName()}</span></span><br>
|
|
</div>
|
|
<ul>
|
|
<#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
|
|
<li onclick="Z.L.href('${context.getRootPath(childMenu.getMenuUrl())}');" class="<#if childMenu.getMenuCode() == childMenuCode> active</#if>"><i class="z-font z-px16 ${childMenu.getMenuIcon()}"></i><span class="z-mg-l5">#{childMenu.getMenuName()}</span></p>
|
|
</#for>
|
|
</ul>
|
|
</div>
|
|
</#if>
|
|
</#if>
|
|
<!--边导航结束-->
|
|
</div>
|
|
|
|
<!--主体-->
|
|
<#var mainbodyLeft = 260/>
|
|
<#if topMenuCode == null || !sessionUser.hasChildMenu(topMenuCode)>
|
|
<#var mainbodyLeft = 60/>
|
|
</#if>
|
|
<#if !sessionUser.hasSidebar()>
|
|
<div id="mainbody" class="mainbody" value="${mainbodyLeft}" style="margin-left:0;">
|
|
<#elseif topMenuCode == null || !sessionUser.hasChildMenu(topMenuCode)>
|
|
<div id="mainbody" class="mainbody" value="${mainbodyLeft}" style="margin-left:60px;">
|
|
<#else>
|
|
<div id="mainbody" class="mainbody" value="${mainbodyLeft}">
|
|
</#if>
|
|
<#include include/>
|
|
</div>
|
|
|
|
<!--容器结束 -->
|
|
</div>
|
|
<#if Validates.isNotEmptyBlank(sessionUser.getOperator().getInitialPassword()) && sessionUser.getOperator().getInitialPassword().equals(sessionUser.getOperator().getOperatorPass())>
|
|
<script>
|
|
function doModifyPass(form)
|
|
{
|
|
var ajax = new Z.Ajax();
|
|
ajax.setContextPath("${context.getContextPath()}");
|
|
ajax.setClassName("ZmrProfilePresenter");
|
|
ajax.setMethodName("doModifyPass");
|
|
ajax.setParamForm(form);
|
|
ajax.setFailureAlert();
|
|
ajax.setSuccessAlertReloadParent("修改成功");
|
|
ajax.execute();
|
|
}
|
|
var dialog = new Z.Dialog();
|
|
dialog.title = '<span style="font-weight:bold">初始密码需要修改</span>';
|
|
dialog.text = '<div id="dialog_content"></div>';
|
|
dialog.width = 650;
|
|
dialog.height = 280;
|
|
dialog.fixed = true;
|
|
dialog.close = function ()
|
|
{//关闭
|
|
dialog.remove();
|
|
dialog = null;
|
|
}
|
|
dialog.execute();
|
|
dialog.$background.remove();//去边框
|
|
var text = `
|
|
<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">旧 密 码:</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">新 密 码:</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="doModifyPass(this.form);">提交</button>
|
|
</div>
|
|
</form>
|
|
`;
|
|
Z("#dialog_content").htmlc(text);
|
|
dialog.innerAlert = false;
|
|
dialog.submit = function(){
|
|
|
|
}
|
|
document.getElementsByClassName("z-font z-error")[0].remove();
|
|
</script>
|
|
</#if>
|
|
</body>
|
|
</html> |