home *** CD-ROM | disk | FTP | other *** search
/ Excalibur 71 / Excalibur_71_cd2.bin / Microsoft_Internet_50 / IE_EXTRA.CAB / msieftp.dll / HTML / FTPNT5.HTT < prev   
Text File  |  1999-02-24  |  10KB  |  273 lines

  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.  
  7. <HTML>
  8.     <style>
  9.         body        {margin: 0; font: menu; color: black}
  10.         #Panel      {position: absolute; width: 200px; height: 100%; visibility: hidden; overflow: auto}
  11.         #Corner     {padding-left: 12px; padding-top: 11px}
  12.         #FolderIcon {width: 32px; height: 32px}
  13.         #FolderName {margin-top: 8px; font: 13pt/13pt; font-weight: bold}
  14.         #LogoLine   {width: 100%; margin-top: 4px; vertical-align: top}
  15.         #Details    {padding-left: 12px; margin-top: 8px}
  16.         #Locked     {vertical-align: baseline}
  17.         #Preview    {}
  18.         .Movie      {width: 120px; height: 136px}
  19.         .Sound      {width: 120px; height: 46px}
  20.         #Thumbnail  {width: 120px; height: 120px}
  21.         .Legend     {margin-left: 12px; margin-right: -12px}
  22.         #PieChart   {width: 120px; height: 60px; margin-top: 10px}
  23.         #FileList   {position: absolute; left: 200px; width: 100%; height: 100%; tabIndex: 1}
  24.         p           {margin-top: 12px}
  25.         p.Half      {margin-top: 6px}
  26.         button      {font: 8pt Tahoma; margin-left: 12px; background: white; color: black}
  27.         input       {font: 8pt Tahoma}
  28.     .Message        {margin: -4px; margin-right: 0; padding: 3px; background: infobackground; border: 1px solid lightgrey}
  29.         .accesskey  {}
  30.     </STYLE>
  31.  
  32.     <HEAD>
  33.     <!-- allow references to any resources you might add to the folder -->
  34.     <BASE href="%THISDIRPATH%\">
  35.  
  36.     <SCRIPT LANGUAGE="vbscript">
  37.         Const g_nCR = 13
  38.         Const g_nLF = 10
  39.  
  40.         Function TranslateCRs(strIn)
  41.         Dim strOut
  42.         strOut = ""
  43.  
  44.         While 0 < Len(strIn)
  45.             if Asc(strIn) = g_nCR then
  46.                 strIn = strIn & " "
  47.                 strIn = Right(strIn, Len(strIn) - 1)
  48.             else
  49.                 strOut = strOut & Chr(Asc(strIn))
  50.             end if
  51.  
  52.             strIn = Right(strIn, Len(strIn) - 1)
  53.         Wend
  54.  
  55.         TranslateCRs = strOut
  56.         end Function
  57.     </SCRIPT>
  58.  
  59.     <SCRIPT LANGUAGE="JavaScript">
  60.         // To localize
  61.         var L_Intro_Text    = "";
  62.         var L_Multiple_Text    = " objects selected.";
  63.         var L_AnonymousUserName_Text = "Anonymous";
  64.         var L_MOTDDialogTitle_Text = "The server has provided the following message about using the server:\n\n";
  65.  
  66.         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.";
  67.         var L_ToolTipEmailAddress_Text = "This is the e-mail address that will be provided to the server to identify you when you login anonymously.";
  68.         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.";
  69.         var L_ToolTipUserName_Text = "Enter a different username and click 'Login' to login as another user.";
  70.         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.";
  71.  
  72.         // Do not localize
  73.         var g_strUserName;
  74.         var g_strPassword;
  75.         var g_strEmailAddress;
  76.         var g_fAnonymousLogin;
  77.         var g_fDelayedLoginInfoInited = 0;
  78.         var g_strAnonymous = "Anonymous";       // Do not localize
  79.  
  80.         function Resize() {
  81.             if (document.body.clientWidth < Panel.style.pixelWidth * 2) {
  82.                 Panel.style.visibility = "hidden";
  83.                 FileList.style.pixelLeft = 0;
  84.             } else {
  85.                 Panel.style.visibility = "visible";
  86.                 FileList.style.pixelLeft = Panel.style.pixelWidth;
  87.             }
  88.             FileList.style.pixelWidth = document.body.clientWidth - FileList.style.pixelLeft;
  89.         }
  90.  
  91.         function Initialize()
  92.         {
  93.             var strMOTD;
  94.  
  95.             // call our Resize() function whenever the window gets resized
  96.             window.onresize = Resize;
  97.             Resize();
  98.             Info.innerHTML = L_Intro_Text;
  99.  
  100.             InitLoginInfo();
  101.             if (1 == DisplayOptions())
  102.                 ToggleOptionsAvailablility();
  103.  
  104.             // fix styles
  105.             var L_SystemFont1_Text = "MS Sans Serif";
  106.             var L_SystemFont2_Text = "MS Shell Dlg";
  107.             var L_SystemFont_Text = "Tahoma, Verdana";
  108.             var tr = document.body.createTextRange();
  109.             if (navigator.cpuClass != "Alpha") {
  110.                 tr.collapse();
  111.                 var actualFont = tr.queryCommandValue("FontName");
  112.                 if (actualFont == L_SystemFont1_Text || actualFont == L_SystemFont2_Text)
  113.                     document.body.style.fontFamily = L_SystemFont_Text;
  114.             } else
  115.                 document.body.style.fontFamily = L_SystemFont_Text;
  116.  
  117.             // set focus on the icons
  118.             hack = window.setTimeout("FileList.focus()", 0);
  119.             hack = null;
  120.         }
  121.  
  122.         function DisplayOptions()
  123.         {
  124.             // TODO: Check the cookie to see if the user wants to see the options
  125.             //     be default. We also need to save the cookie on unload.
  126.             return 0;
  127.         }
  128.  
  129.         function OnMOTDDialog()
  130.         {
  131.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  132.         }
  133.  
  134.         function ToggleOptionsAvailablility()
  135.         {
  136.         }
  137.  
  138.         function InitLoginInfo()
  139.         {
  140.             if (ID_FTPWebView)
  141.             {
  142.         var L_None_Text = "None";
  143.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  144. //strMOTD = "This is a test of the emergency broadcasting system.";
  145.                    ID_MOTD.innerText = strMOTD;
  146.         ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  147.  
  148.                 document.all.ID_Server.innerText = ID_FTPWebView.Server;
  149.                 g_strUserName = ID_FTPWebView.UserName;
  150.                 g_fAnonymousLogin = ID_FTPWebView.CurrentLoginAnonymous;
  151.  
  152.                 if (1 == g_fAnonymousLogin)
  153.                     document.all.ID_StaticUserName.innerText = g_strAnonymous;
  154.                 else
  155.                     document.all.ID_StaticUserName.innerText = g_strUserName;
  156.             }
  157.         }
  158.  
  159.         function InitDelayedLoginInfo()
  160.         {
  161.             g_fDelayedLoginInfoInited = 1;
  162.  
  163.             if (null != ID_FTPWebView)
  164.             {
  165.                 g_strPassword = ID_FTPWebView.Password;
  166.                 g_strEmailAddress = ID_FTPWebView.EmailAddress;
  167.  
  168.                 OnAnonymouseChange();
  169.                 OnUserNameChange();
  170.             }
  171.         }
  172.  
  173.         function EnableDisableLoginButton()
  174.         {
  175.         }
  176.  
  177.         function OnAnonymouseChange()
  178.         {
  179.         }
  180.  
  181.         function OnUserNameChange()
  182.         {
  183.         }
  184.  
  185.         function OnEmailAddressChange()
  186.         {
  187.         }
  188.  
  189.         function DisplayLoginDialog()
  190.         {
  191.         }
  192.     </SCRIPT>
  193.  
  194.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  195.         // this script updates the left info panel when you select icons
  196.         var item    = FileList.FocusedItem;
  197.         var folder    = FileList.Folder;
  198.         var data;
  199.     var text;
  200.         var i;
  201.  
  202.         data = FileList.SelectedItems().Count;
  203.         if (data == 0)
  204.         {
  205.             // nothing selected?
  206.             Info.innerHTML = L_Intro_Text;
  207.             return;
  208.         }
  209.         else if (data > 1)
  210.         {
  211.             // more than one item selected?
  212.             text = data + L_Multiple_Text + "<br>";
  213.         if (data <= 16)
  214.                     for (i = 0; i < data; i++)
  215.                         text += "<br>" + FileList.SelectedItems().Item(i).Name;
  216.             Info.innerHTML = text + "<br><br>";
  217.             return;
  218.         }
  219.  
  220.         Info.innerHTML = "<b>" + item.Name + "</b><br><br>";
  221.     </SCRIPT>
  222.  
  223.     <script language="JavaScript">
  224.         function Load() {
  225.             Initialize();
  226.             Resize();
  227.         }
  228.     </script>
  229.     </HEAD>
  230.  
  231.     <body scroll=no onload=Load()>
  232.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat">
  233.             <div id=Corner>
  234.                 <object id=FolderIcon classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  235.                     <param name="scale" value=100>
  236.                 </object>
  237.                 <br>
  238.                 <div id=FolderName>
  239.                     %THISDIRNAME%
  240.                 </div>
  241.             </div>
  242.             <img id=LogoLine src="%TEMPLATEDIR%\wvline.gif">
  243.             <div id=Details>
  244.  
  245.             Server: <SPAN ID="ID_Server"> </SPAN><BR>
  246.             <LABEL FOR=ID_StaticUserName id=lochack0> User Name: <SPAN ID="ID_StaticUserName"> </SPAN> </LABEL>
  247.             <BR>
  248.             <BR>
  249.             <ID id=lochack9>
  250.  
  251.             <BR>
  252.  
  253.             <DIV ID="ID_MOTD" CLASS=Message>
  254.             <!-- the message of the day will be inserted here by the script. -->
  255.             </DIV>
  256.             <BR>
  257.             <A HREF="javascript:ID_FTPWebView.InvokeHelp()"> Click here</A> for hints on using FTP.<BR>
  258.  
  259.             </P>
  260.                 <span id=Info>
  261.                 </span>
  262.             </div>
  263.         </div>
  264.         <object id=FileList tabindex=1 border=0 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  265.         </object>
  266.  
  267.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  268.         </OBJECT>
  269.  
  270.     </BODY>
  271. </HTML>
  272.  
  273.