home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 71 / CDROM71.ISO / aplic / org / data1.cab / Root / folder.htt < prev    next >
Encoding:
Text File  |  2001-03-28  |  15.2 KB  |  504 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.  
  28. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
  29. <!-- allow references to any resources you might add to the folder -->
  30. <!-- (a "webbot" is a special wrapper for FrontPage compatibility) -->
  31. <!-- webbot bot="HTMLMarkup" tag="base" startspan -->
  32. <base href="%THISDIRPATH%\">
  33. <!-- webbot bot="HTMLMarkup" endspan -->
  34.  
  35. <script language="JavaScript">
  36.         var L_Intro_Text    = "<b><font color=red>Atenτπo</font></b><br><br>Antes de modificar o conte·do desta pasta, contate o suporte tΘcnico da <a href=mailto:suporte@estlibre.com>Est Libre</a>";
  37.         var L_Prompt_Text    = "Selecione um item para exibir sua descriτπo.";
  38.         var L_Prompt1_Text    = "Para exibir o conte·do desta pasta, clique em  <a href=\'\'class=command onclick=\'ShowFiles(); ShowWinStat(winStat); return false;\' onMouseOver=\'ShowWinStat(!winStat); return true;\' onMouseOut=\'ShowWinStat(winStat); return true;\' onFocus=\'ShowWinStat(!winStat); return true;\' onBlur=\'ShowWinStat(winStat); return true;\'>Mostrar arquivos</a>";
  39.         var L_Multiple_Text    = " itens selecionados.";
  40.         var L_Size_Text        = "Tamanho: ";
  41.         var L_FileSize_Text    = "Tamanho total do arquivo: ";
  42.         var L_Delimiter_Text    = ",";
  43.         var L_Bytes_Text    = " bytes";
  44.         var L_Attributes_Text    = "Atributos";
  45.         var L_Codes_Text    = "RHSaCE"; // suppress the Archive flag
  46.         var L_ReadOnly_Text     = "Somente leitura";
  47.         var L_Hidden_Text    = "Oculto";
  48.         var L_System_Text    = "Sistema";
  49.         var L_Archive_Text    = "Arquivo";
  50.         var L_Compressed_Text    = "Compactado";
  51.         var L_Encrypted_Text    = "Criptografado";
  52.         var L_NoAttributes_Text = "(normal)";
  53.         var L_Properties_Text    = "&Propriedades";
  54.         var timer        = 0;
  55.         var wantMedia        = false; // cool, but may hinder media file manipulation
  56.         var showFiles        = false;
  57.         var winStat        = false;
  58.  
  59. function FixSize()
  60. { // this function handles fixed panel sizing and collapsing when the window resizes
  61.   var threshold     = 450;
  62.   var miniHeight = 32;
  63.   var ch     = document.body.clientHeight;
  64.   var cw     = document.body.clientWidth;
  65.  
  66.   if (cw < threshold)
  67.   {
  68.     document.all.Panel.style.visibility = "hidden";
  69.     if (showFiles)
  70.     {
  71.       document.all.MiniBanner.style.visibility = "visible";
  72.       document.all.FileList.style.top = miniHeight;
  73.       document.all.FileList.style.pixelLeft = 0;
  74.  
  75.       document.all.FileList.style.left = 0;
  76.       document.all.FileList.style.width = cw;
  77.       document.all.FileList.style.height = (ch - miniHeight) >= 0 ? (ch - miniHeight) : 0;
  78.       
  79.     }
  80.     else
  81.     {
  82.       document.all.Brand.style.top = 0;
  83.       document.all.Brand.style.left = 0;
  84.       document.all.Brand.style.width = cw;
  85.       document.all.Brand.style.height = ch >= 0 ? ch : 0;
  86.       document.all.Brand.innerHTML = "<p>" + L_Intro_Text + "<br><br>" + L_Prompt1_Text;
  87.     }
  88.   }
  89.   else
  90.   {
  91.     document.all.MiniBanner.style.visibility = "hidden";
  92.     document.all.Panel.style.visibility = "visible";
  93.     if (showFiles)
  94.     {
  95.       document.all.FileList.style.top = 0;
  96.       document.all.FileList.style.pixelLeft = document.all.Panel.style.pixelWidth;
  97.  
  98.       document.all.FileList.style.left = document.all.Panel.style.pixelWidth;
  99.       document.all.FileList.style.width = cw - document.all.Panel.style.pixelWidth;
  100.       document.all.FileList.style.height = ch;
  101.  
  102.     }
  103.     else
  104.     {
  105.       document.all.Brand.style.top = 0;
  106.       document.all.Brand.style.left = document.all.Panel.style.pixelWidth;
  107.       document.all.Brand.style.width = cw - document.all.Panel.style.pixelWidth;
  108.       document.all.Brand.style.height = ch;
  109.       document.all.Brand.innerHTML = "";
  110.     }
  111.   }
  112. }
  113.  
  114. function ShowWinStat(winStat)
  115. {
  116.   if (winStat)
  117.     window.status="Mostra todos os arquivos";
  118.   else
  119.     window.status="";
  120. }
  121.  
  122. function ShowFiles()
  123. {
  124.   showFiles = true;
  125.  
  126.   Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt_Text;
  127.   document.all.FileList.style.display = "";
  128.   document.all.Brand.style.display = "none";
  129.   
  130.   FixSize();
  131. }
  132.  
  133. function FormatNumber(n)
  134. {
  135.   var t = "";
  136.   var i, j = 0;
  137.   for (i = n.length - 1; i >= 0; i--)
  138.   {
  139.     t = n.charAt(i) + t;
  140.     if (i && ((++j % 3) == 0))
  141.       t = L_Delimiter_Text + t;
  142.   }
  143.   return t;
  144. }
  145.  
  146. function Properties()
  147. {
  148.   FileList.SelectedItems().Item(0).InvokeVerb(L_Properties_Text);
  149. }
  150.  
  151. function Init()
  152. { // call our FixSize() function whenever the window gets resized
  153.   document.all.FileList.style.display = "none";
  154.   document.all.Brand.style.display = "";
  155.   window.onresize = FixSize;
  156.   FixSize();
  157.   Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt1_Text;
  158. }
  159.  
  160. </script>
  161.  
  162. <script language="JavaScript" for="FileList" event="SelectionChanged">
  163. // this script updates the left info panel when you select icons
  164.   var fldr = FileList.Folder;
  165.   var items;
  166.   var name;
  167.   var data;
  168.   var text;
  169.   var title;
  170.   var size = 0;
  171.   var i;
  172.  
  173.   // cancel any pending status message
  174.   if (timer)
  175.   {
  176.     window.clearTimeout(timer);
  177.     timer = 0;
  178.   }
  179.  
  180.   // erase any visible thumbnail since the selection changed
  181.   document.all.Thumbnail.style.display = "none";
  182.   document.all.Status.style.display = "none";
  183.  
  184.   // stop & destroy any media player
  185.   if (wantMedia)
  186.     document.all.Media.innerHTML = "";
  187.  
  188.   data = FileList.SelectedItems().Count;
  189.   if (data == 0)
  190.   {
  191.     // nothing selected?
  192.     Info.innerHTML = L_Intro_Text + "<br><br>" + L_Prompt_Text;
  193.     return;
  194.   }
  195.   else if (data > 1)
  196.   {
  197.     // more than one item selected?
  198.     text = data + L_Multiple_Text + "<br>";
  199.     if (data <= 100)
  200.     {
  201.       for (i = 0; i < data; i++)
  202.         size += FileList.SelectedItems().Item(i).Size;
  203.       if (size)
  204.         text += "<br>" + L_FileSize_Text + FormatNumber(size.toString()) + L_Bytes_Text + "<br>";
  205.       if (data <= 16)
  206.         for (i = 0; i < data; i++)
  207.           text += "<br>" + FileList.SelectedItems().Item(i).Name;
  208.     }
  209.     Info.innerHTML = text;
  210.     return;
  211.   }
  212.  
  213.   items = FileList.SelectedItems().Item(0);
  214.  
  215.   // name
  216.   name = fldr.GetDetailsOf(items, 0);
  217.   text = "<b>" + name + "</b>";
  218.  
  219.   // type
  220.   data = fldr.GetDetailsOf(items, 2);
  221.   if (data)
  222.     text += "<br>" + data;
  223.  
  224.   // date
  225.   data = fldr.GetDetailsOf(items, 3);
  226.   if (data)
  227.     text += "<br><br>" + fldr.GetDetailsOf(null, 3) + ":<br>" + data;
  228.  
  229.   // size?
  230.   size = FileList.SelectedItems().Item(0).Size;
  231.   if (size && size < 1000)
  232.     text += "<br><br>" + L_Size_Text + size + L_Bytes_Text;
  233.   else
  234.   {
  235.     data = fldr.GetDetailsOf(items, 1);
  236.     if (data)
  237.       text += "<br><br>" + fldr.GetDetailsOf(null, 1) + ": " + data;
  238.     else if (size)
  239.       text += "<br><br>" + L_Size_Text + FormatNumber(size.toString()) + L_Bytes_Text;
  240.   }
  241.  
  242.   // extra details?
  243.   for (i = 4; i < 10; i++)
  244.   {
  245.     title = fldr.GetDetailsOf(null, i);
  246.     if (!title)
  247.       break;
  248.     data = fldr.GetDetailsOf(items, i);
  249.     if (title == L_Attributes_Text)
  250.     {
  251.       var code;
  252.       var s = "";
  253.  
  254.       text += "<br><br>" + title.link("JavaScript:onClick=Properties()") + ": ";
  255.       for (i = 0; i < 6; i++)
  256.       {
  257.         code = L_Codes_Text.charAt(i);
  258.         if (data.indexOf(code) > -1)
  259.         {
  260.           if (s)
  261.             s += ", ";
  262.           if (i == 0)
  263.             s += L_ReadOnly_Text;
  264.           else if (i == 1)
  265.             s += L_Hidden_Text;
  266.           else if (i == 2)
  267.             s += L_System_Text;
  268.           else if (i == 3)
  269.             s += L_Archive_Text;
  270.           else if (i == 4)
  271.             s += L_Compressed_Text;
  272.           else if (i == 5)
  273.             s += L_Encrypted_Text;
  274.         }
  275.       }
  276.       if (!s)
  277.         s = L_NoAttributes_Text;
  278.       text += s;
  279.     }
  280.     else if (data)
  281.       text += "<br><br>" + title + ":<br>" + data;
  282.   }
  283.  
  284.   // tip?
  285.   data = fldr.GetDetailsOf(items, -1);
  286.   if (data && data != name)
  287.   {
  288.     var start;
  289.     var end;
  290.     var theLink;
  291.     var a;
  292.  
  293.     // parse lines for Office files without breaking links below
  294.     a = data.split("\n");
  295.     data = a.join("<br>\n");
  296.  
  297.     // look for embedded links
  298.     text += "<br><br>";
  299.     start = data.indexOf("http://");
  300.     if (start < 0)
  301.       start = data.indexOf("file://");
  302.     if (start < 0)
  303.       text += data;
  304.     else
  305.     {
  306.       end = data.indexOf(" ", start);
  307.       if (end < 0)
  308.         end = data.length;
  309.       if (start > 0)
  310.         text += data.substring(0, start - 1);
  311.       theLink = data.substring(start, end);
  312.       text += theLink.link(theLink);
  313.       if (end < data.length)
  314.         text += data.substring(end + 1, data.length);
  315.     }
  316.   }
  317.  
  318.   // replace Info with the new text
  319.   Info.innerHTML = text;
  320.  
  321.   if (wantMedia && size)
  322.   {
  323.     // show media preview or thumbnail based on file extension
  324.     ext = name.substring(name.lastIndexOf(".") + 1, name.length);
  325.     ext = ext.toLowerCase();
  326.     if (ext == 'avi' || ext == 'mov' || ext == 'qt' || ext == 'mpe' || ext == 'mpeg' || ext == 'mpg')
  327.     {
  328.       // show a movie player
  329.       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>';
  330.     }
  331.     else if (ext == 'aif' || ext == 'aifc' || ext == 'aiff' || ext == 'au' || ext == 'mid' || ext == 'rmi' || ext == 'snd' || ext == 'wav')
  332.     {
  333.       // show a sound player
  334.       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>'
  335.     }
  336.   }
  337.  
  338.   // try to generate a new thumbnail asynchronously, and delay the status message one second
  339.   if (size && (size < 10000000) && Thumbnail.displayFile(items.Path))
  340.     timer = window.setTimeout('document.all.Status.style.display = ""', 1000);
  341. </script>
  342.  
  343. <script language="JavaScript" for="Thumbnail" event="OnThumbnailReady">
  344. // when a valid thumbnail has been generated, display it
  345.   window.clearTimeout(timer);
  346.   timer = 0;
  347.   document.all.Status.style.display = "none";
  348.   if (document.all.Thumbnail.haveThumbnail() && document.all.Media.innerHTML == "")
  349.     document.all.Thumbnail.style.display = "";
  350. </script>
  351. <SCRIPT LANGUAGE="JavaScript">
  352.  
  353. <!-- begin script
  354. function maketable(n)
  355. {
  356.   var nb;
  357.   this.length = n;
  358.   for (var i = 1; i <=n; i++)
  359.     if (i<10)
  360.     {
  361.       nb = i+"";
  362.       nb = nb.substring(0,1);
  363.       this[i] = nb;
  364.     }
  365.   return this;
  366. }
  367.  
  368. function conversion(color)
  369. {
  370.   var hexa1;
  371.   var hexa2;
  372.   var colorHexa;
  373.   tabHex = new maketable(16);
  374.  
  375.   tabHex[10]="A"; tabHex[11]="B"; tabHex[12]="C"; tabHex[13]="D"; tabHex[14]="E"; tabHex[15]="F";
  376.   hexa2 = (color%16);
  377.   hexa1 = parseInt(color/16);
  378.   hexa2 = tabHex[hexa2];
  379.   if (hexa2 == null)
  380.     hexa2 = "0";
  381.   hexa1 = tabHex[hexa1];
  382.   if (hexa1 == null)
  383.     hexa1 = "0";
  384.   colorHexa = hexa1 + hexa2;
  385.   return colorHexa;
  386. }
  387.  
  388. function degrade(texte, taille, police, RGB)
  389. {
  390.   var factor = 256/(texte.length+1);
  391.   var i;
  392.   var c1,c2,c3;
  393.  
  394.   for (i=0;i<texte.length;i++)
  395.   {
  396.     ton=factor*i;
  397.     if (RGB == 0)
  398.     {
  399.       c1 = 'FF'
  400.       c2 = conversion(ton);
  401.       c3 = c2;
  402.     }
  403.     else if (RGB == 1)
  404.     {
  405.       c1 = conversion(ton);
  406.       c2 = 'FF'
  407.       c3 = c1;
  408.     }
  409.     else
  410.     {
  411.       c1 = conversion(ton);
  412.       c2 = c1;
  413.       c3 = 'FF'
  414.     }
  415.     document.write ('<FONT SIZE=' + taille + ' FACE="' + police + '" COLOR="#' + c1 + c2 + c3 + '">' + texte.substring (i,i+1) + '</FONT>');
  416.   }
  417. }
  418. //  end script -->
  419.  
  420. </SCRIPT>
  421. </head>
  422.  
  423. <body scroll=no onload="Init()">
  424.  
  425. <!-- start mini banner -->
  426. <div ID="MiniBanner" style="visibility: hidden; position: absolute; width: 100%; height: 32px; background: window">
  427. <!-- using a table with nowrap to prevent word wrapping -->
  428. <table><tr><td nowrap>
  429. <p class=Title style="margin-top: 0">
  430. <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  431. %THISDIRNAME%
  432. <!--webbot bot="HTMLMarkup" endspan -->
  433. </td></tr></table>
  434. </div>
  435. <!-- end mini banner -->
  436.  
  437. <!-- start left info panel -->
  438. <div id=Panel style="background: white URL(file://%TEMPLATEDIR%\wvleft.bmp) no-repeat">
  439. <p>
  440. <object classid="clsid:E5DF9D10-3B52-11D1-83E8-00A0C90DC849" width=32 height=32>
  441. <param name="scale" value="100">
  442. </object>
  443.  
  444. <p class=Title>
  445. <!--webbot bot="HTMLMarkup" startspan alt="<B><I>Web View Folder Title</I></B> " -->
  446. %THISDIRNAME%
  447. <!--webbot bot="HTMLMarkup" endspan -->
  448.  
  449. <p class=LogoLine>
  450. <img src="%TEMPLATEDIR%\wvline.gif" width=100% height=1px>
  451.  
  452. <p>
  453. <span id=Info>
  454. </span>
  455.  
  456. <FORM>
  457.  
  458. <SCRIPT LANGUAGE="JavaScript">
  459.   <!-- begin script
  460.   degrade('Freemen\'s Links',4,'Times New Roman',2)
  461.   //  End script -->
  462. </SCRIPT>
  463.  
  464. </FORM>
  465.  
  466. <!-- HERE'S A GOOD PLACE TO ADD A FEW LINKS OF YOUR OWN -->
  467. <a href="http://www.estlibre.com/">Visite nossa Home-Page (USA)</a>
  468. <p class=Links>
  469. <a href="http://www.estlibre.com.br/">ou use esse endereτo alternativo (BRA)</a>
  470.  
  471.  
  472. <p>
  473. <!-- this is the thumbnail viewer control -->
  474. <object id=Thumbnail classid="clsid:1D2B4F40-1F10-11D1-9E88-00C04FDCAB92" style="display: none">
  475. </object>
  476.  
  477. <!-- this is the status message that pops up during thumbnail generation -->
  478. <div id=Status style="display: none">
  479.   Gerando visualização...
  480. </div>
  481.  
  482. <p>
  483. <!-- this contains any ActiveMovie control created later -->
  484. <div id=Media>
  485. </div>
  486.  
  487. </div>
  488. <!-- end left info panel -->
  489.  
  490. <!-- this is a Windows graphic that covers up the files -->
  491. <div id=Brand style="background: white URL(file://%THISDIRPATH%\bin\llogo.gif) no-repeat right bottom"
  492. <!-- <div id=Brand style="background: white URL(file://%TEMPLATEDIR%\wvlogo.gif) no-repeat right bottom">-->
  493. </div>
  494.  
  495. <!-- this is the standard file list control -->
  496. <!-- webbot bot="HTMLMarkup" startspan -->                                                <!--object id=FileList border=0 tabindex=0 style="display: none" classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2"-->
  497. <object id=FileList border=0 tabindex=1 classid="clsid:1820FED0-473E-11D0-A96C-00C04FD705A2">
  498. </object>
  499. <!-- webbot bot="HTMLMarkup" endspan -->
  500.  
  501. </body>
  502. </html>
  503.  
  504.