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.

195 lines
4.7 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. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  10. <LINK ID=Stylesheet_Ref0 href="hcp://system/css/shared.css" rel=STYLESHEET type=text/css>
  11. <LINK ID=Stylesheet_Ref1 href="hcp://system/css/Behaviors.css" rel=STYLESHEET type=text/css>
  12. </HEAD>
  13. <BODY SCROLL=NO oncontextmenu="return false;" class="sys-rhp-bgcolor sys-font-body">
  14. <OBJECT tabIndex=-1 ID=idTB CLASSID="CLSID:FC7D9E08-3F9E-11d3-93C0-00C04F72DAF7" WIDTH=100%>
  15. <PARAM id=NoLoc1 name="Definition" value="MiniNavBar.xml">
  16. </OBJECT>
  17. </BODY>
  18. <SCRIPT>
  19. var L_NotFoundInContext_Message = 'This topic is available only from Search or the Index.\nTo quickly locate this topic in the future, add it to your Help and Support Favorites list.';
  20. var g_options = pchealth.UserSettings.Options;
  21. ////////////////////
  22. function LocateContext( url, subsite )
  23. {
  24. var coll = pchealth.Database.LocateContext( url, subsite );
  25. var node = null;
  26. if(coll.Count > 0)
  27. {
  28. node = coll.Item(1);
  29. }
  30. else if(subsite)
  31. {
  32. subsite = null;
  33. coll = pchealth.Database.LocateContext( url );
  34. if(coll.Count > 0)
  35. {
  36. node = coll.Item(1);
  37. }
  38. }
  39. return node;
  40. }
  41. function ExecLocate()
  42. {
  43. var url;
  44. var node = null;
  45. try
  46. {
  47. var ctx = pchealth.HelpSession.CurrentContext;
  48. var subsite = null;
  49. var coll;
  50. url = ctx.URL;
  51. if(ctx.ContextName == "SUBSITE")
  52. {
  53. var arr = ctx.ContextInfo.split( " " );
  54. subsite = arr[0];
  55. }
  56. node = LocateContext( url, subsite );
  57. if(!node)
  58. {
  59. url = url.replace( /^its:/i , "ms-its:" );
  60. url = url.replace( /^mk:@MSITStore:/i, "ms-its:" );
  61. node = LocateContext( url, subsite );
  62. }
  63. if((node.FullPath != subsite) || (node && !subsite))
  64. {
  65. //
  66. // Locate the subsite.
  67. //
  68. var category = node.Category;
  69. while(category)
  70. {
  71. var subnode = pchealth.Database.LookupNode( category ).Item(1);
  72. if(subnode.Subsite || subnode.Category == "")
  73. {
  74. subsite = subnode.FullPath;
  75. break;
  76. }
  77. category = subnode.Category;
  78. }
  79. }
  80. }
  81. catch(e)
  82. {
  83. }
  84. if(node && subsite)
  85. {
  86. pchealth.UI_NavBar.content.parentWindow.onClick_ChangeView( "normal" );
  87. pchealth.HelpSession.ChangeContext( "subsite", subsite + " " + node.FullPath + " " + url, url );
  88. }
  89. else
  90. {
  91. pchealth.MessageBox( L_NotFoundInContext_Message, "OK" );
  92. }
  93. }
  94. ////////////////////
  95. function mininavbar_onTransition()
  96. {
  97. SetButtonVisibility();
  98. }
  99. function mininavbar_onTravelDone()
  100. {
  101. var url = pchealth.HelpSession.CurrentContext.URL;
  102. var fEnabledPrint = false;
  103. var fEnabledFav = false;
  104. if(url && pchealth.UI_NavBar.content.parentWindow.fnPrint_IsValid( url ))
  105. {
  106. fEnabledPrint = true;
  107. }
  108. if(url && pchealth.UI_NavBar.content.parentWindow.fnFavorites_IsValid( url ))
  109. {
  110. fEnabledFav = true;
  111. }
  112. idTB.SetState( "BACK" , pchealth.HelpSession.IsValid( -1 ) );
  113. idTB.SetState( "FORWARD" , pchealth.HelpSession.IsValid( 1 ) );
  114. idTB.SetState( "PRINT" , fEnabledPrint );
  115. idTB.SetState( "ADDFAVORITE", fEnabledFav );
  116. }
  117. function mininavbar_OptionsChanged()
  118. {
  119. if(idTB.Mode != g_options.TextLabels)
  120. {
  121. idTB.Mode = g_options.TextLabels;
  122. }
  123. }
  124. ////////////////////
  125. function SetButtonVisibility()
  126. {
  127. var ext = pchealth.UI_NavBar.content.parentWindow.external;
  128. var fVisible = (ext.places.currentPlace.name == "ContentOnly");
  129. idTB.SetVisibility( "BACK" , fVisible );
  130. idTB.SetVisibility( "FORWARD" , fVisible );
  131. idTB.SetVisibility( "SEP1" , fVisible );
  132. idTB.SetVisibility( "LAYOUT_LARGE", fVisible );
  133. idTB.SetVisibility( "LAYOUT_SMALL", fVisible == false );
  134. }
  135. setTimeout( "SetButtonVisibility()", 10 );
  136. </SCRIPT>
  137. <SCRIPT LANGUAGE="JScript" EVENT="onCommand( tb, id )" FOR="idTB">
  138. if(id == "LOCATE")
  139. {
  140. ExecLocate();
  141. }
  142. else
  143. {
  144. pchealth.UI_NavBar.content.parentWindow.ProcessToolbarCommands( tb, id );
  145. }
  146. </SCRIPT>
  147. <helpcenter:events id=idEvents onTransition="mininavbar_onTransition();" onTravelDone="mininavbar_onTravelDone();" onOptionsChanged="mininavbar_OptionsChanged()" />
  148. <helpcenter:state id=idState identity="MiniNavBar" />
  149. </HTML>