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.

335 lines
7.6 KiB

  1. <HTML id=dlgFind STYLE="font-family: MS Shell Dlg; font-size: 8pt; width: 20em; height: 15em">
  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. <LINK ID=Stylesheet_Ref0 href="hcp://system/css/shared.css" rel=STYLESHEET type=text/css>
  10. <TITLE id=dialogTitle>Help and Support Center</TITLE>
  11. <STYLE>
  12. .ClsBody
  13. {
  14. margin-left : 22px;
  15. margin-right : 22px;
  16. margin-top : 2em;
  17. margin-bottom : 2em;
  18. color : windowtext;
  19. background : threedface;
  20. font-family : MS Shell Dlg;
  21. font-size : 8pt;
  22. }
  23. .ClsProgressBar
  24. {
  25. border-width : 2pt;
  26. border-style : inset;
  27. border-left-color : threedshadow;
  28. border-top-color : threedshadow;
  29. border-right-color : threedlightshadow;
  30. border-bottom-color : threedlightshadow;
  31. }
  32. .ClsProgressBarPre
  33. {
  34. background-color: navy;
  35. }
  36. .ClsProgressBarPost
  37. {
  38. background-color: window;
  39. }
  40. </STYLE>
  41. <OBJECT ID=pchealth classid=CLSID:FC7D9E02-3F9E-11d3-93C0-00C04F72DAF7></OBJECT>
  42. <SCRIPT ID=Script1_noloc LANGUAGE="JavaScript" DEFER SRC="DlgLib.js"></SCRIPT>
  43. <SCRIPT DEFER LANGUAGE=JavaScript>
  44. //
  45. // localizable variables/filenames
  46. //
  47. var L_PrintError_Message = "An error occurred during printing: ";
  48. var L_LargePrint_Message = "You are about to print %d files\nContinue?";
  49. var L_NoTopics_Message = "Sorry, no topic is suitable for printing";
  50. ////////////////////////////////////////
  51. var g_pe = null;
  52. var g_state = null;
  53. function UpdateProgress( iDone, iTotal )
  54. {
  55. if(idSlider.HighLimit != iTotal) idSlider.HighLimit = iTotal;
  56. if(idSlider.Pos != iDone ) idSlider.Pos = iDone;
  57. }
  58. function onProgress( pchpe, url, done, total )
  59. {
  60. UpdateProgress( done, total );
  61. }
  62. function onComplete( pchpe, hr )
  63. {
  64. if(hr != 0)
  65. {
  66. window.setTimeout( "global_Cancel();", 50 );
  67. }
  68. else
  69. {
  70. idSecondPhase.style.display = "none";
  71. idThirdPhase .style.display = "";
  72. btnCancel3.focus();
  73. }
  74. }
  75. function AddTopic( url )
  76. {
  77. if(g_state.isValid( url ))
  78. {
  79. var urlUPPER = url.toUpperCase();
  80. if(g_state.seen[urlUPPER]) return;
  81. g_state.seen[urlUPPER] = 1;
  82. g_pe.AddTopic( url ); g_state.num++;
  83. }
  84. }
  85. function AddTopicsFromNode( node )
  86. {
  87. try
  88. {
  89. var qrc = pchealth.Database.GatherTopics( node, true );
  90. if(qrc)
  91. {
  92. for(var e = new Enumerator( qrc ); !e.atEnd(); e.moveNext())
  93. {
  94. var qr = e.item();
  95. if(qr.TopicURL != "")
  96. {
  97. AddTopic( qr.TopicURL );
  98. }
  99. }
  100. }
  101. }
  102. catch(e)
  103. {
  104. }
  105. }
  106. function fnPrint()
  107. {
  108. idFirstPhase .style.display = "none";
  109. idSecondPhase.style.display = "";
  110. btnCancel2.focus();
  111. try
  112. {
  113. g_pe = pchealth.CreateObject_PrintEngine();
  114. if(idTopic_Single.checked)
  115. {
  116. AddTopic( g_state.Single );
  117. }
  118. if(idTopic_Sibling.checked ||
  119. idTopic_Recurse.checked )
  120. {
  121. AddTopic( g_state.Single );
  122. for(var e = new Enumerator( g_state.Topics ); !e.atEnd(); e.moveNext())
  123. {
  124. var qr = e.item();
  125. if(qr.TopicURL != "")
  126. {
  127. AddTopic( qr.TopicURL );
  128. }
  129. }
  130. }
  131. if(idTopic_Recurse.checked)
  132. {
  133. for(var e = new Enumerator( g_state.Nodes ); !e.atEnd(); e.moveNext())
  134. {
  135. var qr = e.item();
  136. if(qr.TopicURL != "")
  137. {
  138. AddTopic( qr.TopicURL );
  139. }
  140. AddTopicsFromNode( qr.FullPath );
  141. }
  142. }
  143. g_pe.onComplete = onComplete;
  144. g_pe.onProgress = onProgress;
  145. if(g_state.num > 25)
  146. {
  147. if(pchealth.MessageBox( L_LargePrint_Message.replace( /%d/g, g_state.num ), "YESNO" ) == "NO")
  148. {
  149. global_Cancel();
  150. return;
  151. }
  152. }
  153. g_pe.Start();
  154. }
  155. catch(e)
  156. {
  157. }
  158. }
  159. function global_Cancel()
  160. {
  161. global_Shutdown();
  162. window.setTimeout( "window.close();", 10 );
  163. }
  164. function global_Shutdown()
  165. {
  166. if(g_pe)
  167. {
  168. g_pe.Abort();
  169. g_pe = null;
  170. }
  171. }
  172. function loadBody()
  173. {
  174. fnInitCommon();
  175. try
  176. {
  177. var active = null;
  178. g_state = window.dialogArguments;
  179. switch(g_state.Mode)
  180. {
  181. case "single":
  182. g_state.Single = g_state.Data;
  183. break;
  184. case "subsite":
  185. var node = g_state.Data.FullPath;
  186. g_state.Single = g_state.Data.TopicURL;
  187. idCategory.innerText = g_state.Data.Title;
  188. g_state.Nodes = pchealth.Database.LookupSubNodes( node, true );
  189. g_state.Topics = pchealth.Database.LookupTopics ( node, true );
  190. break;
  191. }
  192. if(g_state.Nodes && g_state.Nodes .Count > 0) { idTopic_Recurse.disabled = false; active = idTopic_Recurse; }
  193. if(g_state.Topics && g_state.Topics.Count > 0) { idTopic_Sibling.disabled = false; active = idTopic_Sibling; }
  194. if(g_state.Single ) { idTopic_Single .disabled = false; active = idTopic_Single ; }
  195. if(active == null)
  196. {
  197. pchealth.MessageBox( L_NoTopics_Message, "OK" );
  198. global_Cancel();
  199. return;
  200. }
  201. else
  202. {
  203. active.checked = true;
  204. }
  205. }
  206. catch(e)
  207. {
  208. }
  209. }
  210. </SCRIPT>
  211. </HEAD>
  212. <BODY ID=idBody onload="loadBody()" class="ClsBody" topmargin=0 scroll=no>
  213. <DIV id=idFirstPhase>
  214. <TABLE WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>
  215. <TR>
  216. <TD HEIGHT=100% VALIGN=top>
  217. <INPUT ID=idTopic_Single TYPE=radio NAME=radTOPIC ACCESSKEY=t TABINDEX=1 DISABLED>
  218. <LABEL ID=lblTopic_Single FOR=idTopic_Single class="sys-font-body">Print only the selected <U>t</U>opic</LABEL><BR>
  219. <INPUT ID=idTopic_Sibling TYPE=radio NAME=radTOPIC ACCESSKEY=s TABINDEX=2 DISABLED>
  220. <LABEL ID=lblTopic_Sibling FOR=idTopic_Sibling class="sys-font-body">Print the selected topic and its <U>s</U>ub-topics</LABEL><BR>
  221. <INPUT ID=idTopic_Recurse TYPE=radio NAME=radTOPIC ACCESSKEY=a TABINDEX=3 DISABLED>
  222. <LABEL ID=lblTopic_Recurse FOR=idTopic_Recurse class="sys-font-body">Print <U>a</U>ll topics in '<SPAN id=idCategory></SPAN>'</LABEL><BR><BR>
  223. </TD>
  224. </TR>
  225. <TR>
  226. <TD id=noloc1 ALIGN=right>
  227. <BUTTON ID=btnPrint class="sys-font-body" TABINDEX=4 TYPE=submit ONCLICK="fnPrint()">Print...</BUTTON>
  228. <SPAN id=noloc2 style='width: 10px'><DIV id=noloc3>&nbsp;</DIV></SPAN>
  229. <BUTTON ID=btnCancel class="sys-font-body" TABINDEX=5 TYPE=reset ONCLICK="global_Cancel()">Cancel</BUTTON>
  230. </TD>
  231. </TR>
  232. </TABLE>
  233. </DIV>
  234. <DIV id=idSecondPhase class="sys-font-body" style="display:none">
  235. <TABLE WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>
  236. <TR>
  237. <TD id=noloc4 HEIGHT=100% VALIGN=middle ALIGN=center class="sys-font-body">
  238. Processing print commands...<P>
  239. <OBJECT ID=idSlider CLASSID="CLSID:FC7D9E09-3F9E-11d3-93C0-00C04F72DAF7" WIDTH=100% HEIGHT=20px>
  240. </OBJECT>
  241. </TD>
  242. </TR>
  243. <TR>
  244. <TD id=noloc5 ALIGN=center>
  245. <BUTTON ID=btnCancel2 class="sys-font-body" TABINDEX=5 TYPE=reset ONCLICK="global_Cancel()">Cancel</BUTTON>
  246. </TD>
  247. </TR>
  248. </TABLE>
  249. </DIV>
  250. <DIV id=idThirdPhase class="sys-font-body" style="display:none">
  251. <TABLE WIDTH=100% HEIGHT=100% CELLSPACING=0 CELLPADDING=0 BORDER=0>
  252. <TR>
  253. <TD id=noloc6 HEIGHT=100% VALIGN=middle ALIGN=center class="sys-font-body">
  254. All the topics have been printed
  255. </TD>
  256. </TR>
  257. <TR>
  258. <TD id=noloc7 ALIGN=center>
  259. <BUTTON ID=btnCancel3 class="sys-font-body" TABINDEX=5 TYPE=reset ONCLICK="global_Cancel()">Close</BUTTON>
  260. </TD>
  261. </TR>
  262. </TABLE>
  263. </DIV>
  264. </BODY>
  265. </HTML>