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.

104 lines
2.7 KiB

  1. <%@LANGUAGE=Javascript%>
  2. <!--#INCLUDE FILE='Global_DBUtils.asp'-->
  3. <!--#INCLUDE FILE='Global_ServerUtils.asp'-->
  4. <head>
  5. <link rel="stylesheet" TYPE="text/css" HREF="/main.css">
  6. <link rel="stylesheet" TYPE="text/css" HREF="/CustomStyles.css">
  7. </head>
  8. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex='0'>
  9. <%
  10. var g_DBConn = GetDBConnection ( Application("CRASHDB3" ) ) //get a connection to the DB
  11. var query = "DBGPortal_GetDriverList"
  12. var rsResults = g_DBConn.Execute ( query )
  13. %>
  14. <table style='margin-left:16px' >
  15. <tr>
  16. <td>
  17. <p class='clsPTitle'>Kernel Mode Data</p>
  18. </td>
  19. </tr>
  20. <tr>
  21. <td>
  22. <% if ( Page != "0" ) { %>
  23. <input class='clsButton' type=button value='Previous Page' OnClick="fnPreviousPage()" id=button1 name=button1>
  24. <% } %>
  25. <input class='clsButton' type=button value='Next Page' OnClick="fnNextPage()" id=button2 name=button2>
  26. </td>
  27. </tr>
  28. </table>
  29. <table id="tblUserBuckets" class="clsTableInfo" border="0" cellpadding="2" cellspacing="1">
  30. <tr>
  31. <td align="left" nowrap class="clsTDInfo" width='50px'>
  32. Total Crashes
  33. </td>
  34. <td style="BORDER-LEFT: white 1px solid" align="left" nowrap class="clsTDInfo">
  35. Driver Name
  36. </td>
  37. </tr>
  38. <%
  39. try
  40. {
  41. var altColor = "sys-table-cell-bgcolor2"
  42. while ( !rsResults.EOF )
  43. {
  44. if ( altColor == "sys-table-cell-bgcolor1" )
  45. altColor = "sys-table-cell-bgcolor2"
  46. else
  47. altColor = "sys-table-cell-bgcolor1"
  48. Response.Write("<tr>\n")
  49. Response.Write("<td class='" + altColor + "'>" + rsResults("CrashTotal") + "</td>\n" )
  50. Response.Write("<td class='" + altColor + "'>" + rsResults("DriverName" ) + "</td>\n" )
  51. Response.Write("</tr>\n" )
  52. rsResults.MoveNext()
  53. }
  54. }
  55. catch( err )
  56. {
  57. Response.Write("<tr><td class='sys-table-cell-bgcolor1' colspan='5'>Could not build the bucket table. If this is a consistent error, please report to <a href='mailto:[email protected]'>SOlson</a></td></tr>" )
  58. }
  59. %>
  60. <script language='javascript'>
  61. var Finalpage= <%=LastIndex%>
  62. var Firstpage = <%=Page%>
  63. function fnShowBug( BugID, BucketID )
  64. {
  65. var BucketID = escape( BucketID )
  66. BucketID = BucketID.replace ( /\+/gi, "%2b" )
  67. window.open( "DBGPortal_OpenRaidBug.asp?BugID=" + BugID + "&BucketID=" + BucketID )
  68. }
  69. function fnPreviousPage( )
  70. {
  71. window.history.back()
  72. //window.navigate( "dbgportal_DisplayQuery.asp?SP=<%=SP%>&Page=" + Firstpage )
  73. }
  74. function fnNextPage( )
  75. {
  76. window.navigate( "dbgportal_DisplayQuery.asp?SP=<%=SP%>&Page=" + Finalpage + "&PreviousPage=" + Firstpage)
  77. }
  78. </script>
  79. </body>