adminManage.jsp 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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 type="text/javascript">
  22. var tab = null;
  23. var accordion = null;
  24. var tree = null;
  25. $(function() {
  26. //布局
  27. $("#layout1").ligerLayout( {
  28. leftWidth : 190,
  29. height : '100%',
  30. heightDiff : -34,
  31. space : 4,
  32. onHeightChanged : f_heightChanged
  33. });
  34. var height = $(".l-layout-center").height();
  35. //Tab
  36. $("#framecenter").ligerTab( {
  37. height : height
  38. });
  39. //面板
  40. $("#accordion1").ligerAccordion( {
  41. height : height - 24,
  42. speed : null
  43. });
  44. $(".l-link").hover(function() {
  45. $(this).addClass("l-link-over");
  46. }, function() {
  47. $(this).removeClass("l-link-over");
  48. });
  49. $("#tree1").ligerTree( {
  50. url : 'columns!init?time=<%=System.currentTimeMillis()%>',
  51. //data: {"sad":"123"},
  52. checkbox : false,
  53. slide : false,
  54. nodeWidth : 120,
  55. parentIDFieldName :'pid', //父节点 ID
  56. attribute : [ 'nodename', 'url' ],
  57. onSelect : function(node) {
  58. if (!node.data.url)
  59. return;
  60. var tabid = $(node.target).attr("tabid");
  61. if (!tabid) {
  62. tabid = new Date().getTime();
  63. $(node.target).attr("tabid", tabid)
  64. }
  65. f_addTab(tabid, node.data.text, node.data.url);
  66. },
  67. onClick : function(node) {
  68. //alert(node.data.id);
  69. if(node.data.id=='10010011001'){
  70. window.open('<s:property value="#application['basePath']"/>/manage/beiqu/index.jsp');
  71. return;
  72. }
  73. }
  74. });
  75. var indexdata2 =
  76. [
  77. { isexpand: "true", text: "文件列表", url: "wzb/wzb!shareFileList?lmid=666&fpath=<%=fpath%>"
  78. }
  79. ];
  80. //树
  81. $("#tree3").ligerTree({
  82. data : indexdata2 ,
  83. checkbox: false,
  84. slide: false,
  85. nodeWidth: 120,
  86. attribute: ['nodename', 'url'],
  87. render : function(a){
  88. if (!a.isnew) return a.text;
  89. return '<a href="' + a.url + '" target="_blank">' + a.text + '</a>';
  90. },
  91. onSelect: function (node)
  92. {
  93. if (!node.data.url) return;
  94. if (node.data.isnew)
  95. {
  96. return;
  97. }
  98. var tabid = $(node.target).attr("tabid");
  99. if (!tabid)
  100. {
  101. tabid = new Date().getTime();
  102. $(node.target).attr("tabid", tabid)
  103. }
  104. f_addTab(tabid, node.data.text, node.data.url);
  105. }
  106. });
  107. tab = $("#framecenter").ligerGetTabManager();
  108. accordion = $("#accordion1").ligerGetAccordionManager();
  109. tree = $("#tree1").ligerGetTreeManager();
  110. $("#pageloading").hide();
  111. accordion2 = $("#accordion2").ligerGetAccordionManager();
  112. });
  113. function f_heightChanged(options) {
  114. if (tab)
  115. tab.addHeight(options.diff);
  116. if (accordion && options.middleHeight - 24 > 0)
  117. accordion.setHeight(options.middleHeight - 24);
  118. }
  119. function f_addTab(tabid, text, url) {
  120. tab.addTabItem( {
  121. tabid : tabid,
  122. text : text,
  123. url : url
  124. });
  125. }
  126. function exit(){
  127. $.ajax({
  128. type:"post",
  129. url:'manage/login!exit',
  130. dataType:'json',
  131. success: function(success){
  132. if(success.msg == "1"){
  133. window.location.href = "login.jsp";
  134. }
  135. }
  136. });
  137. }
  138. </script>
  139. <%
  140. String id="";
  141. String name="";
  142. if(ActionContext.getContext().getSession().get(GlobalDefine.USER) != null){
  143. YHB yhbBean = (YHB) ActionContext.getContext().getSession().get(GlobalDefine.USER);
  144. id = yhbBean.getId().toString();
  145. name = yhbBean.getYhmc().toString().trim();
  146. }else{
  147. out.print("<script>alert('操作延时,请重新登陆!');parent.window.location.href='login.jsp'</script>");
  148. return;
  149. }
  150. %>
  151. </head>
  152. <body style="padding: 0px; background: #EAEEF5;">
  153. <div id="pageloading"></div>
  154. <div id="topmenu" class="l-topmenu">
  155. <div class="l-topmenu-logo">
  156. 管理员
  157. </div>
  158. <div class="l-topmenu-welcome">
  159. <a href="http://192.168.1.9/cetdz/" class="l-link2" target="_blank">首页</a>
  160. <span class="space">|</span>
  161. <a href="javascript:f_addTab('superAdmin','个人中心','manageAdmin/manageAdmin!init?yhsx=3&id=<%=id%>')">个人中心</a>
  162. <span class="space">|</span>
  163. <a href="" class="l-link2" onclick="exit()">退出</a>
  164. </div>
  165. </div>
  166. <div id="layout1"
  167. style="width: 99.2%; margin: 0 auto; margin-top: 4px;">
  168. <div position="left" title="主要菜单" id="accordion1">
  169. <div title="功能列表" class="l-scroll">
  170. <ul id="tree1" style="margin-top: 3px;"></ul>
  171. <ul id="tree2" style="margin-top: 3px;"></ul>
  172. </div>
  173. <div title="共享文件">
  174. <div style=" height:7px;"></div>
  175. <ul id="tree3" style="margin-top: 3px;"></ul>
  176. </div>
  177. </div>
  178. <div position="center" id="framecenter">
  179. <div tabid="home" title="我的主页" style="height: 300px">
  180. <iframe frameborder="0" name="home" id="home" src="welcome.jsp"></iframe>
  181. </div>
  182. </div>
  183. </div>
  184. <div style="height: 32px; line-height: 32px; text-align: center;">
  185. <iframe frameborder="0" name="foot" id="foot" src="foot.jsp" width="320px" height="32px" scrolling="no"></iframe>
  186. </div>
  187. <div style="display: none"></div>
  188. </body>
  189. </html>