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.

326 lines
14 KiB

  1. <!--#INCLUDE file="..\include\asp\top.asp"-->
  2. <!--#INCLUDE file="..\include\inc\browserTest.inc"-->
  3. <!--#include file="..\include\asp\head.asp"-->
  4. <!--#INCLUDE file="..\include\inc\detailsstrings.inc"-->
  5. <%
  6. dim cnKnownIssue
  7. dim rsKnownIssue
  8. dim rsModules
  9. dim iIncidentID
  10. dim iInstanceID
  11. dim x
  12. Dim strFileName
  13. If oPassMgrObj.IsAuthenticated(TimeWindow, ForceLogin) = false then
  14. Response.Redirect("http://" & Request.ServerVariables("SERVER_NAME") & "/welcome.asp")
  15. Response.End
  16. end if
  17. Call CVerifyEntry
  18. Call CCreateObjects
  19. Call CCreateConnection
  20. Call CGetEventDetails
  21. Call CGetEventModules
  22. set rsKnownIssue.ActiveConnection = nothing
  23. set rsModules.ActiveConnection = nothing
  24. '_____________________________________________________________________________________________________________________
  25. 'Sub Procedures
  26. Private Sub CGetEventDetails
  27. on error resume next
  28. '-----------------------Create Recordset Objects from knownissue database--------------------
  29. set rsKnownIssue = cnKnownIssue.Execute("Exec geteventdetails " & iInstanceID)
  30. if cnKnownIssue.Errors.Count > 0 and iInstanceID = "" then
  31. Response.Write "<br><div class='divLoad'><p class='clsPTitle'>" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "</p>"
  32. Response.Write "<p class='clsPBody'>" & L_COMMENTS_DATABASE_FAILED_TEXT & "</p></div>"
  33. cnKnownIssue.Errors.Clear
  34. Call CDestroyObjects
  35. %>
  36. <!--#include file="..\include\asp\foot.asp"-->
  37. <%
  38. Response.End
  39. end if
  40. End Sub
  41. Private Sub CGetEventModules
  42. on error resume next
  43. '-----------------------Create Recordset Objects from knownissue database--------------------
  44. set rsModules = cnKnownIssue.Execute("Exec geteventmodules " & iInstanceID)
  45. if cnKnownIssue.Errors.Count > 0 and iInstanceID = "" then
  46. Response.Write "<br><div class='divLoad'><p class='clsPTitle'>" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "</p>"
  47. Response.Write "<p class='clsPBody'>" & L_COMMENTS_DATABASE_FAILED_TEXT & "</p></div>"
  48. cnKnownIssue.Errors.Clear
  49. Call CDestroyObjects
  50. %>
  51. <!--#include file="..\include\asp\foot.asp"-->
  52. <%
  53. Response.End
  54. end if
  55. End Sub
  56. Private Sub CCreateConnection
  57. on error resume next
  58. '----------------------------KnownIssues Connection Object--------------------------------------
  59. with cnKnownIssue
  60. .ConnectionString = strCustomer
  61. .CursorLocation = adUseClient
  62. .ConnectionTimeout = strGlobalConnectionTimeout
  63. .Open
  64. end with
  65. if cnKnownIssue.State = adStateClosed then
  66. Response.Write "<br><div class='divLoad'><p class='clsPTitle'>" & L_COMMENTS_UNABLE_TOCONNECT_ERRORMESSAGE & "</p>"
  67. Response.Write "<p class='clsPBody'>" & L_COMMENTS_CONNECTION_FAILED_TEXT & "</p></div>"
  68. cnKnownIssue.Errors.Clear
  69. Call CDestroyObjects
  70. %>
  71. <!--#include file="..\include\asp\foot.asp"-->
  72. <%
  73. Response.end
  74. end if
  75. End Sub
  76. Private Sub CVerifyEntry
  77. on error resume next
  78. if Trim(Request.Cookies("Misc")("PreviousPage")) <> "status.asp" then
  79. Response.Redirect("http://" & Request.ServerVariables("SERVER_NAME") & "/welcome.asp")
  80. Response.End
  81. end if
  82. End Sub
  83. Private Sub CCreateObjects
  84. on error resume next
  85. iInstanceID = Request.Cookies("status")("Instance")
  86. iIncidentID = Request.Cookies("status")("txtIncidentID")
  87. strFileName = Request.Cookies("status")("FileName")
  88. 'Response.Write "Instance:" & iInstanceID & "<BR>IncidentID:" & iIncidentID & "<BR>File Name:" & strFileName
  89. set cnKnownIssue = CreateObject("ADODB.Connection")
  90. set rsKnownIssue = CreateObject("ADODB.Recordset")
  91. set rsModules = CreateObject("ADODB.Recordset")
  92. End Sub
  93. Private Sub CDestroyObjects
  94. on error resume next
  95. if cnKnownIssue.State = adStateOpen then cnKnownIssue.Close
  96. if rsKnownIssue.State = adStateOpen then rsKnownIssue.Close
  97. if rsModules.State = adStateOpen then rsModules.Close
  98. set rsKnownIssue = nothing
  99. set rsModules = nothing
  100. set cnKnownIssue = nothing
  101. End Sub
  102. '_____________________________________________________________________________________________________________________
  103. %>
  104. <div class="clsDiv">
  105. <p class="clsPTitle">
  106. <% = L_STATUS_DETAILS_INFO_TEXT%>
  107. </P>
  108. <div>
  109. <Table class="clsTableInfoSmall" border=1 CELLPADDING="0px" CELLSPACING="0px">
  110. <tbody>
  111. <%
  112. if strFileName <> "" then
  113. Response.Write "<tr><td align=center nowrap colspan='2' class='clsTDInfo'>" & L_STATUS_FILE_NAME_TEXT & "</td></tr>"
  114. Response.Write "<tr><td align=left colspan='2' class='clsTDCell' style='word-wrap:break;word-break:break-all'>"
  115. Response.Write unescape(strFileName)
  116. Response.Write "</td></tr>"
  117. else
  118. Response.Write "<tr><td colspan=2 align=center nowrap class='clsTDCell'>" & L_DETAILS_NO_INFORMATION_MESSAGE & "</td></tr>"
  119. end if
  120. if rsKnownIssue.State = adStateOpen then
  121. if rsKnownIssue.RecordCount > 0 then
  122. Response.Write "<tr><td align=center nowrap class='clsTDInfo'>" & L_DETAILS_STOP_CODE_TEXT & "</td><td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(0).Value & "</td></tr>"
  123. For x = 1 to 4
  124. Response.Write "<tr><td align=center nowrap class='clsTDInfo'>" & L_DETAILS_PARAMETER_ONE_TEXT & x & "</td><td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(x).Value & "</td></tr>"
  125. next
  126. else
  127. Response.Write "<tr><td align=center nowrap class='clsTDInfo'>" & L_DETAILS_STOP_CODE_TEXT & "</td><td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  128. For x = 1 to 4
  129. Response.Write "<tr><td align=center nowrap class='clsTDInfo'>" & L_DETAILS_PARAMETER_ONE_TEXT & x & "</td><td align=center nowrap class='clsTDCell'>&nbsp;&nbsp;&nbsp;</td></tr>"
  130. next
  131. end if
  132. else
  133. Response.Write "<tr><td colspan=2 align=center nowrap class='clsTDCell'>" & L_DETAILS_NO_INFORMATION_MESSAGE & "</td></tr>"
  134. end if
  135. %>
  136. </tbody>
  137. </table>
  138. <br>
  139. <Table class="clsTableInfoSmall" border=1 CELLPADDING="0px" CELLSPACING="0px">
  140. <thead>
  141. <tr>
  142. <td colspan="2" nowrap class="clsTDInfo" align="center">
  143. <% = L_DETAILS_OPERATING_DESC_TEXT %>
  144. </td>
  145. </tr>
  146. </thead>
  147. <tbody>
  148. <% if rsKnownIssue.State = adStateOpen then
  149. if rsKnownIssue.RecordCount > 0 then
  150. Response.Write "<tr><td align=center nowrap class='clsTDInfo' colspan=2>" & L_DETAILS_ENVIRONMENT_INFO_TEXT & "</td></tr>"
  151. Response.Write "<tr><td align=center nowrap class='clsTDCell'>" & L_DETAILS_CHECK_BUILD_TEXT & "</td>"
  152. '*************************true of false*************************
  153. if IsNull(rsKnownIssue.Fields(12).Value) or rsKnownIssue.Fields(12).Value = "" then
  154. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  155. else
  156. if lcase(trim(rsKnownIssue.Fields(12).Value)) = "true" then
  157. Response.Write "<td align=center nowrap class='clsTDCell'>" & L_DETAILS_TRUE_TRUE_TEXT & "</td></tr>"
  158. elseif lcase(trim(rsKnownIssue.Fields(12).Value)) = "false" then
  159. Response.Write "<td align=center nowrap class='clsTDCell'>" & L_DETAILS_FALSE_FALSE_TEXT & "</td></tr>"
  160. else
  161. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(12).Value & "</td></tr>"
  162. end if
  163. end if
  164. Response.Write "<tr><td align=center nowrap class='clsTDInfo' colspan=2>Kernel</td></tr>"
  165. Response.Write "<tr><td align=center nowrap class='clsTDCell'>" & L_DETAILS_VERSION_NUMBER_TEXT & "</td>"
  166. if IsNull(rsKnownIssue.Fields(7).Value) or rsKnownIssue.Fields(7).Value = "" then
  167. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  168. else
  169. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(7).value & "</td></tr>"
  170. end if
  171. Response.Write "<tr><td align=center nowrap class='clsTDCell'>SMP Kernel</td>"
  172. '*************************true of false*************************
  173. if IsNull(rsKnownIssue.Fields(11).Value) or rsKnownIssue.Fields(11).Value = "" then
  174. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  175. else
  176. if lcase(trim(rsKnownIssue.Fields(11).Value)) = "true" then
  177. Response.Write "<td align=center nowrap class='clsTDCell'>" & L_DETAILS_TRUE_TRUE_TEXT & "</td></tr>"
  178. elseif lcase(trim(rsKnownIssue.Fields(11).Value)) = "false" then
  179. Response.Write "<td align=center nowrap class='clsTDCell'>" & L_DETAILS_FALSE_FALSE_TEXT & "</td></tr>"
  180. else
  181. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(11).Value & "</td></tr>"
  182. end if
  183. end if
  184. Response.Write "<tr><td align=center nowrap class='clsTDCell'>PAE Kernel</td>"
  185. '*************************true of false*************************
  186. if IsNull(rsKnownIssue.Fields(10).Value) or rsKnownIssue.Fields(10).Value = "" then
  187. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  188. else
  189. if lcase(trim(rsKnownIssue.Fields(10).Value)) = "true" then
  190. Response.Write "<td align=center nowrap class='clsTDCell'>" & L_DETAILS_TRUE_TRUE_TEXT & "</td></tr>"
  191. elseif lcase(trim(rsKnownIssue.Fields(10).Value)) = "false" then
  192. Response.Write "<td align=center nowrap class='clsTDCell'>" & L_DETAILS_FALSE_FALSE_TEXT & "</td></tr>"
  193. else
  194. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(10).Value & "</td></tr>"
  195. end if
  196. end if
  197. Response.Write "<tr><td align=center nowrap class='clsTDInfo' colspan=2>" & L_DETAILS_PROCESSOR_INFO_TEXT & "</td></tr>"
  198. Response.Write "<tr><td align=center nowrap class='clsTDCell'>" & L_DETAILS_TYPE_INFO_TEXT & "</td>"
  199. if IsNull(rsKnownIssue.Fields(6).Value) or rsKnownIssue.Fields(6).Value = "" then
  200. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  201. else
  202. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(6).value & "</td></tr>"
  203. end if
  204. Response.Write "<tr><td align=center nowrap class='clsTDCell'>" & L_DETAILS_QUANTITY_INFO_TEXT & "</td>"
  205. if IsNull(rsKnownIssue.Fields(5).Value) or rsKnownIssue.Fields(5).Value = "" then
  206. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  207. else
  208. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(5).value & "</td></tr>"
  209. end if
  210. Response.Write "<tr><td align=center nowrap class='clsTDCell'>" & L_DETAILS_SERVICE_PACK_TEXT & "</td>"
  211. if IsNull(rsKnownIssue.Fields(8).Value) or rsKnownIssue.Fields(8).Value = "" then
  212. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td></tr>"
  213. else
  214. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsKnownIssue.Fields(8).value & "</td></tr>"
  215. end if
  216. else
  217. Response.Write "<tr><td align=center nowrap class='clsTDInfo' colspan=2>" & L_DETAILS_ENVIRONMENT_INFO_TEXT & "</td></tr>"
  218. Response.Write "<tr><td align=center nowrap class='clsTDInfo' colspan=2>" & L_DETAILS_NO_INFORMATION_MESSAGE & "</td></tr>"
  219. end if
  220. else
  221. Response.Write "<tr><td align=center nowrap class='clsTDInfo' colspan=2>" & L_DETAILS_ENVIRONMENT_INFO_TEXT & "</td></tr>"
  222. Response.Write "<tr><td align=center nowrap class='clsTDCell' colspan=2>" & L_DETAILS_NO_INFORMATION_MESSAGE & "</td></tr>"
  223. end if
  224. %>
  225. </tbody>
  226. </table>
  227. </div>
  228. <br>
  229. <Table class="clsTableInfoSmall" border=1 CELLPADDING="0px" CELLSPACING="0px">
  230. <thead>
  231. <tr>
  232. <td nowrap class="clsTDInfo" colspan=4 align="center">
  233. <% = L_DETAILS_MODULES_INFO_TEXT %>
  234. </td>
  235. </tr>
  236. <tr>
  237. <td align="center" nowrap class="clsTDInfo">
  238. <% = L_DETAILS_NAME_INFO_TEXT %>
  239. </td>
  240. <td align="center" nowrap class="clsTDInfo">
  241. <% = L_DETAILS_VERSION_INFO_TEXT %>
  242. </td>
  243. <td align="center" nowrap class="clsTDInfo">
  244. <% = L_DETAILS_NAME_INFO_TEXT %>
  245. </td>
  246. <td align="center" nowrap class="clsTDInfo">
  247. <% = L_DETAILS_VERSION_INFO_TEXT %>
  248. </td>
  249. </tr>
  250. </thead>
  251. <tbody>
  252. <%
  253. If rsModules.State = adStateOpen then
  254. if rsModules.RecordCount > 0 then
  255. do while rsModules.EOF = false
  256. Response.Write "<TR>"
  257. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsModules.Fields(1).Value & "</td>"
  258. if isNull(rsModules.Fields(3)) then
  259. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td>"
  260. else
  261. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsModules.Fields(3).Value & "." & rsModules.Fields(2).Value & "</td>"
  262. end if
  263. rsModules.MoveNext
  264. if rsModules.EOF = false then
  265. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsModules.Fields(1).Value & "</td>"
  266. if isNull(rsModules.Fields(3)) then
  267. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td>"
  268. else
  269. Response.Write "<td align=center nowrap class='clsTDCell'>" & rsModules.Fields(3).Value & "." & rsModules.Fields(2).Value & "</td>"
  270. end if
  271. rsModules.MoveNext
  272. else
  273. Response.Write "<td align=center nowrap class='clsTDCell'>&nbsp;</td><td align=center nowrap class='clsTDCell'>&nbsp;</td>"
  274. end if
  275. Response.Write "<TR>"
  276. loop
  277. else
  278. Response.Write "<tr><td align=center colspan=4 nowrap class='clsTDCell'>" & L_DETAILS_NO_INFORMATION_MESSAGE & "</td></tr>"
  279. end if
  280. else
  281. Response.Write "<tr><td align=center colspan=4 nowrap class='clsTDCell'>" & L_DETAILS_NO_INFORMATION_MESSAGE & "</td></tr>"
  282. end if
  283. %>
  284. </tbody>
  285. </table>
  286. <br>
  287. <%
  288. Call CDestroyObjects
  289. %>
  290. <P class="clsPBody">
  291. <Table class="clstblLinks">
  292. <thead>
  293. <tr>
  294. <td>
  295. </td>
  296. </tr>
  297. </thead>
  298. <tbody>
  299. <tr>
  300. <td nowrap class="clsTDLinks">
  301. <A class="clsALink" href="JAVASCRIPT:window.navigate('status.asp');" ><% = L_DETAILS_STATUS_BODY_TEXT %></a>
  302. </td>
  303. </tr>
  304. </tbody>
  305. </table>
  306. </P>
  307. </div>
  308. </form>
  309. <!--#include file="..\include\asp\foot.asp"-->