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.

283 lines
6.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. <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. <LINK ID=Stylesheet_Ref2 href="hcp://system/css/Layout.css" rel=STYLESHEET type=text/css>
  13. </HEAD>
  14. <BODY id=noloc0 tabindex=-1 class="sys-lhp-bgcolor" style="margin: 11px" scroll=no>
  15. <TABLE border=0 cellPadding=0 cellSpacing=0 WIDTH=100% HEIGHT=100% style="table-layout: fixed">
  16. <TR WIDTH=100%>
  17. <TD HEIGHT=100%>
  18. <helpcenter:subsite id="idDisplay" expand="true" target="HelpCtrContents" onContextSelect="subsite_onContextSelect();" onSelect="subsite_onSelect( true );" onUnselect="subsite_onUnselect();"></helpcenter:subsite>
  19. </TD>
  20. </TR>
  21. <TR id=idSeeAlso style="padding-top: 11px">
  22. <TD>
  23. <helpcenter:subsite id="idDisplay2" root="_SYSTEM_/See_Also" target="HelpCtrContents" onContextSelect="subsite_onContextSelect();" onSelect="subsite_onSelect( false );" onUnselect="subsite_onUnselect();"></helpcenter:subsite>
  24. </TD>
  25. </TR>
  26. </TABLE>
  27. </BODY>
  28. <SCRIPT>
  29. var g_lastHeight = 0;
  30. var g_timeoutSIZE = null;
  31. var g_timeoutSELECT = null;
  32. var g_NavigationModel = pchealth.QR_DEFAULT;
  33. subsite_CheckSize();
  34. function subsite_onContextSelect()
  35. {
  36. try
  37. {
  38. var node = event.srcElement.data;
  39. pchealth.UI_NavBar.content.parentWindow.DoCommonContextMenu( -1, "subsite", node );
  40. }
  41. catch(e)
  42. {
  43. }
  44. }
  45. function subsite_onSelect( flag )
  46. {
  47. if(flag) idDisplay2.Unselect();
  48. else idDisplay .Unselect();
  49. subsite_ShowContent( event.srcElement.data );
  50. }
  51. function subsite_onUnselect()
  52. {
  53. }
  54. function subsite_ShowContent( node )
  55. {
  56. try
  57. {
  58. if(node)
  59. {
  60. var category = node.FullPath;
  61. var url = node.TopicURL
  62. // Only desktop versions display the list of links to the right.
  63. if(node.Entry && g_NavigationModel == pchealth.QR_DESKTOP)
  64. {
  65. var topics = pchealth.Database.LookupTopics( category, true );
  66. if(topics.Count || url == "")
  67. {
  68. url = "hcp://system/panels/Topics.htm?path=" + escape(category);
  69. pchealth.HelpSession.SetTitle( url, node.Title );
  70. }
  71. }
  72. if(url != "" && pchealth.HelpSession.IsNavigating() == false)
  73. {
  74. pchealth.UI_Contents.content.Navigate( url, null, null, null, null );
  75. }
  76. }
  77. }
  78. catch(e)
  79. {
  80. }
  81. }
  82. ////////////////////////////////////////////////////////////////////////////////
  83. function subsite_ContextSwitch()
  84. {
  85. var ctx = pchealth.HelpSession.CurrentContext;
  86. if(ctx.ContextName == "SUBSITE")
  87. {
  88. if(ctx.ContextInfo)
  89. {
  90. var r;
  91. var strNode = ctx.ContextInfo;
  92. var strNodeToSelect = "";
  93. var strURL = "";
  94. r = strNode.match( /([^ ]*) (.*)/ );
  95. if(r)
  96. {
  97. strNode = r[1];
  98. strNodeToSelect = r[2];
  99. r = strNodeToSelect.match( /([^ ]*) (.*)/ );
  100. if(r)
  101. {
  102. strNodeToSelect = r[1];
  103. strURL = r[2];
  104. }
  105. }
  106. if(idDisplay.root != strNode)
  107. {
  108. g_NavigationModel = pchealth.UserSettings.IsDesktopVersion ? pchealth.QR_DESKTOP : pchealth.QR_SERVER;
  109. try
  110. {
  111. var node = pchealth.Database.LookupNode( strNode ).Item(1);
  112. if(node.NavigationModel != pchealth.QR_DEFAULT) g_NavigationModel = node.NavigationModel;
  113. }
  114. catch(e)
  115. {
  116. }
  117. idDisplay.root = strNode;
  118. }
  119. idState.stateProperty( "root" ) = null;
  120. idState.stateProperty( "dataser" ) = null;
  121. subsite_SelectDelayed( strNodeToSelect, strURL );
  122. }
  123. }
  124. }
  125. function subsite_PersistLoad()
  126. {
  127. var root = idState.stateProperty( "root" );
  128. var dataSer = idState.stateProperty( "dataser" );
  129. var navmodel = idState.stateProperty( "navmodel" );
  130. if(navmodel) g_NavigationModel = navmodel;
  131. if(dataSer)
  132. {
  133. idDisplay.Load( dataSer );
  134. }
  135. else if(root)
  136. {
  137. idDisplay.root = root;
  138. }
  139. }
  140. function subsite_PersistSave()
  141. {
  142. idState.stateProperty( "navmodel" ) = g_NavigationModel;
  143. }
  144. function subsite_TravelDone()
  145. {
  146. var dataSer;
  147. try
  148. {
  149. dataSer = idDisplay.Save();
  150. }
  151. catch(e)
  152. {
  153. dataSer = null;
  154. }
  155. idState.stateProperty( "root" ) = idDisplay.root;
  156. idState.stateProperty( "dataser" ) = dataSer;
  157. }
  158. function subsite_CheckSize()
  159. {
  160. var fState;
  161. if(pchealth.UserSettings.IsDesktopVersion)
  162. {
  163. if(pchealth.UI_Context.height == 0)
  164. {
  165. subsite_CheckSizeDelayed( true );
  166. return; // Too early.
  167. }
  168. if(idSeeAlso.style.display == "")
  169. {
  170. g_lastHeight = idSeeAlso.scrollHeight;
  171. }
  172. fState = (g_lastHeight < pchealth.UI_Context.height * 0.5);
  173. }
  174. else
  175. {
  176. fState = false;
  177. }
  178. idSeeAlso.style.display = fState ? "" : "none";
  179. }
  180. function subsite_CheckSizeDelayed( fSet )
  181. {
  182. if(g_timeoutSIZE != null)
  183. {
  184. window.clearTimeout( g_timeoutSIZE );
  185. g_timeoutSIZE = null;
  186. }
  187. if(fSet)
  188. {
  189. g_timeoutSIZE = window.setTimeout( subsite_CheckSize, 10 );
  190. }
  191. }
  192. function subsite_Select()
  193. {
  194. if(g_strNodeToSelect)
  195. {
  196. idDisplay.Select( g_strNodeToSelect, g_strURL, false );
  197. }
  198. }
  199. function subsite_SelectDelayed( strNodeToSelect, strURL )
  200. {
  201. if(g_timeoutSELECT != null)
  202. {
  203. window.clearTimeout( g_timeoutSELECT );
  204. g_timeoutSELECT = null;
  205. }
  206. if(strNodeToSelect)
  207. {
  208. g_strNodeToSelect = strNodeToSelect;
  209. g_strURL = strURL;
  210. g_timeoutSELECT = window.setTimeout( subsite_Select, 200 );
  211. }
  212. }
  213. function window::onunload()
  214. {
  215. subsite_CheckSizeDelayed( false );
  216. subsite_SelectDelayed ( null, null );
  217. }
  218. function window::onresize()
  219. {
  220. subsite_CheckSize();
  221. }
  222. </SCRIPT>
  223. <helpcenter:events id=idEvents onContextSwitch="subsite_ContextSwitch();" onPersistLoad="subsite_PersistLoad();" onPersistSave="subsite_PersistSave();" onTravelDone="subsite_TravelDone();"
  224. onOptionsChanged="subsite_CheckSize()" onCssChanged="subsite_CheckSize()" />
  225. <helpcenter:state id=idState identity="Subsite" />
  226. </HTML>