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.

161 lines
6.5 KiB

  1. <script language="jscript">
  2. var oDoc = external.Document;
  3. var oSnapins = oDoc.Snapins;
  4. var oScopeNamespace = oDoc.ScopeNamespace;
  5. var oView = oDoc.Views.Item(1);
  6. var oConsoleRoot = oScopeNamespace.GetRoot();
  7. var L_NotInConsole_ErrorMessage = "This snap-in is designed for the Server Management console and might not function properly in�another console. To open Server Management, click Start,�point to�Administrative Tools, and then click Server�Management.";
  8. var L_UserNode_Text = "Users";
  9. var L_PrinterNode_Text = "Printers";
  10. var L_ShareNode_Text = "Shares (Local)";
  11. var L_BackupNode_Text = "Backup";
  12. function managerSnapin(nodeName)
  13. {
  14. var oFirstNode = oScopeNamespace.GetChild(oConsoleRoot);
  15. // Looking for the Home Page Snap-in
  16. while( oFirstNode != null )
  17. {
  18. // Is this the Home-page snapin?
  19. if( oFirstNode.Nodetype == "{316A1EEA-C249-44E0-958B-00D2AB989D2F}" )
  20. {
  21. var oSecondNode;
  22. try
  23. {
  24. oScopeNamespace.expand(oFirstNode);
  25. oSecondNode = oScopeNamespace.GetChild(oFirstNode);
  26. }
  27. catch(e)
  28. {
  29. break;
  30. }
  31. while( oSecondNode != null )
  32. {
  33. if( oSecondNode.Name == nodeName )
  34. {
  35. oView.ActiveScopeNode = oSecondNode;
  36. return;
  37. }
  38. try
  39. {
  40. oSecondNode = oScopeNamespace.GetNext(oSecondNode);
  41. }
  42. catch (e)
  43. {
  44. break;
  45. }
  46. }
  47. }
  48. try
  49. {
  50. oFirstNode = oScopeNamespace.GetNext(oFirstNode);
  51. }
  52. catch (e)
  53. {
  54. break;
  55. }
  56. }
  57. alert(L_NotInConsole_ErrorMessage);
  58. }
  59. </script>
  60. <html>
  61. <head>
  62. <title>Microsoft Servers - Server Management - Microsoft Servers</title>
  63. <body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" text="#000000" bgcolor="#FFFFFF" link="#0066CC" vlink="#666666">
  64. <a name="TOP"></a>
  65. <basefont id="BASEFONT_FONT" face="Arial,Helvetica,Sans Serif" size="3">
  66. <!-- end StandardHead.inc -->
  67. <!-- begin Masthead -->
  68. <!-- Start: ToolBar V2.0-->
  69. <script language="JavaScript" src="/library/toolbar/toolbar.js" type="text/javascript"></script>
  70. <script language="JavaScript" src="/library/toolbar/en-us/global.js" type="text/javascript"></script>
  71. <!-- Start: ToolBar For old browsers-->
  72. <span id="TBDownLevelDiv">
  73. <table width="100%" cellpadding="0" cellspacing="0" border="0" >
  74. <tr>
  75. <td align="left" border="1" background="images/bg.gif">
  76. <img src="images/nt_brand.gif"></td>
  77. </tr>
  78. </table>
  79. </span>
  80. <!-- End: ToolBar For old browsers-->
  81. <script language="JavaScript" type="text/javascript">
  82. <!--// Hide from old browsers
  83. var ToolBar_Supported = ToolBar_Supported;
  84. if( ToolBar_Supported != null && ToolBar_Supported == true )
  85. {
  86. TBDownLevelDiv.style.display ='none';
  87. drawToolbar();
  88. var fBrowserOK = true;
  89. }
  90. //-->
  91. </script>
  92. <!-- End: ToolBar V2.0-->
  93. <!-- end MastHead -->
  94. <!-- begin Body Table -->
  95. <style type="text/css">
  96. <!--
  97. .HIGHTABLE {BORDER:1px SOLID;}
  98. .RELTABLE {BORDER:1px SOLID;}
  99. -->
  100. </style>
  101. <p>&nbsp;</p>
  102. <div align="left">
  103. <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="78%" id="AutoNumber1" align="left">
  104. <tr>
  105. <!-- Users Task -->
  106. <td width="13%" valign="top">
  107. <blockquote>
  108. <a href="javascript:managerSnapin(L_UserNode_Text)"><img border="0" src="images/cysuser.gif"></a>
  109. </blockquote></td>
  110. <td width="30%" valign="top" id="user_task">
  111. <font size="2"><b><a href="javascript:managerSnapin(L_UserNode_Text)">Users</a></b></font>
  112. <br>
  113. <font size="1">Add and manage user accounts.</font></td>
  114. <!-- Printers Task -->
  115. <td width="13%" valign="top">
  116. <blockquote>
  117. <a href="javascript:managerSnapin(L_PrinterNode_Text)"><img border="0" src="images/cysprint.gif"></a>
  118. </blockquote></td>
  119. <td width="30%" valign="top" id="Printers_task">
  120. <font size="2"><b><a href="javascript:managerSnapin(L_PrinterNode_Text)">Printers</a></b></font>
  121. <br>
  122. <font size="1">Add and manage printers.</font></td>
  123. <tr>
  124. <!-- Folders Task -->
  125. <td width="23%" valign="top">
  126. <blockquote>
  127. <a href="javascript:managerSnapin(L_ShareNode_Text)"><img border="0" src="images/folder.gif"></a>
  128. </blockquote></td>
  129. <td width="30%" valign="top" id="Folders_task">
  130. <font size="2"><b><a href="javascript:managerSnapin(L_ShareNode_Text)">Shared Folders</a></b></font>
  131. <br>
  132. <font size="1">Add and manage shared folders.</font></td>
  133. <!-- Backup Task -->
  134. <td width="23%" valign="top">
  135. <blockquote>
  136. <a href="javascript:managerSnapin(L_BackupNode_Text)"><img border="0" src="images/backup.gif"></a>
  137. </blockquote></td>
  138. <td width="30%" valign="top" id="Backup_task">
  139. <font size="2"><b><a href="javascript:managerSnapin(L_BackupNode_Text)">Backup</a></b></font><br>
  140. <font size="1">Backup and restore critical files of your system.</font></td>
  141. </tr>
  142. </table>
  143. </div>
  144. </body>
  145. </html>