analysistab.jsp 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  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: url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.eot');
  17. src: local('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont Regular'),
  18. local('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont'),
  19. url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.woff') format('woff'),
  20. url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.ttf') format('truetype'),
  21. url('<%=request.getContextPath() %>/resource/fonts/DS-DIGIT-webfont.svg#fontName') format('svg');
  22. font-size: 20px;
  23. font-weight: bolder;
  24. }
  25. .text_value {
  26. font-family: Arial, Helvetica, sans-serif;
  27. font-size: 14px;
  28. color: #000;
  29. text-decoration: none;
  30. font-weight: bold;
  31. }
  32. </style>
  33. <link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/resource/plugin/jqueryui/css/custom-theme/jquery-ui-1.9.2.custom.css" />
  34. <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/js/jquery-ui-1.9.2.custom.js" type="text/javascript"></script>
  35. <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/development-bundle/ui/jquery.ui.widget.js"></script>
  36. <script src="<%=request.getContextPath() %>/resource/plugin/jqueryui/development-bundle/ui/jquery.ui.tabs.js"></script>
  37. <script type="text/javascript">
  38. $(function() {
  39. $("#windfarm").attr("value", '<s:property value="windfarm"/>');
  40. $( "#tabs" ).tabs({
  41. select: function(event, ui) {
  42. // ui.tab锚元素选中的标签页
  43. // ui.panel 锚元素选中的标签页的内容
  44. // ui.index 锚元素选中的标签页的索引(从0开始)
  45. if(ui.index==0)
  46. {
  47. var windfarm2 =$(window.frames[1].document).find("#windfarm").val();
  48. var windfarm3 =$(window.frames[2].document).find("#windfarm").val();
  49. if(windfarm2!=null)
  50. {
  51. $("#tab1").attr("src","<%=request.getContextPath() %>/analysis/analysisindex.action?windfarm=" + windfarm2);
  52. }else if(windfarm3!=null)
  53. {
  54. $("#tab1").attr("src","<%=request.getContextPath() %>/analysis/analysisindex.action?windfarm=" + windfarm3);
  55. }
  56. $("#tab2").attr("src","about:blank");
  57. $("#tab3").attr("src","about:blank");
  58. }else if(ui.index==1)
  59. {
  60. var windfarm1 =$(window.frames[0].document).find("#windfarm").val();
  61. var windfarm3 =$(window.frames[2].document).find("#windfarm").val();
  62. if(windfarm1!=null)
  63. {
  64. $("#tab2").attr("src","<%=request.getContextPath() %>/analysis/analysismonthindex.action?windfarm=" + windfarm1);
  65. }else if(windfarm3!=null)
  66. {
  67. $("#tab2").attr("src","<%=request.getContextPath() %>/analysis/analysismonthindex.action?windfarm=" + windfarm3);
  68. }
  69. $("#tab1").attr("src","about:blank");
  70. $("#tab3").attr("src","about:blank");
  71. }else if(ui.index==2)
  72. {
  73. var windfarm2 =$(window.frames[1].document).find("#windfarm").val();
  74. var windfarm1 =$(window.frames[0].document).find("#windfarm").val();
  75. if(windfarm1!=null)
  76. {
  77. $("#tab3").attr("src","<%=request.getContextPath() %>/analysis/analysisyearindex.action?windfarm=" + windfarm1);
  78. }else if(windfarm2!=null)
  79. {
  80. $("#tab3").attr("src","<%=request.getContextPath() %>/analysis/analysisyearindex.action?windfarm=" + windfarm2);
  81. }
  82. $("#tab2").attr("src","about:blank");
  83. $("#tab1").attr("src","about:blank");
  84. }
  85. else
  86. {
  87. $("#tab1").attr("src","about:blank");
  88. $("#tab2").attr("src","about:blank");
  89. $("#tab3").attr("src","about:blank");
  90. }
  91. }
  92. });
  93. var windfarm=$("#windfarm").val();
  94. $("#tab1").attr("src","<%=request.getContextPath() %>/analysis/analysisindex.action?windfarm="+windfarm);
  95. });
  96. </script>
  97. </head>
  98. <body>
  99. <!--
  100. <table width="100%">
  101. <tr>
  102. <td align="left" class="text_value">
  103. <s:property value="windfarmname"/>
  104. </td>
  105. </tr>
  106. </table>
  107. -->
  108. <div id="tabs" style="width: 1880px;height: 840px;border: 0px;margin: 0px">
  109. <ul >
  110. <li><a href="#tabs-1" >日历史信息</a></li>
  111. <li><a href="#tabs-2">月历史信息</a></li>
  112. <li><a href="#tabs-3">年历史信息</a></li>
  113. </ul>
  114. <div id="tabs-1" style="border: 0px;margin: 0px">
  115. <iframe id="tab1" src="" style="border: 0px;margin: 0px" marginwidth="0px" marginheight="0px" frameborder="0" width="1890px" height="830px" scrolling="auto"></iframe>
  116. </div>
  117. <div id="tabs-2">
  118. <iframe id="tab2" src="" style="border: 0px;margin: 0px" marginwidth="0px" marginheight="0px" frameborder="0" width="1890px" height="830px" scrolling="auto"></iframe>
  119. </div>
  120. <div id="tabs-3">
  121. <iframe id="tab3" src="" style="border: 0px;margin: 0px" marginwidth="0px" marginheight="0px" frameborder="0" width="1890px" height="830px" scrolling="auto"></iframe>
  122. </div>
  123. </div>
  124. <s:hidden id="windfarm"></s:hidden>
  125. <s:hidden id="windfarmname"></s:hidden>
  126. </body>
  127. </html>