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.

123 lines
2.8 KiB

  1. <HTML>
  2. <HEAD>
  3. <title>Code Scan Results</title>
  4. <HTA:APPLICATION ID="oHTA"
  5. APPLICATIONNAME="ResultUI"
  6. BORDER="thick"
  7. BORDERSTYLE="normal"
  8. CAPTION="yes"
  9. ICON="DefectUI.ico"
  10. MAXIMIZEBUTTON="yes"
  11. MINIMIZEBUTTON="yes"
  12. SHOWINTASKBAR="yes"
  13. SINGLEINSTANCE="no"
  14. SYSMENU="yes"
  15. VERSION="1.0"
  16. />
  17. </HEAD>
  18. <SCRIPT>
  19. // Global variables
  20. var g_ResultXmlFile = "ScanResult.xml"; // The results file is hardcorded.
  21. var g_ListViewInitialized = false;
  22. var g_Sev1Only = false;
  23. // Global DHTML objects
  24. var g_theFrameSet;
  25. var g_listControlFrame;
  26. var g_CommentFrame;
  27. function contentWindow(frameElement)
  28. {
  29. // The contentWindow property works in IE >= 5.5
  30. if (frameElement.contentWindow)
  31. return frameElement.contentWindow;
  32. var strIndex = frameElement.name;
  33. if (!strIndex || !strIndex.length)
  34. strIndex = frameElement.id;
  35. return frameElement.document.frames(strIndex);
  36. }
  37. function GetXmlFile()
  38. {
  39. return g_ResultXmlFile;
  40. }
  41. function ParseCommandLine()
  42. {
  43. var cmdLine = oHTA.commandLine;
  44. // Search for "-" character in the cmd string
  45. var iPos = cmdLine.search(/-/);
  46. // If found, we have parameters
  47. if ( -1 != iPos )
  48. {
  49. // Get the parameters into an array
  50. var paramsText = cmdLine.substring(iPos, cmdLine.length);
  51. var pArray = paramsText.split(" ");
  52. for (var param in pArray)
  53. {
  54. if ("-sev1" == pArray[param].toLowerCase())
  55. g_Sev1Only = true;
  56. }
  57. }
  58. }
  59. function ShowOnlySev1Issues()
  60. {
  61. return g_Sev1Only;
  62. }
  63. function theFrameSet_onload()
  64. {
  65. // Cache several DHTML objects
  66. g_theFrameSet = document.all( "theFrameSet");
  67. g_listControlFrame = document.all( "listControlFrame");
  68. g_CommentFrame = document.all( "CommentFrame");
  69. ParseCommandLine();
  70. // Allow the list control frame to begin its work
  71. g_ListViewInitialized = contentWindow(g_listControlFrame).InitializeListView();
  72. if ( g_ListViewInitialized )
  73. {
  74. var strTerm = contentWindow(g_listControlFrame).GetFirstTerm();
  75. contentWindow(g_CommentFrame).InitializeComment(strTerm);
  76. }
  77. }
  78. function PopulateComment(strTerm)
  79. {
  80. return g_CommentFrame ? contentWindow(g_CommentFrame).PopulateComment(strTerm) : null;
  81. }
  82. </SCRIPT>
  83. <frameset name="theFrameSet" framespacing="0" frameborder="1" cols="*,25%" onload="theFrameSet_onload();">
  84. <frame name="listControlFrame" scrolling="auto" application="yes" src="listcontrol.html" />
  85. <frame name="CommentFrame" scrolling="auto" application="yes" src="comment.html" />
  86. <noframes tabindex="-1">
  87. <body bgcolor="#FFFFFF">
  88. <p>This page uses frames, but your browser doesn't support them.</p>
  89. </body>
  90. </noframes>
  91. </frameset>
  92. </HTML>