adminManage.jsp 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  2. <%@page import="com.ccgj.platform.util.GlobalDefine"%>
  3. <%@page import="java.io.File"%>
  4. <%@taglib uri="/struts-tags" prefix="s"%>
  5. <%@page import="com.opensymphony.xwork2.ActionContext"%>
  6. <%@ page import="com.ccgj.database.beans.YHB"%>
  7. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  8. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <%String fpath = "D:/";%>
  11. <title>管理员---导航主页</title>
  12. <link href="../ligerui/lib/ligerUI/skins/Aqua/css/ligerui-all.css"
  13. rel="stylesheet" type="text/css" />
  14. <link href="css/all.css" rel="stylesheet" type="text/css" />
  15. <script src="../ligerui/lib/jquery/jquery-1.5.2.min.js"
  16. type="text/javascript"></script>
  17. <script src="../ligerui/lib/ligerUI/js/ligerui.min.js"
  18. type="text/javascript"></script>
  19. <script src="../ligerui/indexdata.js" type="text/javascript"></script>
  20. <script src="../manage/js/json2.js" type="text/javascript"></script>
  21. <script src="../../ligerui/lib/ligerUI/js/plugins/ligerDialog.js" type="text/javascript"></script>
  22. <script type="text/javascript">
  23. var tab = null;
  24. var accordion = null;
  25. var tree = null;
  26. $(function() {
  27. //布局
  28. $("#layout1").ligerLayout( {
  29. leftWidth : 190,
  30. height : '100%',
  31. heightDiff : -34,
  32. space : 4,
  33. onHeightChanged : f_heightChanged
  34. });
  35. var height = $(".l-layout-center").height();
  36. //Tab
  37. $("#framecenter").ligerTab( {
  38. height : height
  39. });
  40. //面板
  41. $("#accordion1").ligerAccordion( {
  42. height : height - 24,
  43. speed : null
  44. });
  45. $(".l-link").hover(function() {
  46. $(this).addClass("l-link-over");
  47. }, function() {
  48. $(this).removeClass("l-link-over");
  49. });
  50. $("#tree1").ligerTree( {
  51. url : 'columns!init?time=<%=System.currentTimeMillis()%>',
  52. //data: {"sad":"123"},
  53. checkbox : false,
  54. slide : false,
  55. nodeWidth : 120,
  56. parentIDFieldName :'pid', //父节点 ID
  57. attribute : [ 'nodename', 'url' ],
  58. onSelect : function(node) {
  59. if (!node.data.url)
  60. return;
  61. var tabid = $(node.target).attr("tabid");
  62. if (!tabid) {
  63. tabid = new Date().getTime();
  64. $(node.target).attr("tabid", tabid)
  65. }
  66. f_addTab(tabid, node.data.text, node.data.url);
  67. },
  68. onClick : function(node) {
  69. //alert(node.data.id);
  70. if(node.data.id=='10010011001'){
  71. window.open('<s:property value="#application['basePath']"/>/manage/beiqu/index.jsp');
  72. return;
  73. }
  74. }
  75. });
  76. var indexdata2 =
  77. [
  78. { isexpand: "true", text: "文件列表", url: "wzb/wzb!shareFileList?lmid=666&fpath=<%=fpath%>"
  79. }
  80. ];
  81. //树
  82. $("#tree3").ligerTree({
  83. data : indexdata2 ,
  84. checkbox: false,
  85. slide: false,
  86. nodeWidth: 120,
  87. attribute: ['nodename', 'url'],
  88. render : function(a){
  89. if (!a.isnew) return a.text;
  90. return '<a href="' + a.url + '" target="_blank">' + a.text + '</a>';
  91. },
  92. onSelect: function (node)
  93. {
  94. if (!node.data.url) return;
  95. if (node.data.isnew)
  96. {
  97. return;
  98. }
  99. var tabid = $(node.target).attr("tabid");
  100. if (!tabid)
  101. {
  102. tabid = new Date().getTime();
  103. $(node.target).attr("tabid", tabid)
  104. }
  105. f_addTab(tabid, node.data.text, node.data.url);
  106. }
  107. });
  108. tab = $("#framecenter").ligerGetTabManager();
  109. accordion = $("#accordion1").ligerGetAccordionManager();
  110. tree = $("#tree1").ligerGetTreeManager();
  111. $("#pageloading").hide();
  112. accordion2 = $("#accordion2").ligerGetAccordionManager();
  113. });
  114. function f_heightChanged(options) {
  115. if (tab)
  116. tab.addHeight(options.diff);
  117. if (accordion && options.middleHeight - 24 > 0)
  118. accordion.setHeight(options.middleHeight - 24);
  119. }
  120. function f_addTab(tabid, text, url) {
  121. tab.addTabItem( {
  122. tabid : tabid,
  123. text : text,
  124. url : url
  125. });
  126. }
  127. function exit(){
  128. $.ajax({
  129. type:"post",
  130. url:'new_manage/login!exit',
  131. dataType:'json',
  132. success: function(success){
  133. if(success.msg == "1"){
  134. window.location.href = "login.jsp";
  135. }
  136. }
  137. });
  138. }
  139. </script>
  140. <%
  141. String id="";
  142. String tjsj="";
  143. if(ActionContext.getContext().getSession().get(GlobalDefine.USER) != null){
  144. YHB yhbBean = (YHB) ActionContext.getContext().getSession().get(GlobalDefine.USER);
  145. id = yhbBean.getId().toString();
  146. tjsj = yhbBean.getTjsj().trim();
  147. }else{
  148. out.print("<script>alert('操作延时,请重新登陆!');parent.window.location.href='login.jsp'</script>");
  149. return;
  150. }
  151. %>
  152. </head>
  153. <body style="padding: 0px; background: #EAEEF5;">
  154. <input type="hidden" id="tjsj" value="<%=tjsj%>"/>
  155. <input type="hidden" id="id" value="<%=id%>"/>
  156. <input type="hidden" id="url" value="manageAdmin/manageAdmin!init?yhsx=3&id=<%=id%>"/>
  157. <div id="pageloading"></div>
  158. <div id="topmenu" class="l-topmenu">
  159. <div class="l-topmenu-logo">
  160. 管理员
  161. </div>
  162. <div class="l-topmenu-welcome">
  163. <a href="http://192.168.1.9/cetdz/" class="l-link2" target="_blank">首页</a>
  164. <span class="space">|</span>
  165. <a href="javascript:f_addTab('superAdmin','个人中心','manageAdmin/manageAdmin!init?yhsx=3&id=<%=id%>')">个人中心</a>
  166. <span class="space">|</span>
  167. <a href="" class="l-link2" onclick="exit()">退出</a>
  168. </div>
  169. </div>
  170. <div id="layout1"
  171. style="width: 99.2%; margin: 0 auto; margin-top: 4px;">
  172. <div position="left" title="主要菜单" id="accordion1">
  173. <div title="功能列表" class="l-scroll">
  174. <ul id="tree1" style="margin-top: 3px;"></ul>
  175. <ul id="tree2" style="margin-top: 3px;"></ul>
  176. </div>
  177. <div title="共享文件">
  178. <div style=" height:7px;"></div>
  179. <ul id="tree3" style="margin-top: 3px;"></ul>
  180. </div>
  181. </div>
  182. <div position="center" id="framecenter">
  183. <div tabid="home" title="我的主页" style="height: 300px">
  184. <iframe frameborder="0" name="home" id="home" src="welcome.jsp"></iframe>
  185. </div>
  186. </div>
  187. </div>
  188. <div style="height: 32px; line-height: 32px; text-align: center;">
  189. <iframe frameborder="0" name="foot" id="foot" src="foot.jsp" width="320px" height="32px" scrolling="no"></iframe>
  190. </div>
  191. <div style="display: none"></div>
  192. </body>
  193. <script>
  194. $(function() {
  195. /**判断是否需要提示密码定期更换**/
  196. let nowdate = new Date();
  197. let tjsj = $("#tjsj").val();
  198. nowdate.setDate(nowdate.getDate()-30);
  199. if(nowdate >= new Date(tjsj)){
  200. $.ligerDialog.confirm('密码超出使用期限,是否立即修改密码?', function (confirm)
  201. {
  202. if(confirm){
  203. f_addTab('superAdmin','个人中心',$("#url").val());
  204. }
  205. });
  206. }
  207. });
  208. </script>
  209. </html>