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.

299 lines
11 KiB

  1. <!--
  2. * Copyright 1999 Microsoft Corporation. All rights reserved.
  3. * This file was automatically generated by Microsoft Internet Explorer
  4. * using the file %TEMPLATEDIR%\ftp.htt
  5. -->
  6. <HTML>
  7. <STYLE>
  8. body {font: 8pt/10pt verdana; margin: 0}
  9. #Banner {position: absolute; width: 100%; height: 88px}
  10. #MiniBanner {position: absolute; width: 100%; height: 32px; background: window}
  11. #Icon {position: absolute; left: 11px; top: 12px; width: 64px; height: 64px}
  12. #FileList {position: absolute; left: 30%; top: 88px; width: 1px; height: 1px}
  13. #Media {margin-left: 20px; margin-top: 10px}
  14. #Panel {position: absolute; top: 88px; width: 30%; overflow: auto}
  15. #PieChart {width: 100px; height: 50px; margin-top: 10px}
  16. #Thumbnail {width: 160px; height: 160px; margin-top: 0px}
  17. #Status {margin-left: 20px}
  18. p {margin-right: 8px}
  19. p.Title {font: 16pt/16pt verdana; font-weight: bold; color: #0099FF}
  20. p.Warning {font-weight: bold; color: red}
  21. p.Links {margin-top: 4px}
  22. p.SiteInfo {margin-top: 4px}
  23. a:link {color: #FF6633}
  24. a:visited {color: #0099FF}
  25. a:active {color: black}
  26. input {font: 8pt/10pt verdana}
  27. button {font: 8pt/10pt verdana}
  28. .Message {margin-right: 0; padding: 3px; background: infobackground; color: infotext; border: 1px solid lightgrey}
  29. .accesskey {}
  30. </STYLE>
  31. <HEAD>
  32. <!-- allow references to any resources you might add to the folder -->
  33. <BASE href="%THISDIRPATH%\">
  34. <SCRIPT LANGUAGE="vbscript">
  35. Const g_nCR = 13
  36. Const g_nLF = 10
  37. Function TranslateCRs(strIn)
  38. Dim strOut
  39. strOut = ""
  40. While 0 < Len(strIn)
  41. if Asc(strIn) = g_nCR then
  42. strIn = strIn & " "
  43. strIn = Right(strIn, Len(strIn) - 1)
  44. else
  45. strOut = strOut & Chr(Asc(strIn))
  46. end if
  47. strIn = Right(strIn, Len(strIn) - 1)
  48. Wend
  49. TranslateCRs = strOut
  50. end Function
  51. </SCRIPT>
  52. <SCRIPT LANGUAGE="JavaScript">
  53. // To localize
  54. var L_Intro_Text = "";
  55. var L_Multiple_Text = " objects selected.";
  56. var L_AnonymousUserName_Text = "Anonymous";
  57. var L_MOTDDialogTitle_Text = "The server has provided the following message about using the server:\n\n";
  58. var L_ServerLabel_Text = "Server: ";
  59. var L_UserNameLabel_Text = "User Name: ";
  60. var L_TooltipLoginButton_Text = "This button will display the Login dialog to allow you to login under a different username. This is most often needed when the server won't give you access under the current user.";
  61. var L_ToolTipEmailAddress_Text = "This is the e-mail address that will be provided to the server to identify you when you login anonymously.";
  62. var L_TooltipPassword_Text = "This password and the user name above will be used to attempt to relog you into the server when you click on the 'Login' button.";
  63. var L_ToolTipUserName_Text = "Enter a different username and click 'Login' to login as another user.";
  64. var L_TooltipAnonCheckBox_Text = "Turning this on and clicking the 'Login' button will log you into the server anonymously, which the server may or may not allow. The e-mail address you provide below will be given to the server.";
  65. // Do not localize
  66. var g_strUserName;
  67. var g_strPassword;
  68. var g_strEmailAddress;
  69. var g_strAnonymous = "Anonymous"; // Do not localize
  70. function FixSize()
  71. {
  72. // this function handles fixed panel sizing and collapsing when the window resizes
  73. var hideTop = 200;
  74. var hideLeft = 400;
  75. var miniHeight = 32;
  76. var ch = document.body.clientHeight;
  77. var cw = document.body.clientWidth;
  78. if (hideTop > ch)
  79. {
  80. document.all.Banner.style.visibility = "hidden";
  81. document.all.MiniBanner.style.visibility = "visible";
  82. document.all.FileList.style.top = miniHeight;
  83. document.all.Panel.style.top = miniHeight;
  84. }
  85. else
  86. {
  87. document.all.Banner.style.visibility = "visible";
  88. document.all.MiniBanner.style.visibility = "hidden";
  89. document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  90. document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  91. document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";
  92. }
  93. if (hideLeft > cw)
  94. {
  95. document.all.Panel.style.visibility = "hidden";
  96. document.all.FileList.style.pixelLeft = 0;
  97. document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  98. }
  99. else
  100. {
  101. document.all.Panel.style.visibility = "visible";
  102. document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  103. }
  104. document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  105. document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  106. document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  107. }
  108. function Init()
  109. {
  110. var strMOTD;
  111. // call our FixSize() function whenever the window gets resized
  112. window.onresize = FixSize;
  113. FixSize();
  114. Info.innerHTML = L_Intro_Text;
  115. InitLoginInfo();
  116. }
  117. function DisplayOptions()
  118. {
  119. return 0;
  120. }
  121. function OnMOTDDialog()
  122. {
  123. alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  124. }
  125. function InitLoginInfo()
  126. {
  127. if (ID_FTPWebView)
  128. {
  129. var L_None_Text = "None";
  130. strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  131. ID_MOTD.innerText = strMOTD;
  132. ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  133. document.all.ID_Server.innerText = (L_ServerLabel_Text + ID_FTPWebView.Server);
  134. g_strUserName = ID_FTPWebView.UserName;
  135. if (1 == ID_FTPWebView.CurrentLoginAnonymous)
  136. document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strAnonymous);
  137. else
  138. document.all.ID_StaticUserName.innerText = (L_UserNameLabel_Text + g_strUserName);
  139. }
  140. }
  141. function OnWebviewLinkEnter( aLink )
  142. {
  143. if( aLink.title )
  144. {
  145. window.status = aLink.title;
  146. }
  147. else
  148. {
  149. window.status = "";
  150. }
  151. return true;
  152. }
  153. function OnWebviewLinkExit()
  154. {
  155. window.status = "";
  156. return false;
  157. }
  158. </SCRIPT>
  159. <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  160. // this script updates the left info panel when you select icons
  161. var folder = FileList.Folder;
  162. var data;
  163. var text;
  164. var i;
  165. data = FileList.SelectedItems().Count;
  166. if (data == 0)
  167. {
  168. // nothing selected?
  169. Info.innerHTML = L_Intro_Text;
  170. return;
  171. }
  172. else if (data > 1)
  173. {
  174. // more than one item selected?
  175. text = data + L_Multiple_Text + "<br>";
  176. if (data <= 16)
  177. {
  178. for (i = 0; i < data; i++)
  179. {
  180. text += "<br>" + FileList.SelectedItems().Item(i).Name;
  181. }
  182. }
  183. Info.innerHTML = text + "<br><br>";
  184. return;
  185. }
  186. else if (data == 1)
  187. {
  188. Info.innerHTML = "<b>" + FileList.SelectedItems().Item(0).Name + "</b><br><br>";
  189. }
  190. </SCRIPT>
  191. <script language="JavaScript" for="WVLink" event="onmouseover">
  192. return OnWebviewLinkEnter( this );
  193. </script>
  194. <script language="JavaScript" for="WVLink" event="onfocus">
  195. return OnWebviewLinkEnter( this );
  196. </script>
  197. <script language="JavaScript" for="WVLink" event="onmouseout">
  198. return OnWebviewLinkExit();
  199. </script>
  200. <script language="JavaScript" for="WVLink" event="onblur">
  201. return OnWebviewLinkExit();
  202. </script>
  203. </HEAD>
  204. <BODY scroll=no style="background: URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat" onload="Init()">
  205. <!-- start normal banner -->
  206. <DIV id="Banner" style="visibility: hidden">
  207. <!-- using a table with nowrap to prevent word wrapping -->
  208. <table><tr><td nowrap>
  209. <p class=Title style="margin-left: 104px; margin-top: 16px">
  210. %THISDIRNAME%
  211. </td></tr></table>
  212. <!-- this is more efficient than a long graphic, but we have to adjust it in FixSize() -->
  213. <hr id="Rule" size=1px color=black style="position: absolute; top: 44px; left: 84px">
  214. <!-- this is our awesome icon extractor -->
  215. <object id=Icon classid="clsid:e5df9d10-3b52-11d1-83e8-00a0c90dc849">
  216. <param name="scale" value=100>
  217. </object>
  218. </DIV>
  219. <!-- end normal banner -->
  220. <!-- start mini banner -->
  221. <DIV id="MiniBanner" style="visibility: hidden">
  222. <!-- using a table with nowrap to prevent word wrapping -->
  223. <table><tr><td nowrap>
  224. <p class=Title style="margin-left: 16px; margin-top: 4px">
  225. %THISDIRNAME%
  226. </td></tr></table>
  227. </DIV>
  228. <!-- end mini banner -->
  229. <!-- start left info panel -->
  230. <DIV style="padding-left: 20px;" id="Panel">
  231. <P class=SiteInfo id=lochack>
  232. <SPAN ID="ID_Server"> </SPAN><BR>
  233. <SPAN ID="ID_StaticUserName"> </SPAN>
  234. <BR>
  235. <BR>
  236. <!-- No Login DIV By Design -->
  237. <BR>
  238. <DIV ID="ID_MOTD" CLASS=Message>
  239. <!-- the message of the day will be inserted here by the script. -->
  240. </DIV>
  241. </P>
  242. <BR>
  243. <ID id=LocalizeMe> Use 'Copy To Folder' on the File menu to download files and folders to your computer.</ID>
  244. <ID id=parseSlowly>
  245. <A HREF="javascript:ID_FTPWebView.InvokeHelp()" name="WVLink"> Click here</A> to learn about browsing FTP sites.<BR>
  246. </ID>
  247. <BR>
  248. <SPAN id="Info">
  249. </SPAN>
  250. </DIV>
  251. <!-- end left info panel -->
  252. <!-- this is the standard file list control -->
  253. <OBJECT id="FileList" border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  254. </OBJECT>
  255. <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  256. </OBJECT>
  257. </BODY>
  258. </HTML>