center.jsp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  1. <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
  2. <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  3. <% String basePath = request.getScheme()+ "://" + request.getServerName() + ":" +request.getServerPort() + request.getContextPath(); %>
  4. <script type="text/javascript"><!--
  5. $('#sysTab').tabs({
  6. //扩充上下文菜单
  7. onContextMenu: function(e, node){
  8. e.preventDefault();
  9. $('#tabMenu').menu('show', {
  10. left: e.pageX,
  11. top: e.pageY
  12. });
  13. }
  14. });
  15. var menuHandler = function(type){
  16. var selectedTab = $('#sysTab').tabs('getSelected');
  17. var title = selectedTab.panel('options').title;
  18. //var href = selectedTab.panel('options').content.split("\"")[1];
  19. var allTabs = $('#sysTab').tabs('tabs');
  20. if (type === 'expand_view') {
  21. if ($('#expand_hidden').val() == '0') {
  22. $('body').layout('expand', 'south');
  23. $('body').layout('expand', 'north');
  24. $('body').layout('expand', 'west');
  25. $('#expand_hidden').val(1);
  26. } else {
  27. $('body').layout('collapse', 'south');
  28. $('body').layout('collapse', 'north');
  29. $('body').layout('collapse', 'west');
  30. $('#expand_hidden').val(0);
  31. }
  32. }
  33. else if (type === 'refresh') {
  34. if(selectedTab.panel('options').content != null){
  35. parent.$.messager.progress({
  36. title : '提示',
  37. text : '数据处理中,请稍后....'
  38. });
  39. RefreshTab(selectedTab);
  40. }else{
  41. $('#gzt').attr('src', 'mainAction_index');
  42. }
  43. }
  44. else if (type === 'close') {
  45. if (selectedTab.panel('options').closable) {
  46. $('#sysTab').tabs('close', title);
  47. }
  48. }
  49. else if(type === 'closeOther'){
  50. var closeTabsTitle = [];
  51. $.each(allTabs, function() {
  52. var option = $(this).panel('options');
  53. if (option.closable && option.title != title) {
  54. closeTabsTitle.push(option.title);
  55. }
  56. });
  57. for ( var i = 0; i < closeTabsTitle.length; i++) {
  58. $('#sysTab').tabs('close', closeTabsTitle[i]);
  59. }
  60. }
  61. else if(type === 'closeAll'){
  62. var closeTabsTitle = [];
  63. $.each(allTabs, function() {
  64. var option = $(this).panel('options');
  65. if (option.closable) {
  66. closeTabsTitle.push(option.title);
  67. }
  68. });
  69. for ( var i = 0; i < closeTabsTitle.length; i++) {
  70. $('#sysTab').tabs('close', closeTabsTitle[i]);
  71. }
  72. }
  73. };
  74. function addTabFunction(options) {
  75. var t = $('#sysTab');
  76. if (t.tabs('exists', options.title)) {
  77. t.tabs('select', options.title);
  78. parent.$.messager.progress('close');
  79. } else {
  80. t.tabs('add', options);
  81. }
  82. }
  83. function kj(pName,text,iconCls,url){
  84. addTabFunction(
  85. {
  86. title : pName + "》" + text,
  87. closable : true,
  88. iconCls:iconCls,
  89. content : '<iframe src="' + url + '" frameborder="0" style="border:0;width:100%;height:100%;"></iframe>'
  90. }
  91. );
  92. }
  93. //刷新当前标签Tabs
  94. function RefreshTab(currentTab) {
  95. currentTab.panel('refresh');
  96. var url = $(currentTab.panel('options')).attr('href');
  97. $('#sysTab').tabs('update', {
  98. tab: currentTab,
  99. options: {
  100. href: url
  101. }
  102. });
  103. }
  104. --></script>
  105. <style>
  106. <!--
  107. .my-tabs-tool{
  108. position: absolute;
  109. top: 0;
  110. padding: 1px;
  111. overflow: hidden;
  112. border: 1px solid #95B8E7;
  113. }
  114. a{color:#fff; text-decoration: none;}
  115. #my a{color: #1369d8; text-decoration: none;}
  116. -->
  117. </style>
  118. <div class="easyui-layout" data-options="fit:true">
  119. <!-- <div data-options="region:'north',split:false,border:false,minHeight:80,maxHeight:80,">
  120. <div style="height: 80px;width:100%;background: #fff; font-family: '微软雅黑'">
  121. <div style="height: 10px;width:100%;background: #fff;"></div>
  122. <div style="height: 40px; width: 1125px;margin-left: auto;margin-right:auto;text-align:center;border: 1px solid #fff;overflow: hidden; ">
  123. <div style="width:50px;float: left;height: 40px;"></div>
  124. <c:forEach var="m" items="${menus}" varStatus="status">
  125. <c:choose>
  126. <c:when test="${m.flag == 1}">
  127. <c:if test="${status.index != 0}">
  128. <div style="float:left;background: url(images/progess_2.png) repeat-x; background-position:18px; width: 100px;height: 40px;;"></div>
  129. </c:if>
  130. <div style="float:left;background: url(images/note_2.png) no-repeat; background-position-y:7px; width: 25px;height: 40px; line-height: 40px; text-align: center;font-size: 20px; font-weight:bold; color: #fff;">
  131. <a href="javascript:kj('低收入人员保障房业务管理','${m.text}','${m.iconCls}','${m.href}')">${status.index + 1}</a>
  132. </div>
  133. </c:when>
  134. <c:otherwise>
  135. <c:if test="${status.index != 0}">
  136. <div style="float:left;background: url(images/progess_1.png) repeat-x; background-position:18px; width: 100px;height: 40px;;"></div>
  137. </c:if>
  138. <div style="float:left;background: url(images/note_1.png) no-repeat; background-position-y:7px; width: 25px;height: 40px; line-height: 40px; text-align: center;font-size: 20px; font-weight:bold; color: #fff;">
  139. ${status.index + 1}
  140. </div>
  141. </c:otherwise>
  142. </c:choose>
  143. </c:forEach>
  144. </div>
  145. <div style="height: 20px; width: 1125px;margin-left: auto;margin-right:auto;text-align:center;border: 1px solid #fff;overflow: hidden; ">
  146. <c:forEach var="m" items="${menus}" varStatus="status">
  147. <c:choose>
  148. <c:when test="${m.flag == 1}">
  149. <div id="my" style="float:left;width: 125px;text-align: center;font-size: 14px;font-weight: bold;color: #1369d8;">
  150. <a href="javascript:kj('低收入人员保障房业务管理','${m.text}','${m.iconCls}','${m.href}')">${m.text}</a>
  151. </div>
  152. </c:when>
  153. <c:otherwise>
  154. <div id="my" style="float:left;width: 125px;text-align: center;font-size: 14px;font-weight: bold;color: #bfbfbf;">
  155. ${m.text}
  156. </div>
  157. </c:otherwise>
  158. </c:choose>
  159. </c:forEach>
  160. </div>
  161. </div>
  162. </div> -->
  163. <div data-options="region:'center'">
  164. <div id="sysTab" class="easyui-tabs" data-options="fit:true,border:false,tools:'#index_tabs-tool'">
  165. <div id="portalLayout" title="&nbsp;工作台" data-options="iconCls:'icon-house'">
  166. <iframe id="gzt" src="mainAction_index" frameborder="0" style="border:0;width:100%;height:99%;"></iframe>
  167. </div>
  168. </div>
  169. </div>
  170. </div>
  171. <div id="index_tabs-tool" class="my-tabs-tool" style="right: 0px;margin-top: 0px;">
  172. <input type="hidden" value="1" id="expand_hidden"/>
  173. <a class="easyui-linkbutton" data-options="plain:true" title="" type="expand_view" onclick="menuHandler('expand_view')">展开</a>
  174. <a class="easyui-linkbutton" data-options="plain:true" title="" type="refresh" onclick="menuHandler('refresh')">刷新</a>
  175. <a class="easyui-linkbutton" data-options="plain:true" title="" type="close" onclick="menuHandler('close')">关闭当前</a>
  176. <a class="easyui-linkbutton" data-options="plain:true" title="" type="closeOther" onclick="menuHandler('closeOther')">关闭其它</a>
  177. <a class="easyui-linkbutton" data-options="plain:true" title="" type="closeAll" onclick="menuHandler('closeAll')">关闭全部</a>
  178. </div>