Location: PHPKode > projects > @1 File Store > templates/main.tpl
{include file=header.tpl}
<h1>{$lang.folders}</h1>
{if $gdisplay==1}
<table><tr><td>
<fieldset style="border: 1px solid #E6E6E6; padding-left: 10px; padding-right: 10px">
<legend>[ {$lang.message_from_admin} ]</legend>
<p>
{$greetings}
<br>
</fieldset>
</td></tr></table>
<p>
{/if}
{$welcome}<p>
{if $newfiles > 0}
<p><img src="css/new.gif" border=0> &nbsp; <span style="font-size:12px"><b>{$lang.the} {$newfiles} {$lang.last_uploaded_files}:</b></span></p>
<table class="data">
<tr>
<td><b>{$lang.date_added}</b></td>
<td><b>{$lang.folder}</b></td>
<td><b>{$lang.file_description}</b></td>
<td><b>{$lang.file_size}</b></td>
<td><b>{$lang.uploaded_by}</b></td>
<td><b>{$lang.file_type}</b></td>
{if $zipshow == "1"}
<td><b>{$lang.action}</b></td>
{/if}
</tr>
{foreach item="file" from=$filelist}
<tr>
<td>{$file.dateadd|date_format:"%Y-%m-%d %H:%M:%S"}</td>
<td align="center"><a href="folder.php?id={$file.folder_id}"> <img src="css/folder.gif" width=16 height=16 style="border:none;" > {$folder.folder_name}</a></td>
<td><a href="download.php?id={$file.id}" title="Download Now">{$file.descript}</a></td>
{if $file.filesize < 1024}
<td>{$file.filesize|string_format:"%d"} {$lang.bytes}</td>
{/if}
{if $file.filesize > 1023 & $file.filesize < 1048576}
<td>{$file.filesize/1024|string_format:"%.2f"} {$lang.kb}</td>
{/if}
{if $file.filesize > 1048575}
<td>{$file.filesize/1048576|string_format:"%.2f"} {$lang.mb}</td>
{/if}
<td>{$file.real_name} <font color=gray>[{$file.login}]</font></td>
<td>{$file.file_type}</td>
{if $zipshow == "1"}
<td class="zipicon">
<a class="zipicona" href="zipf.php?id={$file.id}" title="{$lang.zip}"><img src="css/zip.gif" border=0></a>
</td>
{/if}
</tr>
{/foreach}
</table>
</p>
{/if}
<br />
<hr color=gray size=1>
<p><b>{$lang.folders_available}:</b></p>
<table border="1" cellpadding="4" style="border-collapse: collapse" bordercolor="#E8E8E8">
{foreach item="folder" from=$folders}
<tr>
<td>
{if $folder.grp_id > '0'}
<img src="css/folder.gif" width=16 height=16>
{/if}
{if $folder.grp_id == '0'}
<img src="css/folder_noaccess.gif" width=16 height=16>
{/if}
{if $folder.grp_id == '-1'}
<img src="css/folder_admin.gif" width=16 height=16>
{/if}
{if $folder.grp_id == '-2'}
<img src="css/folder_noaccess_admin.gif" width=16 height=16>
{/if}
<a href="folder.php?id={$folder.id}">{$folder.folder_name}</a></td>
<td>{$folder.folder_desc}</td>
<td>{$folder.fldc} <img src="css/c_folder.gif" alt="subfolders"> {$folder.flc} <img src="css/c_file.gif" alt="files"></td>
</tr>
{/foreach}
</table>
</p>
Return current item: @1 File Store