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.

182 lines
4.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. <STYLE>
  13. .Context-Button
  14. {
  15. padding : 2pt;
  16. cursor : hand;
  17. }
  18. </STYLE>
  19. </HEAD>
  20. <BODY id=noloc0 tabindex=-1 class="sys-lhp-bgcolor" style="margin: 11px" scroll=no onselectstart="return false;">
  21. <TABLE border=0 cellPadding=0 cellSpacing=0 WIDTH=100% HEIGHT=100% style="table-layout: fixed">
  22. <TR WIDTH=100%>
  23. <TD>
  24. <DIV id=noloc1 style='width: 100%; text-overflow: ellipsis; overflow: hidden; border : 1pt solid'
  25. class='sys-font-body sys-toppane-color-border sys-toppane-header-color sys-toppane-header-bgcolor'>
  26. <DIV ID=tree_Title style='padding: 0.5em 11px'>
  27. <A class='sys-link-header sys-font-body-bold' tabIndex=1 href="hcp://system/blurbs/history.htm" target="HelpCtrContents">History</A>
  28. </DIV>
  29. </DIV>
  30. </TD>
  31. </TR>
  32. <TR>
  33. <TD HEIGHT=100%>
  34. <DIV ID=tree_Children
  35. class='sys-font-body sys-toppane-color-border sys-toppane-bgcolor'
  36. style='width: 100%; height: 100%; overflow: auto; border-left : 1pt solid; border-bottom : 1pt solid; border-right : 1pt solid; padding: 11px'>
  37. </DIV>
  38. </TD>
  39. </TABLE>
  40. </BODY>
  41. <SCRIPT>
  42. var g_RecentLinks = null;
  43. function history_ContextSwitch()
  44. {
  45. var ctx = pchealth.HelpSession.CurrentContext;
  46. if(ctx.ContextName == "HISTORY")
  47. {
  48. DisplayList();
  49. }
  50. }
  51. function history_TravelDone()
  52. {
  53. var ctx = pchealth.HelpSession.CurrentContext;
  54. if(ctx.ContextName == "HISTORY")
  55. {
  56. DisplayList();
  57. }
  58. }
  59. function onClick_Display()
  60. {
  61. var obj = this.payload;
  62. if(obj)
  63. {
  64. pchealth.HelpSession.Navigate( obj );
  65. }
  66. }
  67. function onClick_KeyPress()
  68. {
  69. if(event.keyCode == 13 || event.keyCode == 32)
  70. {
  71. var obj = event.srcElement.payload;
  72. if(obj) pchealth.HelpSession.Navigate( obj );
  73. }
  74. }
  75. ////////////////////
  76. function DisplayList()
  77. {
  78. var html = "";
  79. var e;
  80. var i;
  81. g_RecentLinks = pchealth.HelpSession.VisitedHelpPages( pchealth.HS_ALL );
  82. var seen = [];
  83. var pos = [];
  84. i = 0;
  85. for(e = new Enumerator( g_RecentLinks ); !e.atEnd(); e.moveNext())
  86. {
  87. // get the item and save it into array
  88. var obj = e.item();
  89. var pri;
  90. var holder;
  91. if(!pchealth.UI_NavBar.content.parentWindow.fnFavorites_IsValid( obj.URL )) continue;
  92. if(obj.Title == "") continue;
  93. switch(obj.ContextName)
  94. {
  95. case "STARTUP" : pri = 0; break;
  96. case "HOMEPAGE" : pri = 0; break;
  97. case "CONTENT" : pri = 0; break;
  98. case "SUBSITE" : pri = 0; break;
  99. case "SEARCH" : pri = -1; break;
  100. case "INDEX" : pri = -1; break;
  101. case "CHANNELS" : pri = -1; break;
  102. case "FAVORITES" : pri = -1; break;
  103. case "HISTORY" : pri = -2; break;
  104. case "OPTIONS" : pri = 0; break;
  105. case "CONTENTONLY": pri = 0; break;
  106. case "FULLWINDOW" : pri = 0; break;
  107. case "KIOSKMODE" : pri = 0; break;
  108. default : pri = 0; break;
  109. }
  110. if(seen[obj.Title])
  111. {
  112. holder = seen[obj.Title];
  113. if(holder.pri >= pri) continue;
  114. }
  115. else
  116. {
  117. holder = new Object();
  118. seen[obj.Title] = holder;
  119. html += "<A tabIndex=2 class='sys-link-normal' href=#>" + pchealth.TextHelpers.HTMLEscape( obj.Title ) + "<BR><BR></A>";
  120. pos[i++] = holder;
  121. }
  122. holder.pri = pri;
  123. holder.obj = obj;
  124. }
  125. tree_Children.innerHTML = html;
  126. for(e=0; e<i; e++)
  127. {
  128. var holder = pos[e];
  129. var obj = holder.obj;
  130. var obj2 = tree_Children.children(e);
  131. obj2.payload = obj;
  132. obj2.payload_text = obj2;
  133. obj2.onclick = onClick_Display;
  134. obj2.onkeypress = onClick_KeyPress;
  135. }
  136. }
  137. </SCRIPT>
  138. <helpcenter:events id=idEvents onContextSwitch="history_ContextSwitch();" onTravelDone="history_TravelDone();" />
  139. <helpcenter:state id=idState identity="History" />
  140. </HTML>