Zhiqim Admin(简版的管理台)是从知启蒙管理台分离出来,保留系统参数表、系统菜单表、操作员、操作日志,去除组织、部门、角色等复杂权限功能,仅保留操作员独立权限功能。系统设计时保留ZmrSessionUser和ZmrOperator类,方便以后升级到知启蒙管理台。
森中灵 最后提交于5月前 整理V8.0.6
mainFrame.htm3KB
<!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)}
${Scripts.setContextPath(context)}
${Styles.src(zmr_theme.css)}
${Scripts.src(zmr_theme.js)}
${Styles.htmlOverflowHidden()}
${zhiqim_manager_console_log()}
<script>
//初始化
Z.onload(Zmr.containerFrame);
Z.onload(Zmr.addTopMenuClick);
//窗口变动
Z(window).resize(Zmr.containerFrame);
</script>
</head>
<body>
<!--顶部导航 -->
<div id="topnav" class="topnav">
<div id="logo" class="logo z-pointer z-text-left ${zhiqim_manager_logo_px()} ${sessionUser.getSidebarClass()}" onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/welcome.htm")}', mainFrame)">${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 z-user-select-none" onclick="Z.L.reload(mainFrame);">刷新</div>
<div class="nav z-w100 z-text-center z-pointer z-user-select-none" 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 z-bd-b">
<div class="z-float-left z-w50 z-h50 z-mg-r10"><img class="z-bd-rd50p z-bd z-pd3 z-bg-white z-w50 z-h50" src="${sessionUser.getAvatar50()}"></div>
<div class="z-float-left z-lh25">
<span class="z-px14 z-bold">${sessionUser.getOperatorName()}</span><br>
<span class="z-color-666"><a href="${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}" target="mainFrame">个人中心</a></span>
</div>
</div>
<!-- 栏目列表 -->
<#var topMenuCode = sessionUser.getSelectedTopMenuCodeOrFirstMenuCode(request)/>
<#var secondMenuCode = sessionUser.getSelectedSecondMenuCode(request)/>
<#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"><span></span></i></p>
<ul id="${topMenu.getMenuCode()}" style="display: <#if topMenu.getMenuCode() == topMenuCode>block<#else>none</#if>;">
<#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
<li onclick="Zmr.doClickChildMenu(this, '${context.getRootPath(childMenu.getMenuUrl())}');" <#if childMenu.getMenuCode() == secondMenuCode>class="active"</#if>>#{childMenu.getMenuName()}</li>
</#for>
</ul>
<#elseif Validates.isNotEmptyBlank(topMenu.getMenuUrl())>
<p onclick="Z.L.href('${context.getRootPath(topMenu.getMenuUrl())}', mainFrame);"><i class="z-font z-px18 z-mg-r5 ${topMenu.getMenuIcon()}"></i>#{topMenu.getMenuName()}</p>
</#if>
</#for>
</div>
<!--主体-->
<div id="mainbody" class="mainbody" style="margin-left:<#if sessionUser.hasSidebar()>200px<#else>0</#if>">
<iframe id="mainFrame" name="mainFrame" frameborder="0" scrolling="auto" src="${sessionUser.getIncludeUrl()}" height="100%" width="100%"></iframe>
</div>
<!--容器结束 -->
</div>
</body>
</html>