fjqtmain.jsp 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <%@ page language="java" contentType="text/html;charset=utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp"%>
  3. <html>
  4. <head>
  5. <title>宁夏集控</title>
  6. <style>
  7. body {
  8. font-size: 12px;
  9. margin-left: 0px;
  10. margin-top: 0px;
  11. margin-right: 0px;
  12. margin-bottom: 0px;
  13. }
  14. @font-face {
  15. font-family: 'fontNameRegular';
  16. src:
  17. url('<%=request.getContextPath()%>/resource/fonts/DS-DIGIT-webfont.eot')
  18. ;
  19. src: local('<%=request.getContextPath()%>/resource/fonts/DS-DIGIT-webfont Regular'
  20. ),
  21. local('<%=request.getContextPath()%>/resource/fonts/DS-DIGIT-webfont'),
  22. url('<%=request.getContextPath()%>/resource/fonts/DS-DIGIT-webfont.woff')
  23. format('woff'),
  24. url('<%=request.getContextPath()%>/resource/fonts/DS-DIGIT-webfont.ttf')
  25. format('truetype'),
  26. url('<%=request.getContextPath()%>/resource/fonts/DS-DIGIT-webfont.svg#fontName')
  27. format('svg');
  28. font-size: 20px;
  29. font-weight: bolder;
  30. }
  31. </style>
  32. <link rel="stylesheet" type="text/css"
  33. href="<%=request.getContextPath()%>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  34. <script
  35. src="<%=request.getContextPath()%>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js"
  36. type="text/javascript">
  37. </script>
  38. <script
  39. src="<%=request.getContextPath()%>/resource/plugin/jqueryui/development-bundle/ui/jquery.ui.widget.js">
  40. </script>
  41. <script
  42. src="<%=request.getContextPath()%>/resource/plugin/jqueryui/development-bundle/ui/jquery.ui.tabs.js">
  43. </script>
  44. <script type="text/javascript">
  45. $(function() {
  46. $("#windfarm").attr("value", '<s:property value="windfarm"/>');
  47. $("#tabs").tabs( {
  48. select : function(event, ui) {
  49. // ui.tab锚元素选中的标签页
  50. // ui.panel 锚元素选中的标签页的内容
  51. // ui.index 锚元素选中的标签页的索引(从0开始)
  52. if (ui.index == 0) {
  53. var windfarm2 = $(window.frames[1].document).find("#windfarm")
  54. .val();
  55. var windfarm3 = $(window.frames[2].document).find("#windfarm")
  56. .val();
  57. if (windfarm2 != null) {
  58. $("#tab1").attr(
  59. "src",
  60. "<%=request.getContextPath()%>/analysis/analysisindex.action?windfarm="
  61. + windfarm2);
  62. } else if (windfarm3 != null) {
  63. $("#tab1").attr(
  64. "src",
  65. "<%=request.getContextPath()%>/analysis/analysisindex.action?windfarm="
  66. + windfarm3);
  67. }
  68. $("#tab2").attr("src", "");
  69. $("#tab3").attr("src", "");
  70. } else if (ui.index == 1) {
  71. var windfarm1 = $(window.frames[0].document).find("#windfarm")
  72. .val();
  73. var windfarm3 = $(window.frames[2].document).find("#windfarm")
  74. .val();
  75. if (windfarm1 != null) {
  76. $("#tab2").attr(
  77. "src",
  78. "<%=request.getContextPath()%>/analysis/analysismonthindex.action?windfarm="
  79. + windfarm1);
  80. } else if (windfarm3 != null) {
  81. $("#tab2").attr(
  82. "src",
  83. "<%=request.getContextPath()%>/analysis/analysismonthindex.action?windfarm="
  84. + windfarm3);
  85. }
  86. $("#tab1").attr("src", "");
  87. $("#tab3").attr("src", "");
  88. } else if (ui.index == 2) {
  89. var windfarm2 = $(window.frames[1].document).find("#windfarm")
  90. .val();
  91. var windfarm1 = $(window.frames[0].document).find("#windfarm")
  92. .val();
  93. if (windfarm1 != null) {
  94. $("#tab3").attr(
  95. "src",
  96. "<%=request.getContextPath()%>/analysis/analysisyearindex.action?windfarm="
  97. + windfarm1);
  98. } else if (windfarm2 != null) {
  99. $("#tab3").attr(
  100. "src",
  101. "<%=request.getContextPath()%>/analysis/analysisyearindex.action?windfarm="
  102. + windfarm2);
  103. }
  104. $("#tab2").attr("src", "");
  105. $("#tab1").attr("src", "");
  106. } else {
  107. $("#tab1").attr("src", "");
  108. $("#tab2").attr("src", "");
  109. $("#tab3").attr("src", "");
  110. }
  111. }
  112. });
  113. var windfarm = $("#windfarm").val();
  114. $("#tab1").attr(
  115. "src",
  116. "<%=request.getContextPath()%>/analysis/analysisindex.action?windfarm="
  117. + windfarm);
  118. });
  119. </script>
  120. </head>
  121. <body>
  122. <div id="tabs"
  123. style="width: 1880px; height: 860px; border: 0px; margin: 0px">
  124. <ul>
  125. <li>
  126. <a href="#tabs-1">风电场历史日信息</a>
  127. </li>
  128. <li>
  129. <a href="#tabs-2">风电场历史月信息</a>
  130. </li>
  131. <li>
  132. <a href="#tabs-3">风电场历史年信息</a>
  133. </li>
  134. </ul>
  135. <div id="tabs-1" style="border: 0px; margin: 0px">
  136. <iframe id="tab1" src="" style="border: 0px; margin: 0px"
  137. marginwidth="0px" marginheight="0px" frameborder="0" width="1890px"
  138. height="830px" scrolling="auto"></iframe>
  139. </div>
  140. <div id="tabs-2">
  141. <iframe id="tab2" src="" style="border: 0px; margin: 0px"
  142. marginwidth="0px" marginheight="0px" frameborder="0" width="1890px"
  143. height="830px" scrolling="auto"></iframe>
  144. </div>
  145. <div id="tabs-3">
  146. <iframe id="tab3" src="" style="border: 0px; margin: 0px"
  147. marginwidth="0px" marginheight="0px" frameborder="0" width="1890px"
  148. height="830px" scrolling="auto"></iframe>
  149. </div>
  150. </div>
  151. <s:hidden id="windfarm"></s:hidden>
  152. </body>
  153. </html>