home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Change / data / Folder.tt next >
Text File  |  2003-01-18  |  12KB  |  343 lines

  1. <!-- 
  2.  * This file was automatically generated by Microsoft Internet Explorer 4.0 
  3.  * using the file %THISDIRPATH%\folder.htt (if customized) or
  4.  * %TEMPLATEDIR%\folder.htt (if not customized).
  5.  -->
  6.  
  7. <html>
  8.     <style>
  9.         body        {font: 8pt/10pt verdana; margin: 0}
  10.         #FileList    {position: absolute; left: 30%; width: 70%; height: 100%}
  11.         #Media        {margin-left: 15px}
  12.         #Panel        {position: absolute; width: 30%; height: 100%; overflow: auto}
  13.         #PieChart    {width: 100px; height: 50px; margin-top: 10px}
  14.         #Thumbnail    {width: 160px; height: 160px; margin-top: 0px}
  15.         #Status        {margin-left: 15px}
  16.         #Brand        {position: absolute; left: 30%; width: 70%; height: 100%; overflow: auto}
  17.         p        {margin-left: 15px; margin-top: 15px; margin-right: 15px}
  18.         p.Title        {font: 16pt; font-weight: bold; margin-top: 5px}
  19.         p.LogoLine    {margin-left: 0; margin-top: -5px; margin-right: 0; margin-bottom: 20px}
  20.         p.Warning    {font-weight: bold; color: red}
  21.         p.Links        {margin-top: 5px}
  22.         a.Command    {font-weight: bold}
  23.         div.Release     {width: 160px; text-align: right; background: buttonface; padding: 0px, 8px, 4px, 8px}
  24.     </style>
  25.  
  26.     <head>
  27. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1250">
  28.         <!-- allow references to any resources you might add to the folder -->
  29.         <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  30.         <!-- webbot bot="HTMLMarkup" tag="base" startspan -->
  31.         <base href="%THISDIRPATH%\">
  32.         <!-- webbot bot="HTMLMarkup" endspan -->
  33.  
  34.         <script language="JavaScript">
  35.             var L_Prompt_Text    = "Vybrßnφm polo₧ky zobrazφte jejφ popis.";
  36.             var L_Multiple_Text    = " vybran²ch polo₧ek.";
  37.             var L_Size_Text        = "Velikost: ";
  38.             var L_FileSize_Text    = "Celkovß velikost souboru: ";
  39.             var L_Delimiter_Text    = ",";
  40.             var L_Bytes_Text    = " bajt∙";
  41.             var L_Attributes_Text    = "Atributy";
  42.             var L_Codes_Text    = "RHSaCE"; // suppress the Archive flag
  43.             var L_ReadOnly_Text     = "Jen pro Φtenφ";
  44.             var L_Hidden_Text    = "Skryt²";
  45.             var L_System_Text    = "SystΘmov²";
  46.             var L_Archive_Text    = "Archivovat";
  47.             var L_Compressed_Text    = "Komprimovßno";
  48.             var L_Encrypted_Text    = "ZaÜifrovßno";
  49.             var L_NoAttributes_Text = "(normßlnφ)";
  50.             var L_Properties_Text    = "&Vlastnosti";
  51.             var timer        = 0;
  52.             var wantMedia        = false; // cool, but may hinder media file manipulation
  53.  
  54.             function FixSize() {
  55.                 // this function handles fixed panel sizing and collapsing when the window resizes
  56.                 var threshold    = 400;
  57.                 var miniHeight    = 32;
  58.                 var ch        = document.body.clientHeight;
  59.                 var cw        = document.body.clientWidth;
  60.  
  61.                 if (cw < threshold) {
  62.                     document.all.Panel.style.visibility = "hidden";
  63.                     document.all.MiniBanner.style.visibility = "visible";
  64.                     document.all.FileList.style.top = miniHeight;
  65.                     document.all.FileList.style.pixelLeft = 0;
  66.                 } else {
  67.                     document.all.MiniBanner.style.visibility = "hidden";
  68.                     document.all.Panel.style.visibility = "visible";
  69.                     document.all.FileList.style.top = 0;
  70.                     document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth; 
  71.                 }
  72.                 document.all.FileList.style.pixelWidth = cw - document.all.FileList.style.pixelLeft;
  73.                 document.all.FileList.style.pixelHeight = ch - document.all.FileList.style.pixelTop;
  74.             }
  75.  
  76.             function FormatNumber(n) {
  77.                 var t = "";
  78.                 var i, j = 0;
  79.                 for (i = n.length - 1; i >= 0; i--) {
  80.                     t = n.charAt(i) + t;
  81.                     if (i && ((++j % 3) == 0))
  82.                         t = L_Delimiter_Text + t;
  83.                 }
  84.                 return t;
  85.             }
  86.  
  87.             function Properties() {
  88.                 FileList.SelectedItems().Item(0).InvokeVerb(L_Properties_Text);
  89.             }
  90.  
  91.             function Init() {
  92.                 // call our FixSize() function whenever the window gets resized
  93.                 window.onresize = FixSize;
  94.                 FixSize();
  95.                 Info.innerHTML = L_Prompt_Text;
  96.             }
  97.         </script>
  98.  
  99.         <script language="JavaScript" for="FileList" event="SelectionChanged">
  100.             // this script updates the left info panel when you select icons
  101.             var fldr = FileList.Folder;
  102.             var items;
  103.             var name;
  104.             var data;
  105.             var text;
  106.             var title;
  107.             var size = 0;
  108.             var i;
  109.  
  110.             // cancel any pending status message
  111.             if (timer) {
  112.                 window.clearTimeout(timer);
  113.                 timer = 0;
  114.             }
  115.  
  116.             // erase any visible thumbnail since the selection changed
  117.             document.all.Thumbnail.style.display = "none";
  118.             document.all.Status.style.display = "none";
  119.  
  120.             // stop & destroy any media player
  121.             if (wantMedia)
  122.                 document.all.Media.innerHTML = "";
  123.  
  124.             data = FileList.SelectedItems().Count;
  125.             if (data == 0) {
  126.                 // nothing selected?
  127.                 Info.innerHTML = L_Prompt_Text;
  128.                 return;
  129.             }
  130.             else if (data > 1) {
  131.                 // more than one item selected?
  132.                 text = data + L_Multiple_Text + "<br>";
  133.                 if (data <= 100) {
  134.                     for (i = 0; i < data; i++)
  135.                         size += FileList.SelectedItems().Item(i).Size;
  136.                     if (size)
  137.                         text += "<br>" + L_FileSize_Text + FormatNumber(size.toString()) + L_Bytes_Text + "<br>";
  138.                     if (data <= 16)
  139.                         for (i = 0; i < data; i++)
  140.                             text += "<br>" + FileList.SelectedItems().Item(i).Name;
  141.                 }
  142.                 Info.innerHTML = text;
  143.                 return;
  144.             }
  145.  
  146.             items = FileList.SelectedItems().Item(0);
  147.  
  148.             // name
  149.             name = fldr.GetDetailsOf(items, 0);
  150.             text = "<b>" + name + "</b>";
  151.  
  152.             // type
  153.             data = fldr.GetDetailsOf(items, 2);
  154.             if (data)
  155.                 text += "<br>" + data;
  156.  
  157.             // date
  158.             data = fldr.GetDetailsOf(items, 3);
  159.             if (data)
  160.                 text += "<br><br>" + fldr.GetDetailsOf(null, 3) + ":<br>" + data;
  161.  
  162.             // size
  163.             size = FileList.SelectedItems().Item(0).Size;
  164.             if (size && size < 1000)
  165.                 text += "<br><br>" + L_Size_Text + size + L_Bytes_Text;
  166.             else {
  167.                 data = fldr.GetDetailsOf(items, 1);
  168.                 if (data)
  169.                     text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  170.                                 else if (size)
  171.                     text += "<br><br>" + L_Size_Text + FormatNumber(size.toString()) + L_Bytes_Text;
  172.             }
  173.  
  174.             // extra details?
  175.             for (i = 4; i < 10; i++) {
  176.                 title = fldr.GetDetailsOf(null, i);
  177.                 if (!title)
  178.                     break;
  179.                 data = fldr.GetDetailsOf(items, i);
  180.                 if (title == L_Attributes_Text) {
  181.                     var code;
  182.                     var s = "";
  183.  
  184.                     text += "<br><br>" + title.link("JavaScript:onClick=Properties()") + ": ";
  185.                     for (i = 0; i < 6; i++) {
  186.                         code = L_Codes_Text.charAt(i);
  187.                         if (data.indexOf(code) > -1) {
  188.                             if (s)
  189.                                 s += ", ";
  190.                             if (i == 0)
  191.                                 s += L_ReadOnly_Text;
  192.                             else if (i == 1)
  193.                                 s += L_Hidden_Text;
  194.                             else if (i == 2)
  195.                                 s += L_System_Text;
  196.                             else if (i == 3)
  197.                                 s += L_Archive_Text;
  198.                             else if (i == 4)
  199.                                 s += L_Compressed_Text;
  200.                             else if (i == 5)
  201.                                 s += L_Encrypted_Text;
  202.                         }
  203.                     }
  204.                     if (!s)
  205.                         s = L_NoAttributes_Text;
  206.                     text += s;
  207.                 }
  208.                 else if (data)
  209.                     text += "<br><br>" + title + ":<br>" + data;
  210.             }
  211.  
  212.             // tip?
  213.             data = fldr.GetDetailsOf(items, -1);
  214.             if (data && data != name) {
  215.                 var start;
  216.                 var end;
  217.                 var theLink;
  218.                 var a;
  219.  
  220.                 // parse lines for Office files without breaking links below
  221.                 a = data.split("\n");
  222.                 data = a.join("<br>\n");
  223.  
  224.                 // look for embedded links
  225.                 text += "<br><br>";
  226.                 start = data.indexOf("http://");
  227.                 if (start < 0)
  228.                     start = data.indexOf("file://");
  229.                 if (start < 0)
  230.                     text += data;
  231.                 else {
  232.                     end = data.indexOf(" ", start);
  233.                     if (end < 0)
  234.                         end = data.length;
  235.                     if (start > 0)
  236.                         text += data.substring(0, start - 1);
  237.                     theLink = data.substring(start, end);
  238.                     text += theLink.link(theLink);
  239.                     if (end < data.length)
  240.                         text += data.substring(end + 1, data.length);
  241.                 }
  242.             }
  243.  
  244.             // replace Info with the new text
  245.             Info.innerHTML = text;
  246.  
  247.             if (wantMedia && size) {
  248.                 // show media preview or thumbnail based on file extension
  249.                 ext = name.substring(name.lastIndexOf(".") + 1, name.length);
  250.                 ext = ext.toLowerCase();        
  251.                 if (ext == 'avi' || ext == 'mov' || ext == 'qt' || ext == 'mpe' || ext == 'mpeg' || ext == 'mpg') {
  252.                     // show a movie player
  253.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 148px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0><param name=BorderStyle value=0></object>';
  254.                 } else if (ext == 'aif' || ext == 'aifc' || ext == 'aiff' || ext == 'au' || ext == 'mid' || ext == 'rmi' || ext == 'snd' || ext == 'wav') {
  255.                     // show a sound player
  256.                     document.all.Media.innerHTML = '<object ID="Player" style="width: 160px; height: 28px" classid=clsid:05589FA1-C356-11CE-BF01-00AA0055595A><param name="FileName" value="' + items.Path + '"><param name=ShowDisplay value=0></center></object>'
  257.                 }
  258.             }
  259.  
  260.             // try to generate a new thumbnail asynchronously, and delay the status message one second
  261.             if (size && (size < 10000000) && Thumbnail.displayFile(items.Path))
  262.                 timer = window.setTimeout('document.all.Status.style.display = ""', 1000);
  263.         </script>
  264.  
  265.         <script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
  266.             // when a valid thumbnail has been generated, display it
  267.             window.clearTimeout(timer);
  268.             timer = 0;
  269.             document.all.Status.style.display = "none";
  270.             if (document.all.Thumbnail.haveThumbnail() && document.all.Media.innerHTML == "")
  271.                 document.all.Thumbnail.style.display = "";
  272.         </script>
  273.     </head>
  274.  
  275.     <body scroll=no onload="Init()">
  276.  
  277.         <!-- start mini banner -->
  278.         <div ID="MiniBanner" style="visibility: hidden; position: absolute; width: 100%; height: 32px; background: window">
  279.             <!-- using a table with nowrap to prevent word wrapping -->
  280.             <table><tr><td nowrap>
  281.                 <p class=Title style="margin-top: 0">
  282.                 <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  283.                 %THISDIRNAME%
  284.                 <!--webbot bot="HTMLMarkup" endspan -->
  285.             </td></tr></table>
  286.         </div>
  287.         <!-- end mini banner -->
  288.  
  289.         <!-- start left info panel -->
  290.         <div id=Panel style="background: white URL(file://%TEMPLATEDIR%\wvleft.gif) no-repeat">
  291.             <p>
  292.             <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  293.                 <param name="scale" value="100">
  294.             </object>
  295.  
  296.             <p class=Title>
  297.             <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  298.             %THISDIRNAME%
  299.             <!--webbot bot="HTMLMarkup" endspan -->
  300.             
  301.             <p class=LogoLine>
  302.             <img src="%TEMPLATEDIR%\wvline.gif" width=100% height=1px>
  303.             
  304.             <p>
  305.             <span id=Info>
  306.             </span>
  307.  
  308.             <!-- HERE'S A GOOD PLACE TO ADD A FEW LINKS OF YOUR OWN -->
  309.             <!-- (examples commented out)
  310.                 <p>
  311.                 <br>
  312.                 <a href="http://www.mylink1.com/">Custom Link 1</a>
  313.                 <p class=Links>
  314.                 <a href="http://www.mylink2.com/">Custom Link 2</a>
  315.             -->
  316.  
  317.             <p>
  318.             <!-- this is the thumbnail viewer control -->
  319.             <object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display: none">
  320.             </object>
  321.  
  322.             <!-- this is the status message that pops up during thumbnail generation -->
  323.             <div id=Status style="display: none">
  324.                 Probφhß generovßnφ nßhledu…
  325.             </div>
  326.             
  327.             <p>
  328.             <!-- this contains any ActiveMovie control created later -->
  329.             <div id=Media>
  330.             </div>
  331.             
  332.         </div>
  333.         <!-- end left info panel -->
  334.  
  335.         <!-- this is the standard file list control -->
  336.         <!-- webbot bot="HTMLMarkup" startspan -->
  337.         <object id=FileList border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  338.         </object>
  339.         <!-- webbot bot="HTMLMarkup" endspan -->
  340.  
  341.     </body>
  342. </html>
  343.