{include file="$gentemplates/_header.tpl" pagetitle="$filelisting"}
{include file="$gentemplates/_navi.tpl" pagetitle="$filelisting $current_dir_name/"}

<table width="100%" class="contentback" border="0" cellpadding="0" cellspacing="0">
<tr height="30">
<td align="right">
  <form name="f1" action="index.php" method="POST" class="submit">
  <input type="hidden" name="{$SESSIONNAME}" value="{$SESSIONID}">
  <input type="hidden" name="mod" value="files">
  {$hashmap.categorysearch}&nbsp;:&nbsp;{$categoriessb|smarty:nodefaults}&nbsp;
  {if $projectssb}
  {$hashmap.projectsearch}&nbsp;:&nbsp;{$projectssb|smarty:nodefaults}
  {/if}
  <input type="text" size="20" name="searchterm" value="{$searchterm|escape:"html"}">&nbsp;<input type="submit" value="{$hashmap.search}" name="search" class="submit">&nbsp;&nbsp;
  </form>
</td>
</tr>
</table>

<table class="contentback" width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      {* TABLE START *}

      {if $projectsupport}
      {include file="$gentemplates/_th9.tpl" 
	  			r1="" 
				r2="&nbsp;&nbsp;$filename&nbsp;&nbsp;" 
				r3="&nbsp;&nbsp;$filesize&nbsp;&nbsp;" 
				r4="&nbsp;&nbsp;$filecreated&nbsp;&nbsp;" 
				r5="&nbsp;&nbsp;$filemodified&nbsp;&nbsp;" 
				r6="&nbsp;&nbsp;$categorytext&nbsp;&nbsp;" 
				r7="&nbsp;&nbsp;$projecttext&nbsp;&nbsp;" 
				r8="&nbsp;&nbsp;$fileowner&nbsp;&nbsp;" 
				r9="&nbsp;&nbsp;$action&nbsp;&nbsp;"}

      {include file="$gentemplates/_tr9.tpl" 
	  			r1="" 
				r2=$chgdir_up|smarty:nodefaults
				r3="" 
				r4="" 
				r5="" 
				r6="" 
				r7="" 
				r8=""
				r9=$chgdir_up_actions|smarty:nodefaults}

      {section name=contents loop=$td}
      {include file="$gentemplates/_tr9.tpl" 
				r1=$td[contents].icon|smarty:nodefaults
				r2=$td[contents].name|smarty:nodefaults
				r3=$td[contents].size|mgw_filesize 
				r4=$td[contents].created|mgw_datetime:'human' 
				r5=$td[contents].modified|mgw_datetime:'human' 
				r6=$td[contents].category
				r7=$td[contents].project
				r8=$td[contents].owner_name 
				r9=$td[contents].actions|smarty:nodefaults}
      {/section}

      {include file="$gentemplates/_tfx.tpl" colspan="18"}
      {else}
      {include file="$gentemplates/_th8.tpl" 
	  			r1="" 
				r2="&nbsp;&nbsp;$filename&nbsp;&nbsp;" 
				r3="&nbsp;&nbsp;$filesize&nbsp;&nbsp;" 
				r4="&nbsp;&nbsp;$filecreated&nbsp;&nbsp;" 
				r5="&nbsp;&nbsp;$filemodified&nbsp;&nbsp;" 
				r6="&nbsp;&nbsp;$categorytext&nbsp;&nbsp;" 
				r7="&nbsp;&nbsp;$fileowner&nbsp;&nbsp;" 
				r8="&nbsp;&nbsp;$action&nbsp;&nbsp;"}

      {include file="$gentemplates/_tr8.tpl" 
	  			r1="" 
				r2=$chgdir_up|smarty:nodefaults
				r3="" 
				r4="" 
				r5="" 
				r6="" 
				r7="" 
				r8=$chgdir_up_actions|smarty:nodefaults}

      {section name=contents loop=$td}
      {include file="$gentemplates/_tr8.tpl" 
				r1=$td[contents].icon|smarty:nodefaults
				r2=$td[contents].name|smarty:nodefaults
				r3=$td[contents].size|mgw_filesize 
				r4=$td[contents].created|mgw_datetime:'human' 
				r5=$td[contents].modified|mgw_datetime:'human' 
				r6=$td[contents].category
				r7=$td[contents].owner_name 
				r8=$td[contents].actions|smarty:nodefaults}
      {/section}

      {include file="$gentemplates/_tfx.tpl" colspan="16"}
      {/if}
      {* TABLE END *}
    </td>
  </tr>
  <tr>
    <td class="tab"><br />
      &nbsp;&nbsp;&nbsp;&nbsp;{$numdirs} {$hashmap.dircount} /  {$numfiles} {$hashmap.filecount} / {$dusage|default:'0'|mgw_filesize} {$hashmap.used}<br /><br /></td>
    </tr>
  <tr><td class="lines2" height="1" width="1" colspan="5"><img src="{$imgpathmaster}/space.gif" alt="" width="1" height="1"></td></tr>
  <tr>
    <td class="tab"><br />
      &nbsp;&nbsp;&nbsp;&nbsp;{$hashmap.total}: {$tnumdirs} {$hashmap.dirsfiles} {$tnumfiles} {$hashmap.filesizeinfo} {$tdusage|default:'0'|mgw_filesize}<br /><br />
    </td>
  </tr>
</table>

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