172 خطوط
7.9 KiB
HTML
172 خطوط
7.9 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)}
|
|
${Scripts.src(zhiqim_iframenav.js)}
|
|
${Styles.htmlOverflowHidden()}
|
|
<script>
|
|
Zmr.contextPath = "${context.getContextPath()}";
|
|
Zin.contextPath = "${context.getContextPath()}";
|
|
Z.onload(Zmr.calcMainbodyHeight);
|
|
Z(window).resize(Zmr.calcMainbodyHeight);
|
|
Z(window).resize(Zin.setTranslateForShowActive);
|
|
<#if !sessionUser.isWelcomeUrl()>
|
|
Z.onload(function()
|
|
{
|
|
var $elem = Z("#sidebar [data-url]");
|
|
if ($elem.length > 0)
|
|
{//存在指定主页,主动打开
|
|
Zin.doClickChildMenu($elem[0], $elem.attr("data-url"));
|
|
}
|
|
});
|
|
</#if>
|
|
</script>
|
|
</head>
|
|
|
|
<body>
|
|
<!--顶部导航 -->
|
|
<div class="topnav">
|
|
<div id="logo" class="logo z-pointer z-text-left ${sessionUser.getSidebarClass()}" onclick="Zin.selectIframeTab('menu_index');">${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()}
|
|
<div class="nav z-w100 z-text-center z-pointer" onclick="Zin.refreshIframeTabActive();">刷新</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 id="container" class="container">
|
|
|
|
<!--侧边导航 -->
|
|
<div id="sidebar" class="sidebar ${sessionUser.getSidebarClass()}">
|
|
<!-- 个人中心 -->
|
|
<div class="z-h80 z-pd-t15 z-pd-l15" style="border-bottom:1px solid #22282e;">
|
|
<div class="z-float-left z-w50 z-h50 z-mg-r10"><img class="z-bd-rd50p z-w50 z-h50" src="${sessionUser.getAvatar50()}"></div>
|
|
<div class="z-float-left z-lh25">
|
|
<span class="z-px14 z-bold z-color-white">${sessionUser.getOperatorName()}</span><br>
|
|
<a href="javascript:void(0);" onclick="Zin.doClickChildMenu(this, '${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}');"><span class="z-color-white z-px12">个人中心</span></a>
|
|
</div>
|
|
</div>
|
|
<!-- 栏目列表 -->
|
|
<#var topMenuCode = sessionUser.getSelectedTopMenuCodeOrFirstMenuCode(request, sessionUser.getMainUrl())/>
|
|
<#for topMenu : sessionUser.getTopMenuList()>
|
|
<#if sessionUser.hasChildMenu(topMenu.getMenuCode())>
|
|
<p><i class="z-font z-px18 z-mg-r5 ${topMenu.getMenuIcon()}"></i>#{topMenu.getMenuName()}<i class="z-arrow z-px5 z-gray"></i></p>
|
|
<ul id="${topMenu.getMenuCode()}" style="display: <#if topMenu.getMenuCode() == topMenuCode>block<#else>none</#if>;">
|
|
<#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
|
|
<li onclick="Zin.doClickChildMenu(this, '${context.getRootPath(childMenu.getMenuUrl())}');" <#if context.getRootPath(childMenu.getMenuUrl()) == sessionUser.getMainUrl()>class="active" data-url="${context.getRootPath(childMenu.getMenuUrl())}"</#if>><i class="z-font z-mg-r10 ${childMenu.getMenuIcon()}"></i>#{childMenu.getMenuName()}</li>
|
|
</#for>
|
|
</ul>
|
|
<#elseif Validates.isNotEmptyBlank(topMenu.getMenuUrl())>
|
|
<p onclick="Zin.doClickChildMenu(this, '${context.getRootPath(topMenu.getMenuUrl())}');"><i class="z-font z-px18 z-mg-r5 ${topMenu.getMenuIcon()}"></i>#{topMenu.getMenuName()}</p>
|
|
</#if>
|
|
</#for>
|
|
</div>
|
|
|
|
<!-- 框架导航 -->
|
|
<div class="iframenav z-h40 z-lh40 z-bg-white z-bd-b" style="margin-left:<#if sessionUser.hasSidebar()>200px<#else>0</#if>">
|
|
<div class="iframenav-prev" onclick="Zin.turnIframeTab(false);"><i class="z-font z-arrow-left"></i><i class="z-font z-arrow-left"></i></div>
|
|
<div class="iframenav-tab-wrap">
|
|
<ul class="iframenav-tab-list">
|
|
<li class="iframenav-tab-item active" id="tab_menu_index" onclick="Zin.selectIframeTabEvent(event);"><span>首页</span></li>
|
|
</ul>
|
|
</div>
|
|
<div class="iframenav-next" onclick="Zin.turnIframeTab(true);"><i class="z-font z-arrow-right"></i><i class="z-font z-arrow-right"></i></div>
|
|
<div class="iframenav-ctrl">
|
|
<div class="iframenav-ctrl-title" onclick="Zin.toggleIframeCtrlWrap();">关闭操作<i class="z-font z-arrow-down"></i></div>
|
|
<div class="iframenav-ctrl-wrap">
|
|
<ul>
|
|
<li class="iframenav-ctrl-item" onclick="Zin.selectIframeTabActive();">定位当前选项卡</li>
|
|
</ul>
|
|
<ul>
|
|
<li class="iframenav-ctrl-item" onclick="Zin.closeIframeTabAll();">关闭全部选项卡</li>
|
|
<li class="iframenav-ctrl-item" onclick="Zin.closeIframeTabOther();">关闭其他选项卡</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<!--框架内容-->
|
|
<div id="mainbody" class="mainbody iframenav-cont z-h100p" style="margin-left:<#if sessionUser.hasSidebar()>200px<#else>0</#if>">
|
|
<div id="iframe_menu_index" class="iframenav-cont-item active">
|
|
<iframe id="mainFrame" name="mainFrame" frameborder="0" scrolling="auto" src="welcome.htm"></iframe>
|
|
</div>
|
|
</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> |