last update: Wed, 11 Apr 2012 23:02:43 +0000
  1. {foreach from=$errors item=error}
  2. <div class="error">
  3. {$error}
  4. </div>
  5. {/foreach}
  6. {foreach from=$notices item=notice}
  7. <div class="notice">
  8. {$notice}
  9. </div>
  10. {/foreach}
  11. <a href="{$backpath}uploads/">uploads</a>
  12. {foreach from=$nav_ordner item=unterordner}
  13. {if $unterordner.id}
  14. -> <a href="{$unterordner.path}">{$unterordner.name}</a>
  15. {/if}
  16. {/foreach}
  17. {if $folderexists}
  18. <table width="100%" style="align-left:5px;align-right:5px;">
  19. <thead>
  20. <tr>
  21. <th class="header">
  22. {if ! "name"|in_array:$sort_parameters}
  23. <a href="&sortby=name">Name</a>
  24. {else}
  25. <a href="&sortby=name%20DESC">Name</a>
  26. {/if}
  27. </th>
  28. <th class="header">
  29. {if ! "filetype"|in_array:$sort_parameters}
  30. <a href="&sortby=filetype">Typ</a>
  31. {else}
  32. <a href="&sortby=filetype%20DESC">Typ</a>
  33. {/if}
  34. </th>
  35. <th class="header">
  36. {if ! "filesize"|in_array:$sort_parameters}
  37. <a href="&sortby=filesize">Größe</a>
  38. {else}
  39. <a href="&sortby=filesize%20DESC">Größe</a>
  40. {/if}
  41. </th>
  42. <th class="header">
  43. {if ! "datum"|in_array:$sort_parameters}
  44. <a href="&sortby=datum">Datum</a>
  45. {else}
  46. <a href="&sortby=datum%20DESC">Datum</a>
  47. {/if}
  48. </th>
  49. <th class="header">
  50. {if ! "downloads"|in_array:$sort_parameters}
  51. <a href="&sortby=downloads">Downloads</a>
  52. {else}
  53. <a href="&sortby=downloads%20DESC">Downloads</a>
  54. {/if}
  55. </th>
  56. <th class="header">
  57. {if ! "owner"|in_array:$sort_parameters}
  58. <a href="&sortby=owner">Owner</a>
  59. {else}
  60. <a href="&sortby=owner%20DESC">Owner</a>
  61. {/if}
  62. </th>
  63. <th class="header">Aktionen</th>
  64. </tr>
  65. </thead>
  66. <tbody>
  67. {foreach from=$ordnerinhalt item=row}
  68. {cycle values="odd,even" assign=tempclass}
  69. <tr class="{$tempclass}">
  70. {if $row.istordner}
  71. <td class="row"><img src="{$backpath}ordner.gif" alt="Ordner" /><a href="{$row.name|escape:"url"}/">{$row.name}</a></td>
  72. <td class="row">Ordner</td>
  73. <td class="row">{math equation="x" x=$row.filesize format="%.0f"} Kb</td>
  74. <td class="row">{$row.datum|date_format:"%d.%m.%Y %H:%I:%S"}</td>
  75. <td class="row"></td>
  76. <td class="row">{$row.avatar}{$row.ownername}</td>:
  77. <td class="row">
  78. {if $row.ownerid==$session_userid ||$row.ownerid== 0 || $session_admin}
  79. <a title="löschen" href="?{$sortby}&c=delete&id={$row.id}&savekey={$row.savekey}"><img src="{$backpath}delete.png" alt="löschen" /></a>
  80. {/if}</td>
  81. {else}
  82. <td class="row">
  83. {if $row.thumb != ''}
  84. <img src="{$backpath}{$row.thumb}" alt="Bild"/>
  85. {/if}
  86. <a rel="nofollow" href="{$row.name|escape:"url"}">{$row.name}</a>
  87. </td>
  88. <td class="row">{$row.filetype}</td>
  89. <td class="row">{math equation="x" x=$row.filesize format="%.0f"} Kb</td>
  90. <td class="row">{$row.datum|date_format:"%d.%m.%Y %H:%I:%S"}</td>
  91. <td class="row">{$row.downloads}</td>
  92. <td class="row">{$row.ownername}</td>
  93. <td class="row">
  94. {if (($row.ownerid == $session_userid ||$row.ownerid== 0) && $session_userid ) || $session_admin}
  95. <a title="löschen" href="?{$sortby}&c=delete&id={$row.id}&savekey={$row.savekey}"><img src="{$backpath}delete.png" alt="löschen" /></a>
  96. {/if}</td>
  97. {/if}
  98. </tr>
  99. {/foreach}
  100. </tbody>
  101. </table>
  102. {if $session_is_logged_in == true }
  103. <br /><br />
  104. <div id="jcupload_messages">
  105. </div>
  106. <div id="jcupload_content">
  107. <!-- jcUpload dialog output -->
  108. </div>
  109. <br /><br />
  110. <div id="olduploadform">
  111. <form action="" method="post" enctype="multipart/form-data">
  112. <fieldset>
  113. <legend>Datei hochladen</legend>
  114. <input type="hidden" name="c" value="upload" />
  115. <input type="hidden" name="o" value="{$ordner}" />
  116. <input type="file" size="100" maxlength="100000" name="userfile" />
  117. <input type="submit" value="upload" />
  118. </fieldset>
  119. </form>
  120. </div>
  121. <form action="" method="post" enctype="multipart/form-data">
  122. <fieldset>
  123. <legend>Ordner erstellen</legend>
  124. <input type="hidden" name="c" value="newfolder" />
  125. <input type="hidden" name="o" value="{$ordner}" />
  126. <input type="text" name="folder" />
  127. <input type="submit" value="Ordner erstellen" />
  128. </fieldset>
  129. </form>
  130. {else}
  131. <p style="margin:20px;padding:10px;background-color:#fea;"><a href="{$backpath}login.php">Anmelden</a> um Dateien hochzuladen.</p>
  132. {/if}
  133. {/if}

goto line:
Compare with:
text copy window edit this code post new code