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.

418 lines
12 KiB

  1. <%@LANGUAGE=javascript%>
  2. <!--#include file='global_dbutils.asp'-->
  3. <!--#include file='global_serverutils.asp'-->
  4. <%
  5. var Alias = GetShortUserAlias()
  6. //Alias = "lonnym"
  7. //Response.Write("Authenticated: " + Session("Authenticated") )
  8. %>
  9. <head>
  10. <link rel="stylesheet" TYPE="text/css" HREF="/main.css">
  11. <link rel="stylesheet" TYPE="text/css" HREF="/CustomStyles.css">
  12. </head>
  13. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex='0'>
  14. <table ID='tblMainBody' BORDER='0' cellpadding='10' cellspacing='0' height='100%'>
  15. <tr valign='top'>
  16. <td class='flyoutMenu2' HEIGHT='100%'>
  17. <table BORDER='0' height='100%' cellpadding='0' cellspacing='0' width='170'>
  18. <tr valign='top'>
  19. <td height='100%'>
  20. <table width='100%' cellpadding='0' cellspacing='0' border='0'>
  21. <tr>
  22. <td class='sys-toppane-header'>
  23. <p class='Flyouttext'>OCA Debug Portal</p>
  24. </td>
  25. </tr>
  26. </table>
  27. <table width='100%' cellpadding='0' cellspacing='0' border='0' height='100%' VALIGN='top'>
  28. <tr>
  29. <td height='100%' class='flyoutMenu' valign='top'>
  30. <table width='100%' cellpadding='0' cellspacing='0' border='0' >
  31. <tr>
  32. <td class='flyoutLink'>
  33. <img alt='' src='/include/images/endnode.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  34. <a href='DBGPortal_top.asp' target='sepBody'>Kernel Mode</a>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class='flyoutLink'>
  39. <img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  40. <a href='DBGPortal_Help.asp' target='sepBody'>Help/Info/Faq</a>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td class='flyoutLink'>
  45. <img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  46. <a class='clsALinkNormal' target='sepBody' href='Global_AdvancedSearch.asp'>Custom Query</a>
  47. </td>
  48. </tr>
  49. <tr>
  50. <td class='flyoutLink'>
  51. <img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  52. <a class='clsALinkNormal' target='sepBody' href='DBGPortal_ResponseQueue.asp'>Response Queue</a>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class='flyoutlink'>
  57. Selected Followups:
  58. </td>
  59. </tr>
  60. <tr>
  61. <td class='flyoutlink'>
  62. <table id='tblSelectedFollowups'>
  63. </table>
  64. </td>
  65. </tr>
  66. <tr>
  67. <td class='flyoutlink'>
  68. Selected Groups:
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class='flyoutlink'>
  73. <table id='tblSelectedGroups'>
  74. </table>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class='flyoutLink'>
  79. <img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  80. <img alt='' src='/include/images/plus.gif' border='0' WIDTH='9' HEIGHT='9'>&nbsp;&nbsp;
  81. <a class='clsALinkNormal' target='sepBody' href='DBGPortal_Top.asp'>Add FollowUps</a>
  82. </td>
  83. </tr>
  84. <tr>
  85. <td>
  86. <p class='clsPSubTitle'>Queries</p>
  87. <table cellspacing=0 cellpadding=0>
  88. <tr>
  89. <td><img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='16' HEIGHT='11'></td>
  90. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetAllBuckets&Page=0')" >
  91. All Issues
  92. </td>
  93. </tr>
  94. <tr>
  95. <td><img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='16' HEIGHT='11'></td>
  96. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetUnsolvedBuckets&Page=0')" >
  97. Unresolved Issues
  98. </td>
  99. </tr>
  100. <tr>
  101. <td></td>
  102. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetResolvedBuckets&Page=0')" >
  103. Resolved Buckets
  104. </td>
  105. </tr>
  106. <tr>
  107. <td></td>
  108. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetRaidedBuckets&Page=0')" >
  109. Raided buckets
  110. </td>
  111. </tr>
  112. <tr>
  113. <td></td>
  114. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetDriverList&Page=0')" >
  115. Crashes by Driver Name</a>
  116. </td>
  117. </tr>
  118. <tr>
  119. <td></td>
  120. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetBucketsWithFullDump&Page=0')" >
  121. Buckets with fulldumps</a>
  122. </td>
  123. </tr>
  124. <tr>
  125. <td></td>
  126. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetBucketsBySource&Page=0&Param0=6')" >
  127. Stress Buckets
  128. </td>
  129. </tr>
  130. <tr>
  131. <td></td>
  132. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetSP1Buckets&Page=0')" >
  133. SP1 Buckets</a>
  134. </td>
  135. </tr>
  136. <tr>
  137. <td></td>
  138. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetBucketsBySource&Page=0&Param0=2')" >
  139. CER Buckets
  140. </td>
  141. </tr>
  142. <tr>
  143. <td></td>
  144. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetServerBuckets&Page=0')" >
  145. .Net Buckets</a>
  146. </td>
  147. </tr>
  148. <tr>
  149. <td></td>
  150. <td class='flyoutlinkFakeA' OnClick="fnExecuteLink( 'dbgportal_DisplayHub.asp?SP=DBGPortal_GetUnResolvedResponseBuckets&Page=0')" >
  151. Unresolved buckets with a response</a>
  152. </td>
  153. </tr>
  154. </table>
  155. <p class='clsPSubTitle'>Custom Queries</p>
  156. <table cellspacing=0 cellpadding=0>
  157. <%
  158. try
  159. {
  160. var g_DBConn = GetDBConnection ( Application("CRASHDB3") )
  161. var Query = "DBGPortal_GetCustomQueries '" + Alias + "'"
  162. //Response.Write("Query: " + Query )
  163. var rsBuckets = g_DBConn.Execute( Query )
  164. var altColor
  165. while ( !rsBuckets.EOF )
  166. {
  167. Response.Write( "<tr><td><img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='16' HEIGHT='11'></td>\n")
  168. var CustomQuery = new String( rsBuckets("CustomQuery" ) )
  169. CustomQuery = CustomQuery.replace( /'/gi, "%27" )
  170. Response.Write( "<td class='flyoutlinkFakeA' OnClick='fnExecuteLink( \"" + CustomQuery + "\")'>" + rsBuckets("CustomQueryDesc") + "</td></tr>\n" )
  171. rsBuckets.moveNext()
  172. }
  173. }
  174. catch( err )
  175. {
  176. Response.Write("<tr><td>Could not get custom queries</td></tr>")
  177. }
  178. try
  179. {
  180. var rsIsAFollowUp = g_DBConn.Execute( "DBGPortal_IsAliasAFollowup '" + Alias + "'" )
  181. }
  182. catch( err )
  183. {
  184. }
  185. %>
  186. </table>
  187. </div>
  188. </td>
  189. </tr>
  190. <tr>
  191. <td class='flyoutLink'>
  192. <img alt='' src='/include/images/endnode.gif' border='0' WIDTH='11' HEIGHT='11'>&nbsp;&nbsp;
  193. User Mode
  194. </td>
  195. </tr>
  196. </table>
  197. </td>
  198. </tr>
  199. </table>
  200. </td>
  201. </tr>
  202. </table>
  203. </td>
  204. </tr>
  205. </table>
  206. <script language='javascript'>
  207. <%
  208. Response.Write("var AliasList='" + Request.Cookies("AliasList") + "'\n" )
  209. Response.Write("var GroupList='" + Request.Cookies("GroupList") + "'\n" )
  210. Response.Write("var SelectedItems='" + Request.Cookies("SelectedItems") + "'\n" )
  211. %>
  212. SelectedItems = SelectedItems.replace( /{/gi, ";" )
  213. var SelectedItems = SelectedItems.split( "," )
  214. //for ( element in SelectedItems )
  215. //alert( SelectedItems[element] )
  216. fnAddElement( "All FollowUps", "tblSelectedFollowups", true )
  217. <%
  218. try
  219. {
  220. if( !rsIsAFollowUp.EOF )
  221. Response.Write( "fnAddElement( '" + Alias + "', 'tblSelectedFollowups', true )" )
  222. }
  223. catch( err )
  224. {
  225. }
  226. %>
  227. fnSaveSelectedItems()
  228. if ( AliasList != "" )
  229. {
  230. AliasList = AliasList.replace( /{/gi, ";" )
  231. var AliasList = AliasList.split( "," )
  232. for ( element in AliasList )
  233. fnAddElement( AliasList[element], "tblSelectedFollowups" )
  234. }
  235. if( GroupList != "" )
  236. {
  237. GroupList = GroupList.replace( /{/gi, ";" )
  238. var GroupList = GroupList.split( "," )
  239. for ( element in GroupList )
  240. fnAddElement( GroupList[element], "tblSelectedGroups" )
  241. }
  242. function fnClearFollowUpList()
  243. {
  244. var failcounter = 0
  245. while ( tblSelectedFollowups.rows.length != 1 || failcounter >= 5000 )
  246. {
  247. tblSelectedFollowups.deleteRow( 1 )
  248. failcounter++;
  249. }
  250. }
  251. function fnAddElement( Alias, tblName, Selected )
  252. {
  253. var tblName = eval( "document.all." + tblName )
  254. try
  255. {
  256. var newRow = tblName.insertRow()
  257. var newCell = newRow.insertCell()
  258. var newCell2 = newRow.insertCell()
  259. if ( Selected )
  260. newCell.innerHTML = "<img alt='' src='/include/images/offsite.gif' border='0' WIDTH='16' HEIGHT='11'>"
  261. else
  262. newCell.innerHTML = "<img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='16' HEIGHT='11'>"
  263. for ( element in SelectedItems )
  264. {
  265. //alert( "Adding alis: " + Alias + " element: " + SelectedItems[element] )
  266. if( Alias == SelectedItems[element].toString() )
  267. {
  268. newCell.innerHTML = "<img alt='' src='/include/images/offsite.gif' border='0' WIDTH='16' HEIGHT='11'>"
  269. break;
  270. }
  271. }
  272. newCell2.innerHTML = Alias
  273. newRow.className = "flyoutlinkFakeA"
  274. }
  275. catch( err )
  276. {
  277. alert("An error has occurred trying to add your selection to the alias view list, if this is a recurring problem, please report it to [email protected]. Thank you.\nErr:" + err.description )
  278. }
  279. }
  280. function fnClearTable( tblName, start )
  281. {
  282. var tblName = eval( "document.all." + tblName )
  283. var failcounter = 0
  284. while ( tblName.rows.length > start || failcounter >= 5000 )
  285. {
  286. tblName.deleteRow( start )
  287. failcounter++;
  288. }
  289. }
  290. function fnGetSelectedFollowUps( tblName )
  291. {
  292. var tblName = eval( "document.all." + tblName )
  293. var aliasList = new Array()
  294. for( var i=0 ; i < tblName.rows.length ; i++ )
  295. {
  296. var selectedText = new String( tblName.rows(i).cells(0).innerHTML )
  297. if( selectedText.indexOf( "offsite.gif" ) != -1 )
  298. {
  299. aliasList.push( tblName.rows(i).cells(1).innerText )
  300. }
  301. }
  302. return ( aliasList )
  303. }
  304. var PreviousElement = "0"
  305. function fnExecuteLink( link )
  306. {
  307. if( PreviousElement != "0" )
  308. {
  309. PreviousElement.innerHTML = "<img alt='' src='/include/images/1ptrans.gif' border='0' WIDTH='16' HEIGHT='11'>"
  310. }
  311. PreviousElement = event.srcElement.previousSibling
  312. fnSaveSelectedItems()
  313. window.parent.frames("sepBody").window.location = link
  314. }
  315. function fnSaveSelectedItems()
  316. {
  317. var temp = new String( fnGetSelectedFollowUps( "tblSelectedFollowups" ) )
  318. var temp2 = new String( fnGetSelectedFollowUps( "tblSelectedGroups" ) )
  319. temp = temp.replace( /;/gi, "{" )
  320. temp2 = temp2.replace( /;/gi, "{" )
  321. if ( temp2.toString() == "" || temp2.toString() == "undefined" )
  322. temp2 = ""
  323. else
  324. temp2 = "," + temp2
  325. document.cookie = "SelectedItems=" + temp + temp2 +";expires=Fri, 31 Dec 2005 23:59:59 GMT;";
  326. }
  327. function fnSaveFollowupList( CookieName, CookieVal )
  328. {
  329. document.cookie = CookieName + "=" + CookieVal.toString() + ";expires=Fri, 31 Dec 2005 23:59:59 GMT;";
  330. }
  331. </script>
  332. </body>