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.

258 lines
9.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. </head>
  8. <body bgcolor='#ffffff' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' tabindex='0' onresize='fnSizeTables()' onload='fnSizeTables()' >
  9. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  10. <tr>
  11. <td>
  12. <p class='clsPTitle'>Debug Portal - Kernel Mode Data</p>
  13. </td>
  14. </tr>
  15. <tr>
  16. <td>
  17. <p class='clsPSubTitle'>Lookup Buckets by Owner</p>
  18. <p>Select all the alias names that you would like to add to your display panel. Once complete, click the OK button to store your desired choices. Each alias will apear in the left NAV bar where you can drill down further into each followups buckets.</p>
  19. <input type='button' class='clsButton' style='margin-left:16px' OnClick='fnSelectFollowUps()' value='OK'>
  20. </td>
  21. </tr>
  22. <tr>
  23. <td style="width:40%">
  24. <div style="height:30;margin-right:10px;margin-left:16px;padding-right:0" >
  25. <table id="tblStatus" class="clsTableInfo2" border="0" cellpadding="0" cellspacing="1">
  26. <tr>
  27. <td style="width:64px" align="left" nowrap class="clsTDInfo">
  28. View
  29. </td>
  30. <td style="BORDER-LEFT: white 1px solid" align="left" nowrap class="clsTDInfo">
  31. Alias
  32. </td>
  33. <td align=right class='clsTDInfo'>
  34. [
  35. <%
  36. var letters = new String( "a b c d e f g h i j k l m n o p q r s t u v w x y z" )
  37. var letters = letters.split(" ")
  38. for ( var i = 0 ; i < 26 ; i++ )
  39. Response.Write("<a class='clsALinkNormal2' href='#" + letters[i] + "'>" + letters[i] + "</a>&nbsp" )
  40. %>
  41. ]
  42. </td>
  43. </tr>
  44. </table>
  45. </div>
  46. <div id='divFollowupList' style="height:600px;overflow:auto;border-bottom:thin groove;border-right:none;margin-right:10px;margin-left:16px;padding-right:0">
  47. <table id="tblStatus" class="clsTableInfo2" border="0" cellpadding="0" cellspacing="1" style="margin-left:0;margin-right:0;padding-right:30" >
  48. <%
  49. var SelectedAliases = new String( Request.Cookies("AliasList") )
  50. SelectedAliases = SelectedAliases.replace( /{/gi, ";" )
  51. SelectedAliases = SelectedAliases.split( "," )
  52. try
  53. {
  54. var g_DBConn = GetDBConnection ( Application("CRASHDB3") )
  55. var rsFollowUp = g_DBConn.Execute( "DBGPortal_GetFollowUpIDs" )
  56. var CurrentLetter = "1"
  57. while ( !rsFollowUp.EOF )
  58. {
  59. var FollowUp = new String( rsFollowUp("FollowUp") ).substr( 0, 1 )
  60. var InSelectedAliases = false
  61. if ( FollowUp.toLowerCase() != CurrentLetter.toLowerCase() )
  62. {
  63. AddHref = "<a name='#" + FollowUp + "'></a>"
  64. CurrentLetter = FollowUp.toLowerCase()
  65. Response.Write( "<tr><td colspan='2' class='sys-table-cell-bgcolor1' align='center' >" + CurrentLetter.toUpperCase() + AddHref + "</td></tr>" )
  66. }
  67. else
  68. AddHref = ""
  69. for ( f in SelectedAliases )
  70. {
  71. if ( SelectedAliases[f] == String( rsFollowUp("FollowUP") ) )
  72. {
  73. InSelectedAliases = true
  74. break;
  75. }
  76. }
  77. if ( InSelectedAliases == true )
  78. Response.Write("<tr style='padding-right:0;margin-right:0'><td style='width:60px' class='sys-table-cell-bgcolor2'><input type='checkbox' name='AliasList' value='" + rsFollowUp("FollowUP") + "' Checked>")
  79. else
  80. Response.Write("<tr style='padding-right:0;margin-right:0'><td style='width:60px' class='sys-table-cell-bgcolor2'><input type='checkbox' name='AliasList' value='" + rsFollowUp("FollowUP") + "'>")
  81. Response.Write("<td class='sys-table-cell-bgcolor2' style='padding-right:0;margin-right:0'>" + rsFollowUp("Followup" ) + "</td></tr>" )
  82. rsFollowUp.MoveNext()
  83. }
  84. }
  85. catch( err )
  86. {
  87. }
  88. %>
  89. </table>
  90. </div>
  91. </td>
  92. <td style="width:40%">
  93. <div style="height:30;margin-right:10px;margin-left:16px;padding-right:0" >
  94. <table id="tblStatus" class="clsTableInfo2" border="0" cellpadding="0" cellspacing="1">
  95. <tr>
  96. <td style="width:60px" align="left" nowrap class="clsTDInfo">
  97. View
  98. </td>
  99. <td style="BORDER-LEFT: white 1px solid" align="left" nowrap class="clsTDInfo">
  100. Group Name
  101. </td>
  102. <td align=right class='clsTDInfo'>
  103. <%
  104. //for ( var i = 0 ; i < 52 ; i++ )
  105. //Response.Write("&nbsp;" )
  106. %>
  107. </td>
  108. </tr>
  109. </table>
  110. </div>
  111. <div ID='divGroupList' style="height:600px;overflow:auto;border-bottom:thin groove;border-right:none;margin-right:10px;margin-left:16px;padding-right:0">
  112. <table id="tblStatus" class="clsTableInfo2" border="0" cellpadding="0" cellspacing="1" style="margin-left:0;margin-right:0;padding-right:30" >
  113. <%
  114. try
  115. {
  116. var SelectedAliases = new String( Request.Cookies("GroupList") )
  117. SelectedAliases = SelectedAliases.replace( /{/gi, ";" )
  118. SelectedAliases = SelectedAliases.split( "," )
  119. var rsFollowUp = g_DBConn.Execute( "DBGPortal_GetFollowUpGroups" )
  120. var CurrentLetter = "1"
  121. while ( !rsFollowUp.EOF )
  122. {
  123. var FollowUp = new String( rsFollowUp("GroupName") ).substr( 0, 1 )
  124. var InSelectedAliases = false
  125. if ( FollowUp.toLowerCase() != CurrentLetter.toLowerCase() )
  126. {
  127. AddHref = "<a name='#" + FollowUp + "'></a>"
  128. CurrentLetter = FollowUp.toLowerCase()
  129. }
  130. else
  131. AddHref = ""
  132. for ( f in SelectedAliases )
  133. {
  134. if ( SelectedAliases[f] == String( rsFollowUp("GroupName") ) )
  135. {
  136. InSelectedAliases = true
  137. break;
  138. }
  139. }
  140. if ( InSelectedAliases == true )
  141. Response.Write("<tr style='padding-right:0;margin-right:0'><td style='width:60px' class='sys-table-cell-bgcolor2'><input type='checkbox' name='GroupList' value='" + rsFollowUp("GroupName") + "' Checked>")
  142. else
  143. Response.Write("<tr style='padding-right:0;margin-right:0'><td style='width:60px' class='sys-table-cell-bgcolor2'><input type='checkbox' name='GroupList' value='" + rsFollowUp("GroupName") + "'>")
  144. Response.Write("<td class='sys-table-cell-bgcolor2' style='padding-right:0;margin-right:0'>" + rsFollowUp("GroupName" ) + "</td></tr>" )
  145. Response.Write("<tr><td class='sys-table-cell-bgcolor1' colspan=2>")
  146. var rsMembers = g_DBConn.Execute( "DBGPortal_GetGroupMembers " + rsFollowUp("iGroup") )
  147. while ( !rsMembers.EOF )
  148. {
  149. Response.Write( rsMembers("FollowUP") + "<BR>" )
  150. rsMembers.MoveNext()
  151. }
  152. rsFollowUp.MoveNext()
  153. }
  154. }
  155. catch( err )
  156. {
  157. Response.Write("Could not create Group list. err: " + err.description )
  158. }
  159. %>
  160. </table>
  161. </div>
  162. </td>
  163. </tr>
  164. </table>
  165. <script language='javascript'>
  166. function fnSizeTables()
  167. {
  168. var newSize = document.body.offsetHeight - 174 - 30;
  169. if ( newSize > 100 )
  170. {
  171. document.all.divGroupList.style.height = document.all.divFollowupList.style.height = newSize
  172. }
  173. else
  174. {
  175. document.all.divGroupList.style.height = document.all.divFollowupList.style.height = 100
  176. }
  177. }
  178. function fnSelectFollowUps()
  179. {
  180. fnSelectGroup()
  181. var CookieVal = new Array()
  182. window.parent.frames("sepLeftNav").fnClearFollowUpList()
  183. for ( var i=0 ; i < AliasList.length ; i ++ )
  184. {
  185. if ( AliasList[i].checked == true )
  186. {
  187. //window.parent.frames("sepLeftNav").fnAddFollowUp( AliasList[i].value )
  188. window.parent.frames("sepLeftNav").fnAddElement( AliasList[i].value, "tblSelectedFollowups" )
  189. //We have to replace the ; with { since cookies are separated by ;
  190. var temp = new String( AliasList[i].value )
  191. temp = temp.replace( /;/gi, "{" )
  192. CookieVal.push( temp )
  193. }
  194. }
  195. document.cookie = "AliasList=" + CookieVal.toString() + ";expires=Fri, 31 Dec 2005 23:59:59 GMT;";
  196. }
  197. function fnSelectGroup()
  198. {
  199. var CookieVal = new Array()
  200. //window.parent.frames("sepLeftNav").fnClearFollowUpList()
  201. window.parent.frames("sepLeftNav").fnClearTable( "tblSelectedGroups", 0 )
  202. for ( var i=0 ; i < GroupList.length ; i ++ )
  203. {
  204. if ( GroupList[i].checked == true )
  205. {
  206. //window.parent.frames("sepLeftNav").fnAddGroup( GroupList[i].value )
  207. window.parent.frames("sepLeftNav").fnAddElement( GroupList[i].value, "tblSelectedGroups" )
  208. //We have to replace the ; with { since cookies are separated by ;
  209. var temp = new String( GroupList[i].value )
  210. temp = temp.replace( /;/gi, "{" )
  211. CookieVal.push( temp )
  212. }
  213. }
  214. document.cookie = "GroupList=" + CookieVal.toString() + ";expires=Fri, 31 Dec 2005 23:59:59 GMT;";
  215. }
  216. </script>