usersetup.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <link type="text/css" rel="stylesheet" href="ytWeb.css" />
  6. <script type="text/javascript" src="jQuery/jquery-1.8.3.min.js"></script>
  7. <script type="text/javascript" src="setup.js"></script>
  8. </head>
  9. <body style="font-size:16px;" onload="get_data()">
  10. <div id="main_div" class="main_div">
  11. <div id="time_label" class="time_label"></div>
  12. <div id="app_tab" class="app_tab on_tab" onclick="settab(1)">应用设置</div>
  13. <div id="sys_tab" class="sys_tab" onclick="settab(2)">系统设置</div>
  14. <div id="pno_tab" class="pno_tab" onclick="settab(3)">点位设置</div>
  15. <div id="ef_tab" class="ef_tab" onclick="settab(4)">告警参数</div>
  16. <div id="app_set" class="app_set">
  17. <div id="param_label_0" style="position:absolute;top:10px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">终端编号:</div>
  18. <input id="param_value_0" style="position:absolute;top:10px;left:140px;width:80px;height:20px;" value=""/>
  19. <div id="param_label_1" style="position:absolute;top:10px;left:360px;width:140px;text-align:right;height:30px;color:#fff;">计防设备ID:</div>
  20. <input id="param_value_1" style="position:absolute;top:10px;left:520px;width:200px;height:20px;" value=""/>
  21. <div id="param_label_2" style="position:absolute;top:50px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">计防应用Key:</div>
  22. <input id="param_value_2" style="position:absolute;top:50px;left:140px;width:240px;height:20px;" value=""/>
  23. <div id="param_label_3" style="position:absolute;top:50px;left:360px;width:140px;text-align:right;height:30px;color:#fff;">计防设备接口:</div>
  24. <input id="param_value_3" style="position:absolute;top:50px;left:520px;width:200px;height:20px;" value=""/>
  25. <div id="param_label_4" style="position:absolute;top:90px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">计防转发ID:</div>
  26. <input id="param_value_4" style="position:absolute;top:90px;left:140px;width:240px;height:20px;" value=""/>
  27. <div id="param_label_5" style="position:absolute;top:90px;left:360px;width:140px;text-align:right;height:30px;color:#fff;">计防转发Key:</div>
  28. <input id="param_value_5" style="position:absolute;top:90px;left:520px;width:200px;height:20px;" value=""/>
  29. <div id="param_label_6" style="position:absolute;top:130px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">计防应用使能:</div>
  30. <input id="param_value_6" style="position:absolute;top:130px;left:140px;width:20px;height:20px;" type="checkbox" value="0"/>
  31. <div id="param_label_7" style="position:absolute;top:130px;left:200px;width:140px;text-align:right;height:30px;color:#fff;">计防转发使能:</div>
  32. <input id="param_value_7" style="position:absolute;top:130px;left:360px;width:20px;height:20px;" type="checkbox" value="0"/>
  33. <input id="button_1" style="position:absolute;top:130px;left:450px;width:60px;height:30px;" type="button" value="重置" onclick="get_data()"/>
  34. <input id="button_2" style="position:absolute;top:130px;left:520px;width:60px;height:30px;" type="button" value="修改" onclick="save_data()"/>
  35. <input id="button_3" style="position:absolute;top:130px;left:590px;width:60px;height:30px;" type="button" value="应用" onclick="restart()"/>
  36. <input id="button_4" style="position:absolute;top:130px;left:660px;width:60px;height:30px;" type="button" value="重启" onclick="reboot()"/>
  37. <div id="devlist" class="devlist">
  38. </div>
  39. </div>
  40. <div id="sys_set" class="sys_set">
  41. <div id="sys_label_0" style="position:absolute;top:50px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">主机IP:</div>
  42. <input id="sys_value_0" style="position:absolute;top:50px;left:140px;width:180px;height:20px;" value=""/>
  43. <input id="button_15" style="position:absolute;top:50px;left:360px;width:60px;height:30px;" type="button" value="复核" onclick="chk_ip()"/>
  44. <div id="sys_label_1" style="position:absolute;top:90px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">网关地址:</div>
  45. <input id="sys_value_1" style="position:absolute;top:90px;left:140px;width:180px;height:20px;" value=""/>
  46. <div id="sys_label_2" style="position:absolute;top:130px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">网络掩码:</div>
  47. <input id="sys_value_2" style="position:absolute;top:130px;left:140px;width:180px;height:20px;" value=""/>
  48. <div id="sys_label_3" style="position:absolute;top:170px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">Mac编号:</div>
  49. <input id="sys_value_3" style="position:absolute;top:170px;left:140px;width:220px;height:20px;" value=""/>
  50. <input id="button_5" style="position:absolute;top:260px;left:450px;width:60px;height:30px;" type="button" value="重置" onclick="get_data()"/>
  51. <input id="button_6" style="position:absolute;top:260px;left:520px;width:60px;height:30px;" type="button" value="修改" onclick="save_value()"/>
  52. <input id="button_7" style="position:absolute;top:260px;left:590px;width:60px;height:30px;" type="button" value="应用" onclick="restart()"/>
  53. <input id="button_8" style="position:absolute;top:260px;left:660px;width:60px;height:30px;" type="button" value="重启" onclick="reboot()"/>
  54. </div>
  55. <div id="pno_set" class="pno_set">
  56. </div>
  57. <div id="ef_set" class="ef_set">
  58. <div id="ef_label_0" style="position:absolute;top:50px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">温度告警:</div>
  59. <input id="ef_value_0" style="position:absolute;top:50px;left:140px;width:180px;height:20px;" value=""/>
  60. <input id="button_12" style="position:absolute;top:50px;left:360px;width:60px;height:30px;" type="button" value="修改" onclick="save_ef(1)"/>
  61. <div id="ef_label_1" style="position:absolute;top:90px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">过流告警:</div>
  62. <input id="ef_value_1" style="position:absolute;top:90px;left:140px;width:180px;height:20px;" value=""/>
  63. <input id="button_13" style="position:absolute;top:90px;left:360px;width:60px;height:30px;" type="button" value="修改" onclick="save_ef(2)"/>
  64. <div id="ef_label_2" style="position:absolute;top:130px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">过压告警:</div>
  65. <input id="ef_value_2" style="position:absolute;top:130px;left:140px;width:180px;height:20px;" value=""/>
  66. <input id="button_13" style="position:absolute;top:130px;left:360px;width:60px;height:30px;" type="button" value="修改" onclick="save_ef(3)"/>
  67. <div id="ef_label_3" style="position:absolute;top:170px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">低压告警:</div>
  68. <input id="ef_value_3" style="position:absolute;top:170px;left:140px;width:180px;height:20px;" value=""/>
  69. <input id="button_14" style="position:absolute;top:170px;left:360px;width:60px;height:30px;" type="button" value="修改" onclick="save_ef(4)"/>
  70. <div id="ef_label_4" style="position:absolute;top:210px;left:-20px;width:140px;text-align:right;height:30px;color:#fff;">漏电告警:</div>
  71. <input id="ef_value_4" style="position:absolute;top:210px;left:140px;width:180px;height:20px;" value=""/>
  72. <input id="button_15" style="position:absolute;top:210px;left:360px;width:60px;height:30px;" type="button" value="修改" onclick="save_ef(5)"/>
  73. <input id="button_9" style="position:absolute;top:260px;left:520px;width:60px;height:30px;" type="button" value="重置" onclick="get_data()"/>
  74. <input id="button_10" style="position:absolute;top:260px;left:590px;width:60px;height:30px;" type="button" value="应用" onclick="restart()"/>
  75. <input id="button_11" style="position:absolute;top:260px;left:660px;width:60px;height:30px;" type="button" value="重启" onclick="reboot()"/>
  76. </div>
  77. </div>
  78. <div id="dialog" class="dialog">
  79. <div id="devform" class="devform">
  80. <div id="dev_form_title" style="position:absolute; top:50px; left:20px;width:460px; text-align:center;color:#fff;">计防系统转发设备信息配置</div>
  81. <input id="dev_param_0" type="hidden" value="-1"/>
  82. <div id="dev_label_1" style="position:absolute; top:120px; left:20px; width:140px; text-align:right;color:#fff;">物联网编号:</div>
  83. <input id="dev_param_1" style="position:absolute; top:120px; left:190px; width:240px;height:20px;" value=""/>
  84. <div id="dev_label_2" style="position:absolute; top:170px; left:20px; width:140px; text-align:right;color:#fff;">计防设备编号:</div>
  85. <input id="dev_param_2" style="position:absolute; top:170px; left:190px; width:240px;height:20px;" value=""/>
  86. <div id="dev_label_3" style="position:absolute; top:220px; left:20px; width:140px; text-align:right;color:#fff;">设备类型:</div>
  87. <select id="dev_param_3" style="position:absolute; top:220px; left:190px; width:240px;height:20px;" value="0">
  88. <option value="0">未设置</option>
  89. <option value="1">用水数据采集装置</option>
  90. <option value="2">紧急(求助)按钮</option>
  91. <option value="3">电气火灾监控探测器</option>
  92. <option value="4">智慧用电探测器</option>
  93. <option value="5">可燃气体探测器</option>
  94. <option value="6">火灾探测器</option>
  95. <option value="7">门体开启状态探测装置</option>
  96. <option value="8">二次供水探测装置(井盖)</option>
  97. <option value="9">二次供水探测装置(含水位告警)</option>
  98. <option value="10">窨井盖探测装置</option>
  99. <option value="11">窨井盖探测装置(含水位告警)</option>
  100. <option value="12">消防占道探测装置</option>
  101. <option value="13">电梯运行采集探测装置</option>
  102. <option value="14">水质监测采集探测装置</option>
  103. <option value="15">室内消火栓</option>
  104. <option value="16">室外消火栓</option>
  105. <option value="17">喷淋水压探测器</option>
  106. <option value="18">水泵探测装置</option>
  107. </select>
  108. <input id="button_5" style="position:absolute;top:280px;left:190px;width:60px;height:30px;" type="button" value="重置" onclick="reset_dev()"/>
  109. <input id="button_6" style="position:absolute;top:280px;left:370px;width:60px;height:30px;" type="button" value="确定" onclick="save_dev()"/>
  110. </div>
  111. </div>
  112. <div id="dialog2" class="dialog2">
  113. <div id="pnoform" class="pnoform">
  114. <div id="pno_form_title" style="position:absolute; top:50px; left:20px;width:460px; text-align:center;color:#fff;">监控点位信息配置</div>
  115. <input id="pno_param_0" type="hidden" value="-1"/>
  116. <input id="pno_param_1" type="hidden" value="-1"/>
  117. <div id="pno_label_2" style="position:absolute; top:90px; left:20px; width:140px; text-align:right;color:#fff;">监控点位名称:</div>
  118. <div id="pno_param_2" style="position:absolute; top:90px; left:190px; width:240px;height:20px;color:#fff;"></div>
  119. <div id="pno_label_3" style="position:absolute; top:130px; left:20px; width:140px; text-align:right;color:#fff;">点位类型:</div>
  120. <select id="pno_param_3" style="position:absolute; top:130px; left:190px; width:240px;height:20px;" onchange="typechange()" value="0">
  121. <option value="0">不监控</option>
  122. <option value="1">开关量输入</option>
  123. <option value="2">模拟量输入</option>
  124. <option value="3">开关量输出</option>
  125. <option value="4">模拟量输出</option>
  126. </select>
  127. <div id="pno_label_4" style="position:absolute; top:170px; left:20px; width:140px; text-align:right;color:#fff;">数据类型:</div>
  128. <select id="pno_param_4" style="position:absolute; top:170px; left:190px; width:240px;height:20px;" value="0">
  129. <option value="0">未设置</option>
  130. </select>
  131. <div id="pno_label_5" style="position:absolute; top:210px; left:20px; width:140px; text-align:right;color:#fff;">告警级别:</div>
  132. <select id="pno_param_5" style="position:absolute; top:210px; left:190px; width:240px;height:20px;" value="0">
  133. <option value="0">不告警</option>
  134. <option value="1">告警</option>
  135. </select>
  136. <div id="pno_label_6" style="position:absolute; top:250px; left:20px; width:140px; text-align:right;color:#fff;">告警上限:</div>
  137. <input id="pno_param_6" style="position:absolute; top:250px; left:190px; width:240px;height:20px;" value=""/>
  138. <div id="pno_label_7" style="position:absolute; top:290px; left:20px; width:140px; text-align:right;color:#fff;">告警下限:</div>
  139. <input id="pno_param_7" style="position:absolute; top:290px; left:190px; width:240px;height:20px;" value=""/>
  140. <input id="button_7" style="position:absolute;top:330px;left:230px;width:60px;height:30px;" type="button" value="重置" onclick="reset_pno()"/>
  141. <input id="button_8" style="position:absolute;top:330px;left:300px;width:60px;height:30px;" type="button" value="关闭" onclick="close_pno()"/>
  142. <input id="button_9" style="position:absolute;top:330px;left:370px;width:60px;height:30px;" type="button" value="确定" onclick="save_pno()"/>
  143. </div>
  144. </div>
  145. </body>
  146. </html>