4 * Copyright (c) 2003-2008 John Willinsky
5 * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
9 * $Id: index.tpl,v 1.1.1.1 2008/10/20 21:27:09 tylerl Exp $
12 {assign var="pageTitle" value="manager.filesBrowser"}
13 {include file="common/header.tpl"}
16 {assign var=displayDir value="/$currentDir"}
17 <h3>{translate key="manager.files.indexOfDir" dir=$displayDir|escape}</h3>
20 <p><a href="{url op="files" path=$parentDir|explode:"/"}" class="action">< {translate key="manager.files.parentDir"}</a></p>
23 <table width="100%" class="listing">
25 <td class="headseparator" colspan="6"> </td>
27 <tr class="heading" valign="bottom">
29 <td width="25%">{translate key="common.fileName"}</td>
30 <td width="25%">{translate key="common.type"}</td>
31 <td width="25%">{translate key="common.dateModified"}</td>
32 <td width="5%">{translate key="common.size"}</td>
33 <td width="20%" align="right">{translate key="common.action"}</td>
36 <td class="headseparator" colspan="6"> </td>
38 {foreach from=$files item=file name=files}
40 {assign var=filePath value="$currentDir/`$file.name`"}
42 {assign var=filePath value=$file.name}
44 {assign var=filePath value=$filePath|escape}
46 <td>{if $file.isDir}{icon name="folder"}{else}{icon name="letter"}{/if}</td>
47 <td><a href="{url op="files" path=$filePath|explode:"/"}">{$file.name}</a></td>
48 <td>{$file.mimetype|escape|default:"—"}</td>
49 <td>{$file.mtime|escape|date_format:$datetimeFormatShort}</td>
50 <td>{$file.size|escape|default:"—"}</td>
51 <td align="right" class="nowrap">
53 <a href="{url op="files" path=$filePath|explode:"/" download=1}" class="action">{translate key="common.download"}</a> |
55 <a href="{url op="fileDelete" path=$filePath|explode:"/"}" onclick="return confirm('{translate|escape:"jsparam" key="manager.files.confirmDelete"}')" class="action">{translate key="common.delete"}</a>
59 <td colspan="6" class="{if $smarty.foreach.files.last}end{/if}separator"> </td>
63 <td colspan="6" class="nodata">{translate key="manager.files.emptyDir"}</td>
66 <td colspan="6" class="endseparator"> </td>
71 <form method="post" action="{url op="fileUpload" path=$currentDir|explode:"/"}" enctype="multipart/form-data">
72 <input type="file" size="20" name="file" class="uploadField" />
73 <input type="submit" value="{translate key="manager.files.uploadFile"}" class="button" />
76 <form method="post" action="{url op="fileMakeDir" path=$currentDir|explode:"/"}" enctype="multipart/form-data">
77 <input type="text" size="20" maxlength="255" name="dirName" class="textField" />
78 <input type="submit" value="{translate key="manager.files.createDir"}" class="button" />
81 <p>{translate key="manager.files.note"}</p>
83 {include file="common/footer.tpl"}