Source code of Windows XP (NT5)
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.

183 lines
6.4 KiB

  1. <!--
  2. * This file was automatically generated by Microsoft Internet Explorer 4.0
  3. * using the file %TEMPLATEDIR%\nethood.htt.
  4. -->
  5. <html>
  6. <link rel=stylesheet href="%TEMPLATEDIR%\webview.css" title="Windows">
  7. <head>
  8. <script language="JavaScript">
  9. var L_Intro_Text = "This folder contains network connections " +
  10. "on this computer.<br><br>To activate a " +
  11. "connection, double-click it.<br><br>To access " +
  12. "networking components and other properties " +
  13. "of a connection, right-click it and click " +
  14. "Properties.<br><br>"
  15. var L_Multiple_Text = " items selected.";
  16. var L_Wizard_Friendly_Text = "Make New Connection";
  17. var L_Wizard_Help_Text = "Choose this icon to create a connection to another computer or network.";
  18. var L_Type_Suffix_Text = " Connection";
  19. var L_Network_Ident_Text = "Network Identification";
  20. var L_NetId_Cmd_Text = "NetworkIdent";
  21. function FixSize() {
  22. // this function handles fixed panel sizing and collapsing when the window resizes
  23. var threshold = 400;
  24. var miniHeight = 32;
  25. var ch = document.body.clientHeight;
  26. var cw = document.body.clientWidth;
  27. if (cw < threshold) {
  28. document.all.Panel.style.visibility = "hidden";
  29. document.all.MiniBanner.style.visibility = "visible";
  30. document.all.FileList.style.top = miniHeight;
  31. document.all.FileList.style.pixelLeft = 0;
  32. } else {
  33. document.all.MiniBanner.style.visibility = "hidden";
  34. document.all.Panel.style.visibility = "visible";
  35. document.all.FileList.style.top = 0;
  36. document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  37. }
  38. document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  39. document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  40. }
  41. function Network_Identification() {
  42. FileList.SelectedItems().Item(0).InvokeVerb(L_NetId_Cmd_Text);
  43. FileList.Folder.InvokeVerb(L_NetId_Cmd_Text);
  44. }
  45. function Init() {
  46. // call our FixSize() function whenever the window gets resized
  47. window.onresize = FixSize;
  48. FixSize();
  49. Info.innerHTML = L_Intro_Text;
  50. }
  51. </script>
  52. <script language="JavaScript" for="FileList" event="SelectionChanged">
  53. // this script updates the left info panel when you select icons
  54. var fldr = FileList.Folder;
  55. var items;
  56. var name;
  57. var data;
  58. var title;
  59. var text;
  60. var type;
  61. var status;
  62. var device_name;
  63. var owner;
  64. var i;
  65. data = FileList.SelectedItems().Count;
  66. if (data == 0) {
  67. // nothing selected?
  68. Info.innerHTML = L_Intro_Text;
  69. return;
  70. }
  71. else if (data > 1) {
  72. // more than one item selected?
  73. text = data + L_Multiple_Text + "<br>";
  74. if (data <= 16)
  75. for (i = 0; i < data; i++)
  76. text += "<br>" + FileList.SelectedItems().Item(i).Name;
  77. Info.innerHTML = text;
  78. return;
  79. }
  80. items = FileList.SelectedItems().Item(0);
  81. // Get the name. If it's the wizard, then use a friendly (proper)
  82. // version of the name + the help text. If not, then just use the
  83. // name itself + the other details fields.
  84. //
  85. name = fldr.GetDetailsOf(items, 0);
  86. if (name == L_Wizard_Friendly_Text)
  87. {
  88. text = "<b>" + L_Wizard_Friendly_Text + "</b>";
  89. text += "<br><br>" + L_Wizard_Help_Text;
  90. }
  91. else
  92. {
  93. text = "<b>" + name + "</b>";
  94. // get device type
  95. type = fldr.GetDetailsOf(items, 1);
  96. if (type)
  97. text += "<br>" + type + L_Type_Suffix_Text + "<br>";
  98. // get connection status
  99. title = fldr.GetDetailsOf(null, 2);
  100. status = fldr.GetDetailsOf(items, 2);
  101. if (title && status)
  102. text += "<br>" + title + ": " + status;
  103. // get device name
  104. title = fldr.GetDetailsOf(null, 3);
  105. device_name = fldr.GetDetailsOf(items, 3);
  106. if (title && device_name)
  107. text += "<br>" + title + ": " + device_name;
  108. // get owner
  109. title = fldr.GetDetailsOf(null, 4);
  110. owner = fldr.GetDetailsOf(items, 4);
  111. if (title && owner)
  112. text += "<br>" + title + ": " + owner;
  113. }
  114. // add the network ID link
  115. text += "<br><br><b>";
  116. text += L_Network_Ident_Text.link("JavaScript:onClick=Network_Identification()");
  117. text += "</b>";
  118. // replace Info with the new text
  119. Info.innerHTML = text;
  120. </script>
  121. </head>
  122. <body scroll=no onload="Init()">
  123. <!-- start mini banner -->
  124. <div ID="MiniBanner" style="visibility: hidden; position: absolute; width: 100%; height: 32px; background: window">
  125. <!-- using a table with nowrap to prevent word wrapping -->
  126. <table><tr><td nowrap>
  127. <p class=Title style="margin-top: 0">
  128. <!--webbot bot="HTMLMarkup" startspan alt="&lt;B&gt;&lt;I&gt;Web View Folder Title&lt;/I&gt;&lt;/B&gt;&nbsp;" -->
  129. %THISDIRNAME%
  130. <!--webbot bot="HTMLMarkup" endspan -->
  131. </td></tr></table>
  132. </div>
  133. <!-- end mini banner -->
  134. <!-- start left info panel -->
  135. <div id=Panel style="background: white URL(file://%TEMPLATEDIR%\wvleft.bmp) no-repeat">
  136. <p>
  137. <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  138. <param name="scale" value=100>
  139. </object>
  140. <p class=Title>
  141. <!--webbot bot="HTMLMarkup" startspan alt="&lt;B&gt;&lt;I&gt;Web View Folder Title&lt;/I&gt;&lt;/B&gt;&nbsp;" -->
  142. %THISDIRNAME%
  143. <!--webbot bot="HTMLMarkup" endspan -->
  144. <p class=LogoLine>
  145. <img src="%TEMPLATEDIR%\wvline.gif" width=100% height=1px>
  146. <p>
  147. <!-- the initial prompt in this span gets replaced by script -->
  148. <span id=Info>
  149. </span>
  150. </div>
  151. <!-- end left info panel -->
  152. <!-- this is the standard file list control -->
  153. <!-- webbot bot="HTMLMarkup" startspan -->
  154. <object id=FileList border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  155. </object>
  156. <!-- webbot bot="HTMLMarkup" endspan -->
  157. </body>
  158. </html>