mtxhHkClientMain.htm 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <title>mtxhHkClientMain</title>
  5. <script type="text/javascript">
  6. $(function(){
  7. /* if ($("#lqid").val() > 0) {
  8. var chartADiv = $("#chartC");
  9. $("#chartDiv_F").attr("style", "width:" + chartADiv.width() + "px");
  10. $("#chartDiv_F").attr("style", "height:" + (chartADiv.height() - 7) + "px");
  11. jQuery.ajax({
  12. type : "get",
  13. url : "getHkClientMtxhTjt.htm",
  14. data : {"lqid" : "$!lqid"},
  15. dataType : "json",
  16. async : true,
  17. success : function(data) {
  18. if (data.color.length == 0) {
  19. $("#chartDiv_F").html("<img src='views/hkclient/sy/mtxh.jpg' width='100%' height='100%'/>");
  20. } else {
  21. getHighchartTjt2(data, "chartDiv_F");
  22. }
  23. }
  24. });
  25. } */
  26. /* var pg=document.getElementById('pg');
  27. setInterval(function(e){
  28. if(pg.value!=100) {
  29. pg.value++;
  30. }else{
  31. pg.value=0;
  32. }
  33. },100); */
  34. /* var progressbar = {
  35. init:function(){
  36. var count=0;
  37. //通过间隔定时器实现百分比文字效果,通过计算CSS动画持续时间进行间隔设置
  38. var timer=setInterval(function(e){
  39. count++;
  40. if(count===100) {
  41. clearInterval(timer);
  42. };
  43. },17);
  44. }
  45. };
  46. progressbar.init(); */
  47. });
  48. </script>
  49. </head>
  50. <body>
  51. <input type="hidden" id="lqid" value="$!lqid"/>
  52. <div>
  53. <div id="chartDiv_F">
  54. <table class="table">
  55. <tr>
  56. <td class="col-lg-3">NH3-N</td>
  57. <td class="col-lg-3">$!{nh3n}mg/L</td>
  58. <td class="col-lg-6">
  59. <div id="progressbar" style="width: $!{nh3n1}px;">
  60. <div id="fill"></div>
  61. </div>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="col-lg-3">COD</td>
  66. <td class="col-lg-3">$!{cod}mg/L</td>
  67. <td class="col-lg-6">
  68. <div id="progressbar" style="width: $!{cod1}px;">
  69. <div id="fill"></div>
  70. </div>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="col-lg-3">BOD</td>
  75. <td class="col-lg-3">$!{bod}mg/L</td>
  76. <td class="col-lg-6">
  77. <div id="progressbar" style="width: $!{bod1}px;">
  78. <div id="fill"></div>
  79. </div>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td class="col-lg-3">SS</td>
  84. <td class="col-lg-3">$!{ss}mg/L</td>
  85. <td class="col-lg-6">
  86. <div id="progressbar" style="width: $!{ss1}px;">
  87. <div id="fill"></div>
  88. </div>
  89. </td>
  90. </tr>
  91. <tr>
  92. <td class="col-lg-3">污水排放量</td>
  93. <td class="col-lg-3">$!{wspfl}t/d</td>
  94. <td class="col-lg-6">
  95. <div id="progressbar" style="width: $!{wspfl1}px;">
  96. <div id="fill"></div>
  97. </div>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="col-lg-3">环保耗电</td>
  102. <td class="col-lg-3">$!{hbhd}kwh</td>
  103. <td class="col-lg-6">
  104. <div id="progressbar" style="width: $!{hbhd1}px;">
  105. <div id="fill"></div>
  106. </div>
  107. </td>
  108. </tr>
  109. </table>
  110. </div>
  111. </div>
  112. </body>
  113. </html>