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.

173 lines
5.4 KiB

  1. <HTML XMLNS:helpcenter>
  2. <HEAD>
  3. <!--
  4. Copyright (c) 2000 Microsoft Corporation
  5. -->
  6. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=windows-1252">
  7. <META HTTP-EQUIV=PICS-Label CONTENT='(PICS-1.1 "http://www.rsac.org/ratingsv01.html" l comment "RSACi North America Server" by "[email protected]" r (n 0 s 0 v 0 l 0))'>
  8. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="Yes">
  9. <TITLE>Topics summary</TITLE>
  10. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  11. <LINK ID=Stylesheet_Ref0 href="hcp://system/css/shared.css" rel=STYLESHEET type=text/css>
  12. <LINK ID=Stylesheet_Ref1 href="hcp://system/css/Behaviors.css" rel=STYLESHEET type=text/css>
  13. <SCRIPT ID=Script1_noloc SRC="hcp://system/scripts/Common.js"></SCRIPT>
  14. <XML id='xmlTopics'>
  15. <NODE NodeType="Frame3" Key="Top">
  16. <NODE NodeType="Group" Key="1" Title="Help &amp; Information:"/>
  17. <NODE NodeType="Group" Key="2" Title="Common Questions:"/>
  18. <NODE NodeType="Group" Key="3" Title="Troubleshooting:"/>
  19. <NODE NodeType="Group" Key="4" Title="Technical Resources:"/>
  20. <NODE NodeType="Group" Key="5" Title="Tours &amp; Tutorials:"/>
  21. <NODE NodeType="Group" Key="6" Title="Help Files:"/>
  22. <NODE NodeType="Group" Key="7" Title="Fix a problem:"/>
  23. <NODE NodeType="Group" Key="8" Title="Pick a task:"/>
  24. <NODE NodeType="Group" Key="9" Title="Overviews, Articles, and Tutorials:"/>
  25. <NODE NodeType="Group" Key="10" Title="References:"/>
  26. </NODE>
  27. </XML>
  28. </HEAD>
  29. <BODY id=noloc style="margin: 11px" SCROLL=auto class="sys-rhp-bgcolor sys-font-body">
  30. <helpcenter:tree id='idTopics' onContextSelect='onContextMenu();'></helpcenter:tree>
  31. <DIV id='idNoTopics' class="sys-font-heading3 sys-rhp-color-title" style='padding: 0.5em 1em; display:none'>Please click another heading on the left to see a list of topics here.</DIV>
  32. </BODY>
  33. <SCRIPT>
  34. //////////////////////////////////////////////////////////////////////
  35. function onContextMenu()
  36. {
  37. try
  38. {
  39. var node = event.srcElement.data;
  40. if(node)
  41. {
  42. switch(node.Type)
  43. {
  44. case "LINK":
  45. case "APPLICATION":
  46. pchealth.UI_NavBar.content.parentWindow.DoCommonContextMenu( -1, "normal", node.URL );
  47. break;
  48. }
  49. }
  50. }
  51. catch(e)
  52. {
  53. }
  54. }
  55. function DisplayTopics( node, topics, elem )
  56. {
  57. var icon = node.IconURL; if(icon == "") icon = "NONE";
  58. var oXML = xmlTopics.cloneNode( true );
  59. var oRoot = oXML.documentElement;
  60. var oAttrib = oRoot.attributes;
  61. var iCount = 0;
  62. oNode = oXML.createNode( "attribute", "Title" , "" ); oNode.value = node.Title ; oAttrib.setNamedItem( oNode );
  63. oNode = oXML.createNode( "attribute", "Description", "" ); oNode.value = node.Description; oAttrib.setNamedItem( oNode );
  64. if(node.IconURL)
  65. {
  66. oNode = oXML.createNode( "attribute", "Icon", "" ); oNode.value = node.IconURL; oAttrib.setNamedItem( oNode );
  67. }
  68. for(var e = new Enumerator( topics ); !e.atEnd(); e.moveNext())
  69. {
  70. var qr = e.item();
  71. var strLink = qr.TopicURL; if(strLink == "") continue;
  72. var strIcon = qr.IconURL ; if(strIcon == "") strIcon = "hcp://system/images/icon_blank_12x.bmp";
  73. var strTitle;
  74. var strToolTip;
  75. var iType = qr.Type;
  76. var oNode;
  77. var res;
  78. oNode = oRoot.selectSingleNode( "NODE[@Key = \"" + iType + "\"]" );
  79. if(!oNode) oNode = oRoot.selectSingleNode( "NODE[@Key = \"1\"]" );
  80. if(oNode)
  81. {
  82. if(qr.Title != "")
  83. {
  84. strTitle = qr.Title;
  85. if(res = strLink.match( /^file:([a-z].*)/i ))
  86. {
  87. strLink = res[1];
  88. }
  89. pchealth.HelpSession.SetTitle( strLink, strTitle );
  90. }
  91. else
  92. {
  93. strTitle = unescape( strLink );
  94. }
  95. strToolTip = qr.Description;
  96. if(strToolTip == "") strToolTip = strTitle;
  97. oNode = oNode.appendChild( oXML.createElement( "NODE" ) );
  98. oAttrib = oNode.attributes;
  99. oNode = oXML.createNode( "attribute", "Key" , "" ); oNode.value = "Topic_" + iCount++; oAttrib.setNamedItem( oNode );
  100. oNode = oXML.createNode( "attribute", "NodeType" , "" ); oNode.value = "Link" ; oAttrib.setNamedItem( oNode );
  101. oNode = oXML.createNode( "attribute", "Title" , "" ); oNode.value = strTitle ; oAttrib.setNamedItem( oNode );
  102. oNode = oXML.createNode( "attribute", "Description", "" ); oNode.value = strToolTip ; oAttrib.setNamedItem( oNode );
  103. oNode = oXML.createNode( "attribute", "URL" , "" ); oNode.value = strLink ; oAttrib.setNamedItem( oNode );
  104. oNode = oXML.createNode( "attribute", "Icon" , "" ); oNode.value = strIcon ; oAttrib.setNamedItem( oNode );
  105. }
  106. }
  107. var oNodes = oRoot.selectNodes( "NODE" );
  108. while(oNode = oNodes.nextNode)
  109. {
  110. if(oNode.hasChildNodes == false)
  111. {
  112. oRoot.removeChild( oNode );
  113. }
  114. }
  115. elem.Populate( oXML.documentElement );
  116. idNoTopics.style.display = iCount ? "none" : "";
  117. }
  118. function parseHREF( url )
  119. {
  120. try
  121. {
  122. var pu = pchealth.TextHelpers.ParseURL( url );
  123. var category = pu.GetQueryParameter( "path" );
  124. var node = pchealth.Database.LookupNode ( category );
  125. var topics = pchealth.Database.LookupTopics( category, true );
  126. if(node.Count)
  127. {
  128. DisplayTopics( node(1), topics, idTopics );
  129. }
  130. }
  131. catch(e)
  132. {
  133. }
  134. }
  135. parseHREF( window.location.href );
  136. </SCRIPT>
  137. </HTML>