temperatureIndex.jsp 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. <%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
  2. <%@include file="/pages/includes/taglibs.jsp" %>
  3. <%
  4. String contextPath = request.getContextPath();
  5. %>
  6. <head>
  7. <script src="/resource/js/jquery-1.2.6.pack.js" type="text/javascript"></script>
  8. <script type="text/javascript">
  9. function queryData(){
  10. window.location.href="temperatureIndex.action?wfId="+$("#wfId").val();
  11. }
  12. function thisPage(){
  13. $("#f1").attr("action","temperatureIndex.action").submit();
  14. }
  15. function selIt(objname){
  16. var tempTd;
  17. var tempFont;
  18. for(var i=101;i<108;i++)
  19. {
  20. tempTd="td"+i;
  21. tempFont="font"+i;
  22. if(document.getElementById(tempTd)!=null)
  23. {
  24. document.getElementById(tempTd).background = "../resource/images/temperature/"+tempTd+".png";
  25. }
  26. // if(document.getElementById(tempFont)!=null)
  27. // {
  28. /// document.getElementById(tempFont).color = "#000000";
  29. // }
  30. }
  31. var _id = objname.id.substr(2,objname.id.length);
  32. var _td = "td"+_id;
  33. var _font="font"+_id;
  34. document.getElementById(_td).background = "../resource/images/temperature/"+_td+"e.png";
  35. // document.getElementById(_font).color = "#ffffff";
  36. var action="temperatureFrame.action?index=";
  37. if(_id=="101"){
  38. action="temperatureFrame.action?index=";
  39. }
  40. if(_id=="102"){
  41. action="temperatureClx.action?index=";
  42. }
  43. if(_id=="103"){
  44. action="temperatureBj.action?index=";
  45. }
  46. if(_id=="104"){
  47. action="temperatureYyz.action?index=";
  48. }
  49. if(_id=="105"){
  50. action="temperatureZz.action?index=";
  51. }
  52. if(_id=="106"){
  53. action="temperatureZd.action?index=";
  54. }
  55. if(_id=="107"){
  56. action="temperatureQt.action?index=";
  57. }
  58. var windInfo = action+_id+"&wfId="+$("#wfId").val();
  59. document.getElementById("frameid").src=windInfo;
  60. }
  61. function SetCwinHeight(iframeObj){
  62. if (document.getElementById){
  63. if (iframeObj && !window.opera){
  64. if (iframeObj.contentDocument && iframeObj.contentDocument.body.offsetHeight){
  65. iframeObj.height = iframeObj.contentDocument.body.offsetHeight;
  66. }else if(document.frames[iframeObj.name].document && document.frames[iframeObj.name].document.body.scrollHeight){
  67. iframeObj.height = document.frames[iframeObj.name].document.body.scrollHeight;
  68. }
  69. }
  70. }
  71. }
  72. </script>
  73. <style type="text/css">
  74. fieldset legend {
  75. color:#302A2A;
  76. font: bold 16px/2 Verdana, Geneva, sans-serif;
  77. font-weight: bold;
  78. text-align: left;
  79. text-shadow: 2px 2px 2px rgb(88, 126, 156);
  80. }
  81. </style>
  82. </head>
  83. <body>
  84. <form action="wsTimeIndex.action" method="post" id="f1">
  85. <fieldset style="height: 60px" id="fst">
  86. <legend class="item_Name">查询条件</legend>
  87. <table width="100%" cellpadding="0" cellspacing="0" class="dataform">
  88. <tr>
  89. <th width="5%">
  90. 风场:
  91. </th>
  92. <td width="20%" >
  93. <s:select list="stations" cssStyle="width:90%" listKey="id" listValue="name" id="wfId" name="wfId" headerKey="" headerValue="请选择" ></s:select>
  94. </td>
  95. <td >
  96. <input type="button" class="button" onclick="javascript:queryData();" value="查看"/>
  97. </td>
  98. </tr>
  99. </table>
  100. </fieldset>
  101. <hr>
  102. <table width="100%" border="0" cellpadding="0" cellspacing="0">
  103. <tr>
  104. <td width="*" background="../resource/images/temperature/bar_Center.fw.png">
  105. <table width="840" border="0" cellpadding="0" cellspacing="0">
  106. <tr>
  107. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  108. <td id="td101" width="100" height="40" align="center" valign="middle"
  109. style="cursor:pointer;background-repeat:no-repeat;"
  110. onclick="selIt(this);"
  111. background="../resource/images/temperature/td101e.png"></td>
  112. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  113. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  114. <td id="td102" width="100" height="40" align="center" valign="middle"
  115. style="cursor:pointer;"
  116. onclick="selIt(this);"
  117. background="../resource/images/temperature/td102.png"></td>
  118. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  119. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  120. <td id="td103" width="100" height="40" align="center" valign="middle"
  121. style="cursor:pointer;"
  122. onclick="javascript:selIt(this)"
  123. background="../resource/images/temperature/td103.png"></td>
  124. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  125. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  126. <td id="td104" width="100" height="40" align="center" valign="middle"
  127. style="cursor:pointer;"
  128. onclick="selIt(this);"
  129. background="../resource/images/temperature/td104.png"></td>
  130. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  131. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  132. <td id="td105" width="100" height="40" align="center" valign="middle"
  133. style="cursor:pointer;"
  134. onclick="selIt(this);"
  135. background="../resource/images/temperature/td105.png"></td>
  136. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  137. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  138. <td id="td106" width="100" height="40" align="center" valign="middle"
  139. style="cursor:pointer;"
  140. onclick="selIt(this);"
  141. background="../resource/images/temperature/td106.png"></td>
  142. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  143. <td width="10" background="../resource/images/temperature/bar_left.fw.png"/>
  144. <td id="td107" width="100" height="40" align="center" valign="middle"
  145. style="cursor:pointer;"
  146. onclick="selIt(this);"
  147. background="../resource/images/temperature/td107.png"></td>
  148. <td width="10" background="../resource/images/temperature/bar_right.fw.png"/>
  149. </tr>
  150. </table>
  151. </td>
  152. </tr>
  153. </table>
  154. <table width="100%" cellpadding="0" cellspacing="0" height="100%">
  155. <tr>
  156. <td>
  157. <iframe id="frameid" name="frameid" src="temperatureFrame.action?index=101&wfId=${wfId }" frameborder="0" scrolling="auto" style="width:1850px;height: 840px" />
  158. </td>
  159. </tr>
  160. </table>
  161. </form>
  162. </body>