{include file='header' pageTitle='wcf.acp.attachment.list'} {include file='imageViewer'}

{lang}wcf.acp.attachment.list{/lang}{if $items} {#$items}{/if}

{lang}wcf.acp.attachment.stats{/lang}

{hascontent} {/hascontent}
{include file='formError'}

{lang}wcf.global.filter{/lang}

{if $availableFileTypes|count > 1}
{/if} {event name='filterFields'}
{@SECURITY_TOKEN_INPUT_TAG}
{hascontent}
{content} {assign var='linkParameters' value=''} {if $username}{capture append=linkParameters}&username={@$username|rawurlencode}{/capture}{/if} {if $filename}{capture append=linkParameters}&filename={@$filename|rawurlencode}{/capture}{/if} {if $fileType}{capture append=linkParameters}&fileType={@$fileType|rawurlencode}{/capture}{/if} {pages print=true assign=pagesLinks controller="AttachmentList" link="pageNo=%d&sortField=$sortField&sortOrder=$sortOrder$linkParameters"} {/content}
{/hascontent} {if $objects|count}
{event name='columnHeads'} {foreach from=$objects item=attachment} {event name='columns'} {/foreach}
{lang}wcf.global.objectID{/lang} {lang}wcf.attachment.filename{/lang} {lang}wcf.attachment.uploadTime{/lang} {lang}wcf.attachment.filesize{/lang} {lang}wcf.attachment.downloads{/lang} {lang}wcf.attachment.lastDownloadTime{/lang}
{event name='rowButtons'} {@$attachment->attachmentID}
isImage} class="jsImageViewer" title="{$attachment->filename}"{/if}> {if $attachment->tinyThumbnailType} {else} {/if}

{$attachment->filename|tableWordwrap}

{if $attachment->userID}{if $__wcf->session->getPermission('admin.user.canEditUser')}{$attachment->username}{else}{$attachment->username}{/if}{else}{lang}wcf.user.guest{/lang}{/if}

{if $attachment->getContainerObject()}

{$attachment->getContainerObject()->getTitle()|tableWordwrap}

{/if}
{@$attachment->uploadTime|time} {@$attachment->filesize|filesize} {#$attachment->downloads} {if $attachment->lastDownloadTime}{@$attachment->lastDownloadTime|time}{/if}
{else}

{lang}wcf.global.noItems{/lang}

{/if} {include file='footer'}