{include file="$gentemplates/_header.tpl" pagetitle="$file_details_header"}

<style type="text/css">
{literal}
td.file_content { color:#000000; background-color: #eeeeee; margin: 0px, 10px, 10px, 0px; padding: 10px; }
td.file_content table { color:#000000; }
pre.file_content { font-family: monospace; font-weight: normal; }
{/literal}
</style>	
<script type="text/javascript">
{literal}
function specifylocation(){
  window.open("{/literal}{$index_url}&mode=specloc{literal}","locspec_win","toolbar=no,location=yes,directories=no,status=yes,menubar=no,scrollbars=auto,resizable=no,copyhistory=no,width=400,height=200")
}
{/literal}
</script>

<form name="f1" action="index.php" method="post" ENCTYPE="multipart/form-data">
<input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}" />
<input type="hidden" name="files[fileId]" value="{$files.id}" />

{include file="$gentemplates/_navi.tpl" pagetitle="$file_details_header"}
		
<table border="0" cellpadding="0" cellspacing="0" width="80%">
  <tr><td class="lines2" height="2" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="2"></td></tr>
  <tr align="left">
    <td class="tab" height="20" width="20"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="tab">&nbsp;</td>
    <td class="tab" colspan="2">&nbsp;</td>
  </tr>

  <tr><td class="lines" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.name}:</td>
    <td class="tab" colspan="2">{$files.name}</td>
  </tr>

  <tr><td class="lines" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.filesize}:</td>
    {if $files.type eq 'd'}
    <td class="tab" colspan="2">{$numdirs} {$hashmap.dircount} /  {$numfiles} {$hashmap.filecount} / {$dusage|default:'0'|mgw_filesize} {$hashmap.used}</td>
    {else}
    <td class="tab" colspan="2">{$files.size|mgw_filesize} ({$files.size} Bytes)</td>
    {/if}
  </tr>

  <tr><td class="lines" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.location}:</td>
    <td class="tab" colspan="2">{$current_dir_name}/</td>
  </tr>

  <tr><td class="lines" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.mimetype}:&nbsp;</td>
    <td class="tab" colspan="2">{$files.mime_type}</pre></td>
  </tr>

  <tr><td class="lines" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">{$hashmap.filecontent}:</td>
    {if $files.mime_type eq "text/plain"}
    <td class="file_content" colspan="2">{$output|mgw_linkalize|smarty:nodefaults}</td>
    {else}
    <td class="file_content" colspan="2">{$output|smarty:nodefaults}</td>
    {/if}
  </tr>			

  <tr><td class="lines2" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr align="left">
    <td class="tab" height="40"><img src="{$imgpathmaster}/space.gif" alt="" width="60" height="1"></td>
    <td class="formhead">&nbsp;</td>
    <td class="formhead" colspan="2"><a href="index.php?{$SESSION}">{$hashmap.back}</a>
      {if $mode neq 'viewdir'}
      &nbsp;&nbsp;&nbsp;<a href="serve.php?id={$files.id}&amp;dl=1&amp;{$SESSION}" target="_blank">{$hashmap.download}</a>
      &nbsp;&nbsp;&nbsp;<a href="index.php?id={$files.id}&amp;action=emailfile&amp;{$SESSION}">{$hashmap.emailfile}</a>
      {/if}</td>
  </tr>
  <tr><td class="lines" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>

</table>
</form>

{include file="$gentemplates/_footer.tpl" aktUser=$username}
