Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

86 lines
2.6 KiB

  1. <html>
  2. <head>
  3. <style TYPE="text/css">
  4. a:hover { color:#3030c0; }
  5. </style>
  6. <link HREF="PCHealth.css" REL="STYLESHEET" TYPE="text/css">
  7. </head>
  8. <body bgcolor="#eee5e0" text="black" link="black" vlink="black" alink="gray">
  9. <basefont face="Verdana" size="2">
  10. <P>
  11. <span class="Description">You may check the status of the following incidents.</span>
  12. <br>
  13. <br>
  14. <b><font size="4">Check Status</P></font></B>
  15. <ul>
  16. <script language=VBScript>
  17. Dim sHTML, VendorID, ProductID
  18. Dim x
  19. 'set x = Window.External.Channels
  20. set x = CreateObject("SAF.SAFReg.1")
  21. Stop
  22. x.MoveFirst
  23. do while not x.EOF
  24. On Error Resume Next
  25. Err.Number = 0
  26. VendorID = x.VendorID
  27. ProductID = x.ProductID
  28. 'set y = Window.External.CreateObject_Channel(VendorID, ProductID)
  29. set xAPI = CreateObject("SAF.SAFAPI")
  30. set y = xAPI.GetChannel(VendorID, ProductID)
  31. set z = y.Incidents(2)
  32. If Err.Number Then
  33. MsgBox "Init failed: " & Err.Description
  34. End If
  35. if Err.Number = 0 Then
  36. set z = y.Incidents(2)
  37. if z Then
  38. if z.Count Then
  39. ' sort
  40. Dim i
  41. Dim oTemp
  42. Redim oTemp(z.Count)
  43. i = 0
  44. For Each oItem in z
  45. set oTemp(i) = oItem
  46. i = i+1
  47. Next
  48. ' sort here
  49. For i=0 to z.Count-2
  50. For j=i+1 to z.Count-1
  51. if oTemp(i).CreationTime < oTemp(j).CreationTime Then
  52. Dim ooT
  53. set ooT = oTemp(i)
  54. set oTemp(i) = oTemp(j)
  55. set oTemp(j) = ooT
  56. End If
  57. Next
  58. Next
  59. ' output
  60. For i=0 to z.Count-1
  61. sHTML = "<li>" & oTemp(i).CreationTime & "&nbsp;<b><A href=""" _
  62. & oTemp(i).URL & """>" & oTemp(i).DisplayString & "</a></b><br>"
  63. document.write sHTML
  64. set oTemp(i) = Nothing
  65. Next
  66. End If
  67. end if
  68. set z = Nothing
  69. else
  70. MsgBox Err.Description
  71. End if
  72. set y = Nothing
  73. x.MoveNext
  74. loop
  75. set x = Nothing
  76. </script>
  77. </ul>
  78. View information concerning <A href="status_h.htm"><b>resolved incidents</b></a>.
  79. </body>