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