iframeMain.htm 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>${context.getContextName()}</title>
  5. <meta charset="UTF-8">
  6. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  7. ${Styles.src(zhiqim.css)}
  8. ${Scripts.src(zhiqim.js)}
  9. ${Styles.src(zmr_theme.css)}
  10. ${Scripts.src(zmr_theme.js)}
  11. ${Scripts.src(zhiqim_iframenav.js)}
  12. ${Styles.htmlOverflowHidden()}
  13. <script>
  14. Zmr.contextPath = "${context.getContextPath()}";
  15. Zin.contextPath = "${context.getContextPath()}";
  16. Z.onload(Zmr.calcMainbodyHeight);
  17. Z(window).resize(Zmr.calcMainbodyHeight);
  18. Z(window).resize(Zin.setTranslateForShowActive);
  19. <#if !sessionUser.isWelcomeUrl()>
  20. Z.onload(function()
  21. {
  22. var $elem = Z("#sidebar [data-url]");
  23. if ($elem.length > 0)
  24. {//存在指定主页,主动打开
  25. Zin.doClickChildMenu($elem[0], $elem.attr("data-url"));
  26. }
  27. });
  28. </#if>
  29. </script>
  30. </head>
  31. <body>
  32. <!--顶部导航 -->
  33. <div class="topnav">
  34. <div id="logo" class="logo z-pointer z-text-left ${sessionUser.getSidebarClass()}" onclick="Zin.selectIframeTab('menu_index');">${context.getAttribute("name")}</div>
  35. <div class="topnavleft">
  36. <div class="bar z-w60 z-text-center z-pointer" onclick="Zmr.sidebar();"><i class="z-font z-list z-px22"></i></div>
  37. ${zhiqim_manager_topnav_left_defined()}
  38. </div>
  39. <div class="topnavright">
  40. ${zhiqim_manager_topnav_right_defined()}
  41. <#if sessionUser.getOperatorType() lt 2>
  42. <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>
  43. </#if>
  44. <div class="nav z-w100 z-text-center z-pointer" onclick="Zin.refreshIframeTabActive();">刷新</div>
  45. <div class="nav z-w100 z-text-center z-pointer" onclick="Z.L.confirm('${context.getRootPath("/"+zhiqim_manager+"/logout.htm")}', '确实要退出吗?');">退出系统</div>
  46. </div>
  47. </div>
  48. <!--容器开始 -->
  49. <div id="container" class="container">
  50. <!--侧边导航 -->
  51. <div id="sidebar" class="sidebar ${sessionUser.getSidebarClass()}">
  52. <!-- 个人中心 -->
  53. <div class="z-h80 z-pd-t15 z-pd-l15" style="border-bottom:1px solid #22282e;">
  54. <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>
  55. <div class="z-float-left z-lh25">
  56. <span class="z-px14 z-bold z-color-white">${sessionUser.getOperatorName()}</span><br>
  57. <a href="javascript:void(0);" onclick="Zin.doClickChildMenu(this, '${context.getRootPath("/"+zhiqim_manager+"/profile.htm")}');"><span class="z-color-white z-px12">个人中心</span></a>
  58. </div>
  59. </div>
  60. <!-- 栏目列表 -->
  61. <#var topMenuCode = sessionUser.getSelectedTopMenuCodeOrFirstMenuCode(request, sessionUser.getMainUrl())/>
  62. <#for topMenu : sessionUser.getTopMenuList()>
  63. <#if topMenu.getMenuName() != "我的设计" && topMenu.getMenuName() != "入驻考核" >
  64. <#if sessionUser.hasChildMenu(topMenu.getMenuCode())>
  65. <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>
  66. <ul id="${topMenu.getMenuCode()}" style="display: <#if topMenu.getMenuCode() == topMenuCode>block<#else>none</#if>;">
  67. <#for childMenu : sessionUser.getChildMenuList(topMenu.getMenuCode())>
  68. <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>
  69. </#for>
  70. </ul>
  71. <#elseif Validates.isNotEmptyBlank(topMenu.getMenuUrl())>
  72. <p onclick="Zin.doClickChildMenu(this, '${context.getRootPath(topMenu.getMenuUrl())}');"><i class="z-font z-px18 z-mg-r5 ${topMenu.getMenuIcon()}"></i>#{topMenu.getMenuName()}</p>
  73. </#if>
  74. </#if>
  75. </#for>
  76. </div>
  77. <!-- 框架导航 -->
  78. <div class="iframenav z-h40 z-lh40 z-bg-white z-bd-b" style="margin-left:<#if sessionUser.hasSidebar()>200px<#else>0</#if>">
  79. <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>
  80. <div class="iframenav-tab-wrap">
  81. <ul class="iframenav-tab-list">
  82. <li class="iframenav-tab-item active" id="tab_menu_index" onclick="Zin.selectIframeTabEvent(event);"><span>首页</span></li>
  83. </ul>
  84. </div>
  85. <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>
  86. <div class="iframenav-ctrl">
  87. <div class="iframenav-ctrl-title" onclick="Zin.toggleIframeCtrlWrap();">关闭操作<i class="z-font z-arrow-down"></i></div>
  88. <div class="iframenav-ctrl-wrap">
  89. <ul>
  90. <li class="iframenav-ctrl-item" onclick="Zin.selectIframeTabActive();">定位当前选项卡</li>
  91. </ul>
  92. <ul>
  93. <li class="iframenav-ctrl-item" onclick="Zin.closeIframeTabAll();">关闭全部选项卡</li>
  94. <li class="iframenav-ctrl-item" onclick="Zin.closeIframeTabOther();">关闭其他选项卡</li>
  95. </ul>
  96. </div>
  97. </div>
  98. </div>
  99. <!--框架内容-->
  100. <div id="mainbody" class="mainbody iframenav-cont z-h100p" style="margin-left:<#if sessionUser.hasSidebar()>200px<#else>0</#if>">
  101. <div id="iframe_menu_index" class="iframenav-cont-item active">
  102. <iframe id="mainFrame" name="mainFrame" frameborder="0" scrolling="auto" src="welcome.htm"></iframe>
  103. </div>
  104. </div>
  105. <!--容器结束 -->
  106. </div>
  107. <#if Validates.isNotEmptyBlank(sessionUser.getOperator().getInitialPassword()) && sessionUser.getOperator().getInitialPassword().equals(sessionUser.getOperator().getOperatorPass())>
  108. <script>
  109. function doModifyPass(form)
  110. {
  111. var ajax = new Z.Ajax();
  112. ajax.setContextPath("${context.getContextPath()}");
  113. ajax.setClassName("ZmrProfilePresenter");
  114. ajax.setMethodName("doModifyPass");
  115. ajax.setParamForm(form);
  116. ajax.setFailureAlert();
  117. ajax.setSuccessAlertReloadParent("修改成功");
  118. ajax.execute();
  119. }
  120. var dialog = new Z.Dialog();
  121. dialog.title = '<span style="font-weight:bold">初始密码需要修改</span>';
  122. dialog.text = '<div id="dialog_content"></div>';
  123. dialog.width = 650;
  124. dialog.height = 280;
  125. dialog.fixed = true;
  126. dialog.close = function ()
  127. {//关闭
  128. dialog.remove();
  129. dialog = null;
  130. }
  131. dialog.execute();
  132. dialog.$background.remove();//去边框
  133. var text = `
  134. <form>
  135. <input type="text" class="z-hidden-fixed">
  136. <input type="password" class="z-hidden-fixed">
  137. <table class="z-table z-mg-t10 z-mg-b10">
  138. <tr class="z-h60">
  139. <td width="80" class="zi-pd-l10">旧&ensp;密&ensp;码:</td>
  140. <td width="303"><input name="oldPassword" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16" autocomplete="off"></td>
  141. <td width="10" class="z-px14 z-text-red zi-pd-t6">*</td>
  142. <td width="*" class="zi-pd-r10 z-px14 z-color-999">请输入原始密码</td>
  143. </tr>
  144. <tr class="z-h60">
  145. <td class="zi-pd-l10">新&ensp;密&ensp;码:</td>
  146. <td><input name="newPassword" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16" autocomplete="off"></td>
  147. <td class="z-px14 z-text-red zi-pd-t6">*</td>
  148. <td class="zi-pd-r10 z-px12 z-color-999">6-16位密码,大写字母、小写字母、数字和特殊字符必须四选三,特殊字符支持</span><span class="z-px12 z-color-999 z-samp">.\`_~!@#$%</span></td>
  149. </tr>
  150. <tr class="z-h60">
  151. <td class="zi-pd-l10">确认密码:</td>
  152. <td><input name="newPassword2" type="password" class="z-input z-w300 ${zmr_color_class}" maxlength="16" autocomplete="off"></td>
  153. <td class="z-px14 z-text-red zi-pd-t6">*</td>
  154. <td class="zi-pd-r10 z-px14 z-color-999">再次输入新密码</td>
  155. </tr>
  156. </table>
  157. <div class="z-absolute z-b0 z-l0 z-w100p z-h80 z-pd20 z-text-center z-bg-gray">
  158. <button type="button" class="z-button z-large z-w100 ${zmr_color_class}" onclick="doModifyPass(this.form);">提交</button>
  159. </div>
  160. </form>
  161. `;
  162. Z("#dialog_content").htmlc(text);
  163. dialog.innerAlert = false;
  164. dialog.submit = function(){
  165. }
  166. document.getElementsByClassName("z-font z-error")[0].remove();
  167. </script>
  168. </#if>
  169. </body>
  170. </html>