itroom.asp 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <!--#include file="Inc/common.asp"-->
  2. <!--#include file="Inc/MD5.asp"-->
  3. <!--#include file="Inc/Function.asp"-->
  4. <!--#include file="Admin_Common.asp"-->
  5. <%
  6. Dim uid, rse, width, rsRole, isAdmin
  7. uid = trim(request("uid"))
  8. if trim(Lcase(AdminName)) = "admin" then
  9. isAdmin = true
  10. else
  11. isAdmin = false
  12. end if
  13. Dim areaname, areaid, rschild
  14. areaid = request("id")
  15. set areaname = conn.execute("select classname from t_area where t_classid = " & areaid)
  16. if not areaname.bof and areaname.eof then areaname = areaname(0)
  17. set rschild = conn.execute("select child from t_area where t_classid = " & areaid)
  18. if not rschild.bof and rschild.eof then child = rschild(0)
  19. function getdClass(uid)
  20. dim rse2
  21. set rse2 = conn.execute("select devicename from t_dev_property where uid = '" & uid & "'")
  22. response.write "<strong>"
  23. if instr(rse2(0),"(") <> 0 then
  24. response.write left(rse2(0),instr(rse2(0),"(")-1)
  25. else
  26. response.write rse2(0)
  27. end if
  28. response.write "</strong>"
  29. end function
  30. dim sql
  31. %>
  32. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  33. <html xmlns="http://www.w3.org/1999/xhtml">
  34. <head>
  35. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  36. <title><%=systemPageTitle%></title>
  37. <link href="bs2010.css" rel="stylesheet" type="text/css" />
  38. <script type="text/javascript" src="js/share.js"></script>
  39. <script type="text/javascript" src="js/prototype.js"></script>
  40. <script language="javascript">
  41. function GetData()
  42. {
  43. url="itroom_<%=areaid%>.asp?id=<%=areaid%>";//调用页面
  44. var xmlhttp=null;
  45. if(window.XMLHttpRequest)
  46. {
  47. xmlhttp=new XMLHttpRequest();
  48. }
  49. if(!xmlhttp&&window.ActiveXObject)
  50. {
  51. try
  52. {
  53. xmlhttp=new ActiveXObject("Msxml2.XMLHTTP.5.0")
  54. }
  55. catch(e)
  56. {
  57. try
  58. {
  59. xmlhttp=new ActiveXObject("Msxml2.XMLHTTP.4.0")
  60. }
  61. catch(e){
  62. try
  63. {
  64. new ActiveXObject("Msxml2.XMLHTTP")
  65. }
  66. catch(e)
  67. {
  68. try{
  69. new ActiveXObject("Microsoft.XMLHTTP")
  70. }catch(e)
  71. {
  72. }
  73. }
  74. }
  75. }
  76. }
  77. if(!xmlhttp){alert("XMLHTTP不可用,请升级安装。");location="support/msxml.msi"}
  78. xmlhttp.open("GET",url,false);
  79. xmlhttp.send();
  80. var str = xmlhttp.responseText;
  81. document.getElementById("loadcontent").innerHTML=str;
  82. setTimeout("GetData()",<%=refreshRate%>);
  83. }
  84. </script>
  85. <style>
  86. html{background:url(images/bg.jpg) center center no-repeat}
  87. </style>
  88. </head>
  89. <body onLoad="javascript:GetData();">
  90. <div class="mainbg">
  91. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  92. <tr>
  93. <td valign="top">
  94. <div id="loadcontent">
  95. <p></p>
  96. 数据载入中……</div>
  97. </td>
  98. </tr>
  99. </table>
  100. <p>&nbsp;</p>
  101. </div>
  102. </body>
  103. </html>
  104. <%
  105. Call CloseConn
  106. %>