<?php
  include("./inc/func.php");  
?>
<html>
<head>
<title>adresářová struktura</title>
<meta http-equiv="content-type" content="text/html; charset=windows-1250">
    <style>
      <!--    
      
      body  {margin: 0px; font-family: Arial; background-color: #f0f0f6; font-size: 12px; text-align: center;}
      
      a {color: #080; text-decoration: none;}
      a:hover {text-decoration: underline; font-weight: bold;}
      
      .levy {position: absolute; top: 30px; left: 12px; width: 60px; height: 260px;}
      .stredni {position: absolute; top: 30px; left: 72px; width: 240px; height: 260px;}
      .pravy {position: absolute; top: 30px; left: 312px; width: 270px; height: 260px;}
      
      .pracovni {visibility: hidden; position: absolute; top: 30px; left: 312px; width: 100px; height: 100px;}
      
      .prubeh {visibility: hidden; position: absolute; left: 312px; top: 285px; width: 0px; height: 10px; font-size: 0px; border: 1px solid black; background-color: green;};
      
      .nabidka {visibility: hidden; position: absolute; top: 300px; left: 20px;}
      .nahrat {visibility: hidden; position: absolute; top: 297px; left: 195px;}
      
      .tlacitko {background-color: #6d92fc; width: 70px; height: 20px; color: #fff; font-size: 10px; padding-top: 1px; font-weight: bold; margin-right: 15px;}
                  
      -->
    </style>
    <script language="JavaScript">
      var adresa="";
      var adresa2="";
      var soubor="";
      
      function download_progress(velikost)
      {
         document.getElementById('prubeh').style.visibility="visible";
         document.getElementById('prubeh').style.width=velikost+"px";
      };
    </script>
</head>
<body>
  <div style="font-weight: bold; font-size: 13px; background-color: #ccd9f4;">adresářová struktura</div>

  <iframe class="levy" src="user_dir_disk.php?cas=<?php echo time(); ?>" scrolling="auto" border="0" frameborder="0" framespacing="0"></iframe>
  <iframe class="stredni" id="adresare" src="user_dir_adresare.php" scrolling="auto" border="0" frameborder="0" framespacing="0"></iframe>
  <iframe class="pravy" id="soubory" src="user_dir_soubory.php?cas=<?php echo time(); ?>" scrolling="auto" border="0" frameborder="0" framespacing="0"></iframe>
  <div class="visibility: hidden;" class="nabidka" id="nabidka"><input title="spustit vybraný soubor" style="position: absolute; top: 297px; *top: 300px; left: 20px;" class="tlacitko" type="button" name="spustit" onclick="javascript:parent.document.getElementById('pracovni').src='user_dir_spustit.php?soubor='+ adresa + soubor;" value="spustit"> <input title="stáhnout vybraný soubor" style="position: absolute; top: 297px; *top: 300px; left: 110px;" class="tlacitko" type="button" name="stahnout" onclick="javascript:parent.document.getElementById('pracovni').src='user_dir_download.php?soubor='+ adresa + soubor;" value="download"></div>
  <div class="nahrat" id="nahrat">
    <form style="margin: 0;" action="user_dir_upload.php" onsubmit="javascript:document.getElementById('cesta').value=adresa2;" target="pracovni" method="post" enctype="multipart/form-data">
      <input title="odeslat vybraný soubor" class="tlacitko" type="submit" name="odeslat" value="upload"> <input type="file" name="soubor">
      <input type="hidden" name="cesta" id="cesta" value="">
    </form>
  </div>
  
  <iframe id="pracovni" name="pracovni" class="pracovni" src="" scrolling="auto"></iframe>
  <div class="prubeh" id="prubeh"></div>
</body>
</html>
