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.

189 lines
5.0 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. <meta http-equiv="Content-Type" CONTENT="text/html; charset=iso-8859-1" />
  8. </head>
  9. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex='0'>
  10. <table ID='tblMainBody' BORDER='0' cellpadding='0' cellspacing='0'>
  11. <tr>
  12. <td colspan="2">
  13. <p class='clsPTitle'>Solution Request Queue Information</p>
  14. </td>
  15. </tr>
  16. <tr>
  17. <td colspan="2">
  18. <%
  19. //Response.Write("Qy: " + Request.QueryString() + "<BR>" )
  20. var g_DBConn //db Connection object
  21. var iBucket = Request.QueryString("iBucket")
  22. var NumBugs = 0
  23. var BugList = new String()
  24. var Mode = new String( Request.QueryString( "Mode" ) )
  25. var RejectID = String( Request.QueryString("RejectID") )
  26. var SolutionType = new String( Request.QueryString( "SolutionType" ) )
  27. //Response.Write("RejectID: " + RejectID + "<BR>" )
  28. if( Mode.toString() == "user" )
  29. {
  30. //Try to get a list of bug numbers associated with this request.
  31. try
  32. {
  33. g_DBConn = GetDBConnection ( Application("CRASHDB3") )
  34. var rsBugs = g_DBConn.Execute( "DBGPortal_GetBugIDSFromIBucket " + iBucket )
  35. while( !rsBugs.eof )
  36. {
  37. BugList += rsBugs("BugID") + ","
  38. NumBugs++
  39. rsBugs.MoveNext
  40. }
  41. if( NumBugs == 0 )
  42. {
  43. Response.Write( "<p>ERROR: Could not find any Raid Bugs associated with iBucket=" + iBucket + "<br>" )
  44. Response.Write( "Cannot continue.</p>" )
  45. Response.End
  46. }
  47. else
  48. {
  49. BugList = BugList.substr(0,BugList.length-1)
  50. var BugArray = BugList.split(",")
  51. if( NumBugs > 1 )
  52. {
  53. Response.Write("<p>ATTENTION: This bucket is associated with more than one Raid Bug. It is strongly recommended that you create a solution for this bucket that addresses each of its associated bugs. The bugs are listed in the Create Solution interface.</p>" )
  54. }
  55. }
  56. }
  57. catch( err )
  58. {
  59. Response.Write("<p>Could not get a list of bugs that are associated with this iBucket.<br>" + err.description + "</p>" )
  60. }
  61. var rsBucketID = g_DBConn.Execute( "DBGPortal_GetBucketIDByIBucket " + iBucket )
  62. var BucketID = rsBucketID("BucketName" )
  63. }
  64. else //This is for kernel mode
  65. {
  66. BucketID = iBucket
  67. BugList = ""
  68. }
  69. %>
  70. </td>
  71. </tr>
  72. <tr>
  73. <%
  74. if( RejectID != "undefined" && !isNaN( RejectID ) )
  75. {
  76. %>
  77. <td>
  78. <p>Reason for rejecting this request:</p>
  79. <textarea id="Reason" name="Reason" style='margin-left:16px' cols='50' rows='4' id=textarea1 name=textarea1></textarea>
  80. </td>
  81. <%
  82. } else {
  83. %>
  84. <td><p><b>Bucket String:</b></p></td>
  85. <td>
  86. <p><%=BucketID%></p>
  87. </td>
  88. </tr>
  89. <tr>
  90. <td>
  91. <p><b>Bugs assigned to this iBucket:</b></p>
  92. </td>
  93. <td>
  94. <p><%=BugList%></p>
  95. </td>
  96. </tr>
  97. <tr>
  98. <%}%>
  99. <td>
  100. <input style='margin-left:16px;display:none' id='LinkButton' type='button' class='clsButton' value='Link to SolutionID' OnClick='fnLinkBucket()' >
  101. <input style='margin-left:16px;display:none' id='RejectButton' type='button' class='clsButton' value='Reject Request' OnClick='fnReject()'>
  102. </td>
  103. <td>
  104. <input style='margin-left:16px' id='CancelButton' type='button' class='clsButton' value='Cancel' OnClick='fnClose()'>&nbsp;&nbsp;
  105. </td>
  106. </tr>
  107. </table>
  108. <hr>
  109. <script language="Javascript">
  110. window.parent.sepInnerBodyFrame.rows="150, *"
  111. var SolutionID = 0
  112. try
  113. {
  114. <%
  115. if( RejectID != "undefined" && !isNaN( RejectID ) )
  116. Response.Write( "document.all.RejectButton.style.display='block'\n" )
  117. else
  118. {
  119. if( Mode.toString() == "user" )
  120. Response.Write( "window.parent.frames('sepLeftNav').window.location = \"SEP_LeftNav.asp?Val=0&State=1&Mode=user\"'\n" )
  121. else
  122. Response.Write("fnUpdate()\n" )
  123. }
  124. %>
  125. }
  126. catch ( err )
  127. {
  128. }
  129. function fnUpdate()
  130. {
  131. try
  132. {
  133. SolutionID = window.parent.frames('sepLeftNav').document.all.SolutionID.value
  134. if ( SolutionID != "0" )
  135. {
  136. LinkButton.value="Link to SolutionID " + SolutionID
  137. LinkButton.style.display = 'block'
  138. }
  139. else
  140. LinkButton.style.display = 'none'
  141. }
  142. catch( err )
  143. {
  144. alert("Could not get a SolutionID to link this bucket to. . . try refreshing the site . . . " + err.description )
  145. }
  146. }
  147. function fnClose()
  148. {
  149. window.parent.sepInnerBodyFrame.rows="0, *"
  150. }
  151. function fnLinkBucket()
  152. {
  153. window.location = "SEP_GoLinkSolutionToBucket.asp?SolutionType=<%=SolutionType%>&BucketID=<%=Server.URLEncode(BucketID)%>&SolutionID=" + SolutionID
  154. }
  155. function fnReject()
  156. {
  157. window.location = "SEP_GoRejectSolutionRequest.asp?RejectID=<%=RejectID%>&Reason=" + document.all.Reason.value
  158. }
  159. </script>