1center.jsp 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  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:80%;"></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 style="height: 80px;width:100%;background: #fff; font-family: '微软雅黑'">
  119. <div style="height: 10px;width:100%;background: #fff;"></div>
  120. <div style="height: 40px; width: 1125px;margin-left: 50px;">
  121. <c:forEach var="m" items="${menus}" varStatus="status">
  122. <c:choose>
  123. <c:when test="${m.flag == 1}">
  124. <c:if test="${status.index != 0}">
  125. <div style="float:left;background: url(images/progess_2.png) repeat-x; background-position:18px; width: 100px;height: 40px;;"></div>
  126. </c:if>
  127. <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;">
  128. <a href="javascript:kj('低收入人员保障房业务管理','${m.text}','${m.iconCls}','${m.href}')">${status.index + 1}</a>
  129. </div>
  130. </c:when>
  131. <c:otherwise>
  132. <c:if test="${status.index != 0}">
  133. <div style="float:left;background: url(images/progess_1.png) repeat-x; background-position:18px; width: 100px;height: 40px;;"></div>
  134. </c:if>
  135. <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;">
  136. ${status.index + 1}
  137. </div>
  138. </c:otherwise>
  139. </c:choose>
  140. </c:forEach>
  141. </div>
  142. <div style="height: 20px; width: 1125px;margin-left: 0px;">
  143. <c:forEach var="m" items="${menus}" varStatus="status">
  144. <c:choose>
  145. <c:when test="${m.flag == 1}">
  146. <div id="my" style="float:left;width: 125px;text-align: center;font-size: 14px;font-weight: bold;color: #1369d8;">
  147. <a href="javascript:kj('低收入人员保障房业务管理','${m.text}','${m.iconCls}','${m.href}')">${m.text}</a>
  148. </div>
  149. </c:when>
  150. <c:otherwise>
  151. <div id="my" style="float:left;width: 125px;text-align: center;font-size: 14px;font-weight: bold;color: #bfbfbf;">
  152. ${m.text}
  153. </div>
  154. </c:otherwise>
  155. </c:choose>
  156. </c:forEach>
  157. </div>
  158. </div>
  159. <div id="sysTab" class="easyui-tabs" data-options="fit:true,border:false,tools:'#index_tabs-tool'">
  160. <div id="portalLayout" title="&nbsp;工作台" data-options="iconCls:'icon-house'">
  161. <iframe id="gzt" src="mainAction_index" frameborder="0" style="border:0;width:100%;height:80%;"></iframe>
  162. </div>
  163. </div>
  164. <div id="index_tabs-tool" class="my-tabs-tool" style="right: 0px;margin-top: 0px;">
  165. <input type="hidden" value="1" id="expand_hidden"/>
  166. <a class="easyui-linkbutton" data-options="plain:true" title="" type="expand_view" onclick="menuHandler('expand_view')">展开</a>
  167. <a class="easyui-linkbutton" data-options="plain:true" title="" type="refresh" onclick="menuHandler('refresh')">刷新</a>
  168. <a class="easyui-linkbutton" data-options="plain:true" title="" type="close" onclick="menuHandler('close')">关闭当前</a>
  169. <a class="easyui-linkbutton" data-options="plain:true" title="" type="closeOther" onclick="menuHandler('closeOther')">关闭其它</a>
  170. <a class="easyui-linkbutton" data-options="plain:true" title="" type="closeAll" onclick="menuHandler('closeAll')">关闭全部</a>
  171. </div>