Zhiqim Admin(简版的管理台)是从知启蒙管理台分离出来,保留系统参数表、系统菜单表、操作员、操作日志,去除组织、部门、角色等复杂权限功能,仅保留操作员独立权限功能。系统设计时保留ZmrSessionUser和ZmrOperator类,方便以后升级到知启蒙管理台。
森中灵 最后提交于5月前 整理V8.0.6
main.htm2KB
<!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)}
${zhiqim_manager_console_log()}
<script>
//初始化
Z.onload(Zmr.containerMain);
Z.onload(Zmr.tabnavmain);
//窗口变动
Z(window).resize(Zmr.containerMain);
Z(window).resize(Zmr.tabnavmain);
</script>
</head>
<body>
${Htmls.toCallFrame()}
<!--顶部导航 -->
<div id="topnav" class="topnav">
<div id="logo" class="logo z-pointer z-text-left ${zhiqim_manager_logo_px()}" onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/welcome.htm")}')">${context.getAttribute("name")}</div>
<div class="topnavleft">
<#var topMenuCode = sessionUser.getSelectedTopMenuCodeOrFirstMenuCode(request)/>
<#var childMenuCode = sessionUser.getSelectedSecondMenuCode(request)/>
<#for topMenu : sessionUser.getTopMenuList()>
<#if sessionUser.hasChildMenu(topMenu.getMenuCode())>
<div class="dropdown nav <#if topMenu.getMenuCode() == topMenuCode>active</#if>">#{topMenu.getMenuName()}<i class="z-float-right z-font z-arrowhead-down z-px10"></i>
<ul id="${topMenu.getMenuCode()}" class="subnav">
<#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
<li class="z-relative<#if childMenu.getMenuCode() == childMenuCode> active</#if>" onclick="location.href='${context.getRootPath(childMenu.getMenuUrl())}'">#{childMenu.getMenuName()}</li>
</#for>
</ul>
</div>
<#elseif Validates.isNotEmptyBlank(topMenu.getMenuUrl())>
<p onclick="Z.L.href('${context.getRootPath(topMenu.getMenuUrl())}');">#{topMenu.getMenuName()}</p>
</#if>
</#for>
${zhiqim_manager_topnav_left_defined()}
</div>
<div class="topnavright">
${zhiqim_manager_topnav_right_defined()}
<div class="nav z-w80 z-text-center z-pointer" onclick="Z.L.href('${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}');"><img class="z-bd-rd50p z-w40 z-h40" src="${sessionUser.getAvatar50()}"></div>
<div class="nav z-w100 z-text-center z-pointer z-user-select-none" onclick="Z.L.reload();">刷新</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="mainbody" class="mainbody">
<#include include/>
<!--内容结束-->
</div>
</div>
<!--脚注-->
<div class="footer">
<div class="footer-wrap">${zmr_copyright}</div>
</div>
</body>
</html>