[%USE date%]
<html>
<style type="text/css"> 
<!--
    form#uploader > label { display:block; float:left; width:12ex; }
    //form#uploader > label { display:inline-block; width:12ex; }
--> 
</style>
<head>
    <title>Up &amp; Down</title>
</head>
<body>
<div align="right">
[ <a href="[%alink%]">admin</a> ]
</div>
<h1>Ansicht [%view ? view : "[unbekannt]"%]</h1>

<table>
    <tr align=right>
	<td>dir:</td>
	<td>[%directory%]</td>
    </tr>
</table>

<hr/>
Der gültige Download-Link ist die Link-Adresse, die sich hinter
dem Datei-Namen verbirgt. (Firefox: Rechte Maustaste, Link-Location).
Nach Ablauf des <a href="http://de.wikipedia.org/wiki/Mindesthaltbarkeitsdatum">MHD</a>
wird die Datei automatisch gelöscht.
<hr/>

<form id="uploader" method="POST" enctype="multipart/form-data">

    <label for="upload">Filename:</label> 
    <input id="upload" name="upload" type="file"/>
    <br/>

    <label for="expires">Löschung in:</label>
    <select id="expires" name="expires" type=popup>
	    <option value=1  [%sel.1 %]> 1 Tag  </option>
	    <option value=7  [%sel.7 %]> 7 Tagen</option>
	    <option value=10 [%sel.10%]>10 Tagen</option>
	    <option value=30 [%sel.30%]>30 Tagen</option>
	    <option value=90 [%sel.90%]>90 Tagen</option>
    </select>
    <br/>

    <label for="go"></label>
    <input id="go" type="submit" name=".uploader" value="Hochladen"/>
    <br/>

</form>

[%IF files.size%]
<hr/>
<table>
    <tr>
	<th align=left>Name</th>
	<th align=left>Größe</th>
	<th align=left>Hochgeladen</th>
	<th align=left>Löschung</th>
    </tr>
    [%FOREACH files%]
    [%# link name size mtime dtime dlink %]
    <tr>
	<td><a href="[%link%]">[%name%]</a></td>
	<td align=right>[%size%]</td>
	<td>[%date.format(mtime)%]</td>
	<td>[%date.format(dtime)%]</td>
	<td><a href="[%dlink%]">Jetzt Löschen</a></td> 
    </tr>
    [%END%]
</table>
[%END%]

[%INCLUDE footer%]
</body>
</html>
[%# vim:ft=html: 
%]
