home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 May / Chip_1999-05_cd.bin / zkuste / MSIE5 / IE_EXTRA.CAB / msieftp.dll / HTML / FTP.HTT next >
Text File  |  1999-02-24  |  11KB  |  265 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: -4px; margin-right: 0; padding: 3px; background: infobackground; 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.  
  67.         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.";
  68.         var L_ToolTipEmailAddress_Text = "This is the e-mail address that will be provided to the server to identify you when you login anonymously.";
  69.         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.";
  70.         var L_ToolTipUserName_Text = "Enter a different username and click 'Login' to login as another user.";
  71.         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.";
  72.  
  73.         // Do not localize
  74.         var g_strUserName;
  75.         var g_strPassword;
  76.         var g_strEmailAddress;
  77.         var g_strAnonymous = "Anonymous";       // Do not localize
  78.  
  79.         function FixSize()
  80.         {
  81.             // this function handles fixed panel sizing and collapsing when the window resizes
  82.             var hideTop    = 200;
  83.             var hideLeft    = 400;
  84.             var miniHeight    = 32;
  85.             var ch  = document.body.clientHeight;
  86.             var cw  = document.body.clientWidth;
  87.  
  88.             if (hideTop > ch)
  89.             {
  90.                 document.all.Banner.style.visibility = "hidden";
  91.                 document.all.MiniBanner.style.visibility = "visible";
  92.                 document.all.FileList.style.top = miniHeight;
  93.                 document.all.Panel.style.top = miniHeight;
  94.             }
  95.             else
  96.             {
  97.                 document.all.Banner.style.visibility = "visible";
  98.                 document.all.MiniBanner.style.visibility = "hidden";
  99.                 document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  100.                 document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  101.                 document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";  
  102.             }
  103.  
  104.             if (hideLeft > cw)
  105.             {
  106.                 document.all.Panel.style.visibility = "hidden";
  107.                 document.all.FileList.style.pixelLeft = 0;
  108.                 document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  109.             }
  110.             else
  111.             {
  112.                 document.all.Panel.style.visibility = "visible";
  113.                 document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  114.             }
  115.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  116.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  117.             document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  118.         }
  119.  
  120.         function Init()
  121.         {
  122.             var strMOTD;
  123.  
  124.             // call our FixSize() function whenever the window gets resized
  125.             window.onresize = FixSize;
  126.             FixSize();
  127.             Info.innerHTML = L_Intro_Text;
  128.  
  129.             InitLoginInfo();
  130.  
  131.             // set focus on the icons, if everything is fine with the FileList control
  132.             if (document.all.FileList.style.pixelWidth > 0
  133.                     && document.all.FileList.style.pixelHeight > 0)
  134.             {
  135.                 hack = window.setTimeout("FileList.focus()", 0);
  136.                 hack = null;
  137.             }
  138.         }
  139.  
  140.         function DisplayOptions()
  141.         {
  142.             // TODO: Check the cookie to see if the user wants to see the options
  143.             //     be default. We also need to save the cookie on unload.
  144.             return 0;
  145.         }
  146.  
  147.         function OnMOTDDialog()
  148.         {
  149.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  150.         }
  151.  
  152.         function InitLoginInfo()
  153.         {
  154.             if (ID_FTPWebView)
  155.             {
  156.                 var L_None_Text = "None";
  157.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  158. //strMOTD = "This is a test of the emergency broadcasting system.";
  159.                    ID_MOTD.innerText = strMOTD;
  160.                 ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  161.  
  162.                 document.all.ID_Server.innerText = ID_FTPWebView.Server;
  163.                 g_strUserName = ID_FTPWebView.UserName;
  164.  
  165.                 if (1 == ID_FTPWebView.CurrentLoginAnonymous)
  166.                     document.all.ID_StaticUserName.innerText = g_strAnonymous;
  167.                 else
  168.                     document.all.ID_StaticUserName.innerText = g_strUserName;
  169.             }
  170.         }
  171.     </SCRIPT>
  172.  
  173.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  174.         // this script updates the left info panel when you select icons
  175.         var item    = FileList.FocusedItem;
  176.         var folder    = FileList.Folder;
  177.         var data;
  178.     var text;
  179.         var i;
  180.  
  181.         data = FileList.SelectedItems().Count;
  182.         if (data == 0)
  183.         {
  184.             // nothing selected?
  185.             Info.innerHTML = L_Intro_Text;
  186.             return;
  187.         }
  188.         else if (data > 1)
  189.         {
  190.             // more than one item selected?
  191.             text = data + L_Multiple_Text + "<br>";
  192.             if (data <= 16)
  193.                     for (i = 0; i < data; i++)
  194.                         text += "<br>" + FileList.SelectedItems().Item(i).Name;
  195.             Info.innerHTML = text + "<br><br>";
  196.             return;
  197.         }
  198.  
  199.         Info.innerHTML = "<b>" + item.Name + "</b><br><br>";
  200.     </SCRIPT>
  201.     </HEAD>
  202.  
  203.     <BODY scroll=no style="background: URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat" onload="Init()">
  204.  
  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.  
  221.         <!-- start mini banner -->
  222.         <DIV id="MiniBanner" style="visibility: hidden">
  223.             <!-- using a table with nowrap to prevent word wrapping -->
  224.             <table><tr><td nowrap>
  225.             <p class=Title style="margin-left: 16px; margin-top: 4px">
  226.             %THISDIRNAME%
  227.             </td></tr></table>
  228.         </DIV>
  229.         <!-- end mini banner -->
  230.  
  231.         <!-- start left info panel -->
  232.         <DIV style="padding-left: 20px;" id="Panel">
  233.             <P class=SiteInfo id=lochack>
  234.             Server: <SPAN ID="ID_Server"> </SPAN><BR>
  235.             <LABEL FOR=ID_StaticUserName id=lockhack2> User Name: <SPAN ID="ID_StaticUserName"> </SPAN> </LABEL>
  236.             <BR>
  237.             <BR>
  238.  
  239.             <!-- No Login DIV By Design -->
  240.             <BR>
  241.  
  242.             <DIV ID="ID_MOTD" CLASS=Message>
  243.             <!-- the message of the day will be inserted here by the script. -->
  244.             </DIV>
  245.             </P>
  246.             <BR>
  247.             Use 'Copy To Folder' on the File menu to download files and folders to your computer.  <A HREF="javascript:ID_FTPWebView.InvokeHelp()"> Click here</A> for other useful hints.<BR>
  248.             <BR>
  249.  
  250.             <SPAN id="Info">
  251.             </SPAN>
  252.         </DIV>
  253.         <!-- end left info panel -->
  254.  
  255.         <!-- this is the standard file list control -->
  256.         <OBJECT id="FileList" border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  257.         </OBJECT>
  258.  
  259.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  260.         </OBJECT>
  261.  
  262.     </BODY>
  263. </HTML>
  264.  
  265.