| 1 |
lars |
1 |
<!-- $Id: bilder.tpl 749 2011-10-06 22:13:37Z tiefland $ -->
|
|
|
2 |
{if isset($user_rechte.admin.toolbox.bildverwaltung)}
|
|
|
3 |
{*include file="common/pagination.tpl"*}
|
|
|
4 |
<button class="add_image" title="Bilder verwalten"></button>
|
|
|
5 |
<button class="add_folder" title="Neues Verzeichnis anlegen"></button>
|
|
|
6 |
{if $smarty.get.folder}
|
|
|
7 |
<br />
|
|
|
8 |
<a href="{$smarty.server.SCRIPT_NAME}">TOP</a>
|
|
|
9 |
{/if}
|
|
|
10 |
{foreach $folders as $f_id => $f_name}
|
|
|
11 |
<br /><a href="{$smarty.server.SCRIPT_NAME}?folder={$f_name}">{$f_name}</a>
|
|
|
12 |
{/foreach}
|
|
|
13 |
<table cellpadding="0" cellpadding="0" border="1" width="100%">
|
|
|
14 |
<tr class="links">
|
|
|
15 |
<td>
|
|
|
16 |
<a href="{$SCRIPT_NAME}?sort=document&dir={$sort.document.dir}">ID</a>
|
|
|
17 |
</td>
|
|
|
18 |
<td>
|
|
|
19 |
<a href="{$SCRIPT_NAME}?sort=document&dir={$sort.document.dir}">Name</a>
|
|
|
20 |
</td>
|
|
|
21 |
<td>
|
|
|
22 |
<a href="{$SCRIPT_NAME}?sort=erstellt_am&dir={$sort.erstellt_am.dir}">Datum</a>
|
|
|
23 |
</td>
|
|
|
24 |
<td>
|
|
|
25 |
<a href="{$SCRIPT_NAME}?sort=erstellt_am&dir={$sort.erstellt_am.dir}">Zeit</a>
|
|
|
26 |
</td>
|
|
|
27 |
<td>
|
|
|
28 |
<a href="{$SCRIPT_NAME}?sort=erstellt_von&dir={$sort.erstellt_von.dir}">Ersteller</a>
|
|
|
29 |
</td>
|
|
|
30 |
</tr>
|
|
|
31 |
{foreach $bilder as $id => $bild}
|
|
|
32 |
<tr class="rechts">
|
|
|
33 |
<td>{$bild.id}</td>
|
|
|
34 |
<td>{$bild.name}</td>
|
|
|
35 |
<td>{$bild.erstellt_am|date_format:"%x"}</td>
|
|
|
36 |
<td>{$bild.erstellt_am|date_format:"%X"}</td>
|
|
|
37 |
<td>{$bild.erstellt_von}</td>
|
|
|
38 |
</tr>
|
|
|
39 |
{/foreach}
|
|
|
40 |
</table>
|
|
|
41 |
{*include file="common/pagination.tpl"*}
|
|
|
42 |
|
|
|
43 |
<div id="fileupload" title="Bilder verwalten">
|
|
|
44 |
<form action="upload.php" method="POST" enctype="multipart/form-data">
|
|
|
45 |
<div class="fileupload-buttonbar">
|
|
|
46 |
<label class="fileinput-button">
|
|
|
47 |
<span>Add files...</span>
|
|
|
48 |
<input type="hidden" name="folder" value="{$folder}" />
|
|
|
49 |
<input type="file" name="files[]" multiple />
|
|
|
50 |
</label>
|
|
|
51 |
<button type="submit" class="start">Start upload</button>
|
|
|
52 |
<button type="reset" class="cancel">Cancel upload</button>
|
|
|
53 |
<button type="button" class="delete">Delete files</button>
|
|
|
54 |
</div>
|
|
|
55 |
</form>
|
|
|
56 |
<div class="fileupload-content">
|
|
|
57 |
<table class="files"></table>
|
|
|
58 |
<div class="fileupload-progressbar"></div>
|
|
|
59 |
</div>
|
|
|
60 |
</div>
|
|
|
61 |
{literal}
|
|
|
62 |
<script id="template-upload" type="text/x-jquery-tmpl">
|
|
|
63 |
<tr class="template-upload{{if error}} ui-state-error{{/if}}">
|
|
|
64 |
<td class="preview"></td>
|
|
|
65 |
<td class="name">${name}</td>
|
|
|
66 |
<td class="size">${sizef}</td>
|
|
|
67 |
{{if error}}
|
|
|
68 |
<td class="error" colspan="2">Error:
|
|
|
69 |
{{if error === 'maxFileSize'}}File is too big
|
|
|
70 |
{{else error === 'minFileSize'}}File is too small
|
|
|
71 |
{{else error === 'acceptFileTypes'}}Filetype not allowed
|
|
|
72 |
{{else error === 'maxNumberOfFiles'}}Max number of files exceeded
|
|
|
73 |
{{else}}${error}
|
|
|
74 |
{{/if}}
|
|
|
75 |
</td>
|
|
|
76 |
{{else}}
|
|
|
77 |
<td class="progress"><div></div></td>
|
|
|
78 |
<td class="start"><button>Start</button></td>
|
|
|
79 |
{{/if}}
|
|
|
80 |
<td class="cancel"><button>Cancel</button></td>
|
|
|
81 |
</tr>
|
|
|
82 |
</script>
|
|
|
83 |
<script id="template-download" type="text/x-jquery-tmpl">
|
|
|
84 |
<tr class="template-download{{if error}} ui-state-error{{/if}}">
|
|
|
85 |
{{if error}}
|
|
|
86 |
<td></td>
|
|
|
87 |
<td class="name">${name}</td>
|
|
|
88 |
<td class="size">${sizef}</td>
|
|
|
89 |
<td class="error" colspan="2">Error:
|
|
|
90 |
{{if error === 1}}File exceeds upload_max_filesize (php.ini directive)
|
|
|
91 |
{{else error === 2}}File exceeds MAX_FILE_SIZE (HTML form directive)
|
|
|
92 |
{{else error === 3}}File was only partially uploaded
|
|
|
93 |
{{else error === 4}}No File was uploaded
|
|
|
94 |
{{else error === 5}}Missing a temporary folder
|
|
|
95 |
{{else error === 6}}Failed to write file to disk
|
|
|
96 |
{{else error === 7}}File upload stopped by extension
|
|
|
97 |
{{else error === 'maxFileSize'}}File is too big
|
|
|
98 |
{{else error === 'minFileSize'}}File is too small
|
|
|
99 |
{{else error === 'acceptFileTypes'}}Filetype not allowed
|
|
|
100 |
{{else error === 'maxNumberOfFiles'}}Max number of files exceeded
|
|
|
101 |
{{else error === 'uploadedBytes'}}Uploaded bytes exceed file size
|
|
|
102 |
{{else error === 'emptyResult'}}Empty file upload result
|
|
|
103 |
{{else}}${error}
|
|
|
104 |
{{/if}}
|
|
|
105 |
</td>
|
|
|
106 |
{{else}}
|
|
|
107 |
<td class="preview">
|
|
|
108 |
{{if thumbnail_url}}
|
|
|
109 |
<a href="${url}" target="_blank"><img src="${thumbnail_url}"></a>
|
|
|
110 |
{{/if}}
|
|
|
111 |
</td>
|
|
|
112 |
<td class="name">
|
|
|
113 |
<a href="${url}"{{if thumbnail_url}} target="_blank"{{/if}}>${name}</a>
|
|
|
114 |
</td>
|
|
|
115 |
<td class="size">${sizef}</td>
|
|
|
116 |
<td colspan="2"></td>
|
|
|
117 |
{{/if}}
|
|
|
118 |
<td class="delete">
|
|
|
119 |
<button data-type="${delete_type}" data-url="${delete_url}">Delete</button>
|
|
|
120 |
</td>
|
|
|
121 |
</tr>
|
|
|
122 |
</script>
|
|
|
123 |
{/literal}
|
|
|
124 |
</div>
|
|
|
125 |
<script src="/js/upload/application.js"></script>
|
|
|
126 |
<div id="folder_dialog" title="Ordner anlegen">
|
|
|
127 |
<form id="create_folder" method="post">
|
|
|
128 |
<table>
|
|
|
129 |
<tr>
|
|
|
130 |
<td>Ordnername:</td>
|
|
|
131 |
<td>
|
|
|
132 |
<input type="text" name="folder_name" id="folder_name" value="" />
|
|
|
133 |
</td>
|
|
|
134 |
</tr>
|
|
|
135 |
</table>
|
|
|
136 |
</form>
|
|
|
137 |
</div>
|
|
|
138 |
{else}
|
|
|
139 |
<div class="error">Sie haben nicht das Recht dieses Tool zu benutzen!</div>
|
|
|
140 |
{/if}
|