home *** CD-ROM | disk | FTP | other *** search
/ DOS/V Power Report 1999 July / VPR9907A.BIN / MSIE_50 / IE_EXTRA.cab / msieftp.dll / HTML / FTP.HTT next >
Text File  |  1999-04-01  |  11KB  |  266 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: 9pt/10pt MS Pゴシック; 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 MS Pゴシック; 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: 9pt/10pt MS Pゴシック}
  28.         button        {font: 9pt/10pt MS Pゴシック}
  29.     .Message        {margin: -4px; margin-right: 0; padding: 3px; background: infobackground; border: 1px solid lightgrey}
  30.         .accesskey  {}
  31.     </STYLE>
  32.  
  33.     <HEAD>
  34. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=shift_jis">
  35.     <!-- allow references to any resources you might add to the folder -->
  36.     <BASE href="%THISDIRPATH%\">
  37.  
  38.     <SCRIPT LANGUAGE="vbscript">
  39.         Const g_nCR = 13
  40.         Const g_nLF = 10
  41.  
  42.         Function TranslateCRs(strIn)
  43.         Dim strOut
  44.         strOut = ""
  45.  
  46.         While 0 < Len(strIn)
  47.             if Asc(strIn) = g_nCR then
  48.                 strIn = strIn & " "
  49.                 strIn = Right(strIn, Len(strIn) - 1)
  50.             else
  51.                 strOut = strOut & Chr(Asc(strIn))
  52.             end if
  53.  
  54.             strIn = Right(strIn, Len(strIn) - 1)
  55.         Wend
  56.  
  57.         TranslateCRs = strOut
  58.         end Function
  59.     </SCRIPT>
  60.  
  61.     <SCRIPT LANGUAGE="JavaScript">
  62.         // To localize
  63.         var L_Intro_Text    = "";
  64.         var L_Multiple_Text    = " 個のオブジェクトを選択しました。";
  65.         var L_AnonymousUserName_Text = "匿名";
  66.         var L_MOTDDialogTitle_Text = "サーバーの使用について、次のメッセージが提供されました:\n\n";
  67.  
  68.         var L_TooltipLoginButton_Text = "このボタンをクリックすると、別のユーザー名でログインするための [ログイン] ダイアログ ボックスが表示されます。これは、現在のユーザー名でサーバーにアクセスしたくないときなど、頻繁に必要となります。";
  69.         var L_ToolTipEmailAddress_Text = "これは、匿名によるログインをサーバーに認識させるために提供する電子メール アドレスです。";
  70.         var L_TooltipPassword_Text = "[ログイン] をクリックすると、このパスワードとユーザー名が、サーバーに再ログインするのに使用されます。";
  71.         var L_ToolTipUserName_Text = "異なるユーザー名を入力し、[ログイン] をクリックして、別のユーザーでログインしてください。";
  72.         var L_TooltipAnonCheckBox_Text = "ここをオンにして [ログイン] をクリックすると、サーバーの許可に関係なく、匿名でサーバーにログインできます。次に指定する電子メール アドレスがサーバーに渡されます。";
  73.  
  74.         // Do not localize
  75.         var g_strUserName;
  76.         var g_strPassword;
  77.         var g_strEmailAddress;
  78.         var g_strAnonymous = "Anonymous";       // Do not localize
  79.  
  80.         function FixSize()
  81.         {
  82.             // this function handles fixed panel sizing and collapsing when the window resizes
  83.             var hideTop    = 200;
  84.             var hideLeft    = 400;
  85.             var miniHeight    = 32;
  86.             var ch  = document.body.clientHeight;
  87.             var cw  = document.body.clientWidth;
  88.  
  89.             if (hideTop > ch)
  90.             {
  91.                 document.all.Banner.style.visibility = "hidden";
  92.                 document.all.MiniBanner.style.visibility = "visible";
  93.                 document.all.FileList.style.top = miniHeight;
  94.                 document.all.Panel.style.top = miniHeight;
  95.             }
  96.             else
  97.             {
  98.                 document.all.Banner.style.visibility = "visible";
  99.                 document.all.MiniBanner.style.visibility = "hidden";
  100.                 document.all.FileList.style.top = (document.all.Banner.offsetHeight - 32) + "px";
  101.                 document.all.Panel.style.top = (document.all.Banner.offsetHeight) + "px";
  102.                 document.all.Rule.style.width = (cw > 84 ? cw - 84 : 0) + "px";  
  103.             }
  104.  
  105.             if (hideLeft > cw)
  106.             {
  107.                 document.all.Panel.style.visibility = "hidden";
  108.                 document.all.FileList.style.pixelLeft = 0;
  109.                 document.all.FileList.style.pixelTop = document.all.Panel.style.pixelTop;
  110.             }
  111.             else
  112.             {
  113.                 document.all.Panel.style.visibility = "visible";
  114.                 document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  115.             }
  116.             document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  117.             document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  118.             document.all.Panel.style.pixelHeight = ch - document.all.Panel.style.pixelTop;
  119.         }
  120.  
  121.         function Init()
  122.         {
  123.             var strMOTD;
  124.  
  125.             // call our FixSize() function whenever the window gets resized
  126.             window.onresize = FixSize;
  127.             FixSize();
  128.             Info.innerHTML = L_Intro_Text;
  129.  
  130.             InitLoginInfo();
  131.  
  132.             // set focus on the icons, if everything is fine with the FileList control
  133.             if (document.all.FileList.style.pixelWidth > 0
  134.                     && document.all.FileList.style.pixelHeight > 0)
  135.             {
  136.                 hack = window.setTimeout("FileList.focus()", 0);
  137.                 hack = null;
  138.             }
  139.         }
  140.  
  141.         function DisplayOptions()
  142.         {
  143.             // TODO: Check the cookie to see if the user wants to see the options
  144.             //     be default. We also need to save the cookie on unload.
  145.             return 0;
  146.         }
  147.  
  148.         function OnMOTDDialog()
  149.         {
  150.             alert(L_MOTDDialogTitle_Text + document.all.ID_MOTD.innerText);
  151.         }
  152.  
  153.         function InitLoginInfo()
  154.         {
  155.             if (ID_FTPWebView)
  156.             {
  157.                 var L_None_Text = "なし";
  158.                 strMOTD = TranslateCRs(ID_FTPWebView.MessageOfTheDay);
  159. //strMOTD = "This is a test of the emergency broadcasting system.";
  160.                    ID_MOTD.innerText = strMOTD;
  161.                 ID_MOTD.style.display = ((strMOTD == "") || (strMOTD == L_None_Text)) ? "none" : "";
  162.  
  163.                 document.all.ID_Server.innerText = ID_FTPWebView.Server;
  164.                 g_strUserName = ID_FTPWebView.UserName;
  165.  
  166.                 if (1 == ID_FTPWebView.CurrentLoginAnonymous)
  167.                     document.all.ID_StaticUserName.innerText = g_strAnonymous;
  168.                 else
  169.                     document.all.ID_StaticUserName.innerText = g_strUserName;
  170.             }
  171.         }
  172.     </SCRIPT>
  173.  
  174.     <SCRIPT language="JavaScript" for="FileList" event="SelectionChanged">
  175.         // this script updates the left info panel when you select icons
  176.         var item    = FileList.FocusedItem;
  177.         var folder    = FileList.Folder;
  178.         var data;
  179.     var text;
  180.         var i;
  181.  
  182.         data = FileList.SelectedItems().Count;
  183.         if (data == 0)
  184.         {
  185.             // nothing selected?
  186.             Info.innerHTML = L_Intro_Text;
  187.             return;
  188.         }
  189.         else if (data > 1)
  190.         {
  191.             // more than one item selected?
  192.             text = data + L_Multiple_Text + "<br>";
  193.             if (data <= 16)
  194.                     for (i = 0; i < data; i++)
  195.                         text += "<br>" + FileList.SelectedItems().Item(i).Name;
  196.             Info.innerHTML = text + "<br><br>";
  197.             return;
  198.         }
  199.  
  200.         Info.innerHTML = "<b>" + item.Name + "</b><br><br>";
  201.     </SCRIPT>
  202.     </HEAD>
  203.  
  204.     <BODY scroll=no style="background: URL(file://%TEMPLATEDIR%/wvleft.bmp) no-repeat" onload="Init()">
  205.  
  206.         <!-- start normal banner -->
  207.         <DIV id="Banner" style="visibility: hidden">
  208.             <!-- using a table with nowrap to prevent word wrapping -->
  209.             <table><tr><td nowrap>
  210.             <p class=Title style="margin-left: 104px; margin-top: 16px">
  211.             %THISDIRNAME%
  212.             </td></tr></table>
  213.             <!-- this is more efficient than a long graphic, but we have to adjust it in FixSize() -->
  214.             <hr id="Rule" size=1px color=black style="position: absolute; top: 44px; left: 84px">
  215.             <!-- this is our awesome icon extractor -->
  216.             <object id=Icon classid="clsid:e5df9d10-3b52-11d1-83e8-00a0c90dc849">
  217.             <param name="scale" value=100>
  218.             </object>
  219.         </DIV>
  220.         <!-- end normal banner -->
  221.  
  222.         <!-- start mini banner -->
  223.         <DIV id="MiniBanner" style="visibility: hidden">
  224.             <!-- using a table with nowrap to prevent word wrapping -->
  225.             <table><tr><td nowrap>
  226.             <p class=Title style="margin-left: 16px; margin-top: 4px">
  227.             %THISDIRNAME%
  228.             </td></tr></table>
  229.         </DIV>
  230.         <!-- end mini banner -->
  231.  
  232.         <!-- start left info panel -->
  233.         <DIV style="padding-left: 20px;" id="Panel">
  234.             <P class=SiteInfo id=lochack>
  235.             サーバー: <SPAN ID="ID_Server"> </SPAN><BR>
  236.             <LABEL FOR=ID_StaticUserName id=lockhack2> ユーザー名: <SPAN ID="ID_StaticUserName"> </SPAN></LABEL>
  237.             <BR>
  238.             <BR>
  239.  
  240.             <!-- No Login DIV By Design -->
  241.             <BR>
  242.  
  243.             <DIV ID="ID_MOTD" CLASS=Message>
  244.             <!-- the message of the day will be inserted here by the script. -->
  245.             </DIV>
  246.             </P>
  247.             <BR>
  248.             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>
  249.             <BR>
  250.  
  251.             <SPAN id="Info">
  252.             </SPAN>
  253.         </DIV>
  254.         <!-- end left info panel -->
  255.  
  256.         <!-- this is the standard file list control -->
  257.         <OBJECT id="FileList" border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"
  258.         </OBJECT>
  259.  
  260.         <OBJECT id="ID_FTPWebView" border=0 tabindex=1 classid="clsid:210DA8A2-7445-11d1-91F7-006097DF5BD4"
  261.         </OBJECT>
  262.  
  263.     </BODY>
  264. </HTML>
  265.  
  266.