| 1911 |
lars |
1 |
{include file="header.tpl"}
|
|
|
2 |
<!-- $Id: medienverwaltung.tpl 2048 2017-02-17 23:41:59Z lars $ -->
|
| 2048 |
lars |
3 |
<script src="/backend/js/bildverwaltung.js"></script>
|
| 1911 |
lars |
4 |
<script>
|
|
|
5 |
$(function(){
|
|
|
6 |
$('.search').button({
|
|
|
7 |
icons:{
|
|
|
8 |
primary:"ui-icon-search"
|
|
|
9 |
}
|
|
|
10 |
})
|
|
|
11 |
$('.edit_desc').button({
|
|
|
12 |
icons:{
|
|
|
13 |
primary:"ui-icon-pencil"
|
|
|
14 |
}
|
|
|
15 |
}).css("cursor","pointer").click(edit_medium_desc);
|
|
|
16 |
$('.edit_type').button({
|
|
|
17 |
icons:{
|
|
|
18 |
primary:"ui-icon-pencil"
|
|
|
19 |
}
|
|
|
20 |
}).css("cursor","pointer").click(edit_medium_type);
|
|
|
21 |
$('#edit_desc_dlg').dialog({
|
|
|
22 |
autoOpen:false,
|
|
|
23 |
modal:true,
|
|
|
24 |
resizable:false,
|
|
|
25 |
buttons:{
|
|
|
26 |
"speichern": function()
|
|
|
27 |
{
|
|
|
28 |
url="/toolbox/editMedimDesc.php";
|
|
|
29 |
$.get(url,$('#edit_desc_form').serialize(),function(html){
|
|
|
30 |
$('#desc_'+$('#hidden_id').val()).html(html);
|
|
|
31 |
})
|
|
|
32 |
$('#edit_desc_dlg').dialog("close");
|
|
|
33 |
},
|
|
|
34 |
"abbrechen": function()
|
|
|
35 |
{
|
|
|
36 |
$('#edit_desc_dlg').dialog("close");
|
|
|
37 |
}
|
|
|
38 |
}
|
|
|
39 |
});
|
|
|
40 |
$('#edit_type_dlg').dialog({
|
|
|
41 |
autoOpen:false,
|
|
|
42 |
modal:true,
|
|
|
43 |
resizable:false,
|
|
|
44 |
buttons:{
|
|
|
45 |
"speichern": function()
|
|
|
46 |
{
|
|
|
47 |
url="/toolbox/editMedimType.php";
|
|
|
48 |
$.get(url,$('#edit_type_form').serialize(),function(html){
|
|
|
49 |
$('#type_'+$('#hidden_id_type').val()).html(html);
|
|
|
50 |
})
|
|
|
51 |
$('#edit_type_dlg').dialog("close");
|
|
|
52 |
},
|
|
|
53 |
"abbrechen": function()
|
|
|
54 |
{
|
|
|
55 |
$('#edit_type_dlg').dialog("close");
|
|
|
56 |
}
|
|
|
57 |
}
|
|
|
58 |
});
|
|
|
59 |
});
|
|
|
60 |
</script>
|
|
|
61 |
{if isset($user_rechte.admin.toolbox.bildverwaltung)}
|
|
|
62 |
<table>
|
|
|
63 |
<tr>
|
|
|
64 |
<td>
|
|
|
65 |
<button class="add_image tb_bv_button" title="Bilder verwalten"></button>
|
|
|
66 |
<button class="add_folder tb_bv_button" title="Neues Verzeichnis anlegen"></button>
|
|
|
67 |
</td>
|
|
|
68 |
<td>
|
|
|
69 |
<form id="search_media">
|
|
|
70 |
<input type="text" placeholder="Suche" value="{$search}" name="search" />
|
|
|
71 |
<input type="hidden" name="folder" value="{$folder|urlencode}" />
|
|
|
72 |
<button class="search tb_bv_button" title="Medien durchsuchen"> </button>
|
|
|
73 |
</form>
|
|
|
74 |
</td>
|
|
|
75 |
</tr>
|
|
|
76 |
</table>
|
|
|
77 |
<div class="break"> </div>
|
|
|
78 |
<div class="pos">
|
|
|
79 |
<span class="aktuell">Position:</span>
|
|
|
80 |
{if $folder}
|
| 2048 |
lars |
81 |
<a class="nav" href="/backend/bildverwaltung/index/">TOP</a>
|
| 1911 |
lars |
82 |
{else}
|
|
|
83 |
<span class="aktuell">TOP</span>
|
|
|
84 |
{/if}
|
|
|
85 |
{foreach $pos as $dir}
|
|
|
86 |
{if $dir@first} > {/if}
|
|
|
87 |
{if !$dir@last}
|
| 2048 |
lars |
88 |
<a class="nav" href="/backend/bildverwaltung/index/?folder={$dir.fullName}">{$dir.name}</a> >
|
| 1911 |
lars |
89 |
{else}
|
|
|
90 |
<span class="aktuell">
|
|
|
91 |
{$dir.name}
|
|
|
92 |
</span>
|
|
|
93 |
{/if}
|
|
|
94 |
{/foreach}
|
|
|
95 |
</div>
|
|
|
96 |
{foreach $folders as $f_id => $f_name}
|
|
|
97 |
{if $f_name@first}
|
|
|
98 |
<div class="break"> </div>
|
|
|
99 |
{/if}
|
| 2048 |
lars |
100 |
<img src="/backend/images/Online-Shop/directory/ordner.gif" />
|
|
|
101 |
<a href="/backend/bildverwaltung/index/?folder={$f_name|urlencode}" class="nav">{$f_name}</a>
|
| 1911 |
lars |
102 |
{if !$f_name@last}
|
|
|
103 |
<br>
|
|
|
104 |
{/if}
|
|
|
105 |
{/foreach}
|
|
|
106 |
<div class="break"> </div>
|
|
|
107 |
{include file="pagination.tpl"}
|
|
|
108 |
<table cellpadding="0" cellpadding="0" border="1" width="100%">
|
|
|
109 |
<tr class="links">
|
|
|
110 |
<td>
|
| 2048 |
lars |
111 |
<a href="/backend/bildverwaltung/index/?sort=document&dir={$sort.document.dir}">ID</a>
|
| 1911 |
lars |
112 |
</td>
|
|
|
113 |
<td>
|
| 2048 |
lars |
114 |
<a href="/backend/bildverwaltung/index/?sort=document&dir={$sort.document.dir}">Name</a>
|
| 1911 |
lars |
115 |
</td>
|
|
|
116 |
<td>Beschreibung</td>
|
|
|
117 |
<td>
|
| 2048 |
lars |
118 |
<a href="/backend/bildverwaltung/index/?sort=typ&dir={$sort.document.dir}">Typ des Mediums</a>
|
| 1911 |
lars |
119 |
</td>
|
|
|
120 |
<td>
|
| 2048 |
lars |
121 |
<a href="/backend/bildverwaltung/index/?sort=erstellt_am&dir={$sort.erstellt_am.dir}">Datum</a>
|
| 1911 |
lars |
122 |
</td>
|
|
|
123 |
<td>
|
| 2048 |
lars |
124 |
<a href="/backend/bildverwaltung/index/?sort=erstellt_am&dir={$sort.erstellt_am.dir}">Zeit</a>
|
| 1911 |
lars |
125 |
</td>
|
|
|
126 |
<td>
|
| 2048 |
lars |
127 |
<a href="/backend/bildverwaltung/index/?sort=erstellt_von&dir={$sort.erstellt_von.dir}">Ersteller</a>
|
| 1911 |
lars |
128 |
</td>
|
|
|
129 |
<td>Anzahl Verknüpfungen</td>
|
|
|
130 |
</tr>
|
|
|
131 |
{foreach $medien as $id => $medium}
|
|
|
132 |
<tr class="rechts">
|
|
|
133 |
<td>{$medium.id}</td>
|
|
|
134 |
<td>{$medium.name}</td>
|
|
|
135 |
<td style="width:200px;">
|
|
|
136 |
<div>
|
|
|
137 |
<div style="float:left;">
|
|
|
138 |
<button id="edit_desc__{$medium.id}" class="edit_desc tb_bv_button" title="Beschreibung ändern"></button>
|
|
|
139 |
</div>
|
|
|
140 |
<div style="float:left;" id="desc_{$medium.id}">{$medium.beschreibung|default:" "}</div>
|
|
|
141 |
</div>
|
|
|
142 |
</td>
|
|
|
143 |
<td>
|
|
|
144 |
<div>
|
|
|
145 |
<div style="float:left;">
|
|
|
146 |
<button id="edit_type__{$medium.id}" class="edit_type tb_bv_button" title="Medientyp ändern"></button>
|
|
|
147 |
</div>
|
|
|
148 |
<div style="float:left;" id="type_{$medium.id}">{$medium.typ}</div>
|
|
|
149 |
</div>
|
|
|
150 |
</td>
|
|
|
151 |
<td>{$medium.erstellt_am|date_format:"%x"}</td>
|
|
|
152 |
<td>{$medium.erstellt_am|date_format:"%X"}</td>
|
|
|
153 |
<td>{$medium.erstellt_von}</td>
|
|
|
154 |
<td>{$medium.anz.artikel} Artikel<br>{$medium.anz.directory} Kategorien</td>
|
|
|
155 |
</tr>
|
|
|
156 |
{/foreach}
|
|
|
157 |
</table>
|
|
|
158 |
{include file="pagination.tpl"}
|
|
|
159 |
|
|
|
160 |
{include file="upload.tpl"}
|
|
|
161 |
|
|
|
162 |
{else}
|
|
|
163 |
<div class="error">Sie haben nicht das Recht dieses Tool zu benutzen!</div>
|
|
|
164 |
{/if}
|
|
|
165 |
|
|
|
166 |
<div title="Beschreibung des Mediums anpassen" id="edit_desc_dlg">
|
|
|
167 |
<form id="edit_desc_form">
|
|
|
168 |
<input type="hidden" name="id" value="" id="hidden_id" />
|
|
|
169 |
Beschreibung:
|
|
|
170 |
<input type="text" name="beschreibung" value="" id="input_desc" />
|
|
|
171 |
</form>
|
|
|
172 |
</div>
|
|
|
173 |
<div title="Type des Mediums anpassen" id="edit_type_dlg">
|
|
|
174 |
<form id="edit_type_form">
|
|
|
175 |
<input type="hidden" name="id" value="" id="hidden_id_type" />
|
|
|
176 |
Typ:
|
|
|
177 |
{html_options options=$typen name="typ"}
|
|
|
178 |
</form>
|
|
|
179 |
</div>
|
|
|
180 |
{include file="footer.tpl"}
|