Subversion-Projekte lars-tiefland.ci

Revision

Revision 2169 | Revision 2172 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1910 lars 1
<!-- $Id: medien.tpl 2171 2017-12-23 13:23:32Z lars $ BEGIN -->
2171 lars 2
<script type="text/javascript" src="/backend/js/bildverwaltung.js"></script>
1891 lars 3
<style>
4
.tb_bv_button
5
{
6
  height: 22px;
7
  width: 30px;
8
}
9
</style>
10
<script>
11
    $('.aehnlich').change(change_aehnlich);
12
    $('.del_image').css("cursor","pointer").click(del_image);
13
    $('.pic_up').css("cursor","pointer").click(move_pic);
14
    $('.pic_down').css("cursor","pointer").click(move_pic);
15
    $('.edit_desc').button({
16
        icons:{
17
            primary:"ui-icon-pencil"
18
        }
19
    }).css("cursor","pointer").click(edit_medium_desc);
1915 lars 20
    $('.edit_type').button({
21
        icons:{
22
            primary:"ui-icon-pencil"
23
        }
24
    }).css("cursor","pointer").click(edit_medium_type);
1921 lars 25
    $('#edit_desc_dlg').dialog({
26
        autoOpen:false,
27
        modal:true,
28
        resizable:false,
29
        buttons:{
30
            "speichern": function()
31
            {
2048 lars 32
                url="/backend/medien/edit_desc";
1921 lars 33
                $.post(url,$('#edit_desc_form').serializeArray(),function(html){
34
                    $('#desc_'+$('#hidden_id').val()).html(html);
35
                })
36
                $(this).dialog("close");
37
            },
38
            "abbrechen": function()
39
            {
40
                $(this).dialog("close");
41
            }
42
        }
43
    });
1919 lars 44
    $('#edit_type_dlg').dialog({
45
        autoOpen:false,
46
        modal:true,
47
        resizable:false,
48
        buttons:{
49
            "speichern": function()
50
            {
2048 lars 51
                url="/backend/medien/edit_type";
1920 lars 52
                $.post(url,$('#edit_type_form').serializeArray(),function(html){
1919 lars 53
                    $('#type_'+$('#hidden_id_type').val()).html(html);
54
                })
55
                $(this).dialog("close");
56
            },
57
            "abbrechen": function()
58
            {
59
                $(this).dialog("close");
60
            }
61
        }
62
    });
1891 lars 63
</script>
1912 lars 64
<table style="width:100%">
1891 lars 65
    <tr class="links">
1908 lars 66
        <th>Dateiname</th>
67
        <th>Vorschau</th>
68
        <th>&auml;hnlich?</th>
69
        <th>Beschreibung</th>
70
        <th>Gr&ouml;&szlig;e</th>
71
        <th>Type</th>
72
        <th>Aktionen</th>
1891 lars 73
    </tr>
74
    {foreach $medien as $medium}
75
    <tr>
1895 lars 76
        <td id="bild_name_{$medium.id}">{$medium.name}</td>
1891 lars 77
        <td>
78
            {if $medium.typ==1||$medium.typ==5||$medium.typ==6||$medium.typ==7}
1895 lars 79
            <a href="{$medium.bild_url}" target="_blank"><img src="{$medium.bild_url_mini}" /></a>
1891 lars 80
            {elseif $medium.typ==3}
81
            <a href="{$medium.name}" target="_blank">
1895 lars 82
                <img src="{$medium.bild_url_mini}" width="153" />
1891 lars 83
            </a>
84
            {else}
85
            Dies ist kein Bild!<br/>Daher gibt es keine Vorschau!
86
            {/if}
87
        </td>
88
        <td>
89
            <select id="aehnlich_{$smarty.get.l_id}_{$medium.id}_{$smarty.get.l_type}" class="aehnlich">
90
            {html_options selected=$medium.aehnlich options=$aehnlich}
91
            </select>
92
        </td>
93
        <td style="width:200px;">
94
            <div>
95
                <div style="float:left;">
1913 lars 96
                    <a class="edit_desc" id="edit_desc__{$medium.id}" title="Beschreibung editieren"></a>
1891 lars 97
                </div>
98
                <div style="float:left;" id="desc_{$medium.id}">{$medium.beschreibung|default:"&nbsp;"}</div>
99
            </div>
100
        </td>
101
        <td>
102
            {$medium.size|fsize_format}
103
            {if $medium.typ==1||$medium.typ==5||$medium.typ==6||$medium.typ==3}
104
            ({$medium.img_size[0]} x {$medium.img_size[1]} Pixel)
105
            {/if}
106
        </td>
107
        <td>
1914 lars 108
            <div>
109
                <div style="float:left">
1917 lars 110
                    <a class="edit_type" id="edit_type__{$medium.id}" title="Typ editieren"></a>
1914 lars 111
                </div>
112
                <div style="float:left" id="type_{$medium.id}">{$medium.typ_name}</div>
113
            </div>
1891 lars 114
        </td>
115
        <td>
116
            <table>
117
                <tr>
1909 lars 118
                    <td style="width:16px">
1891 lars 119
                        {if !$medium@first}
2048 lars 120
                        <a class="pic_up" title="nach oben" id="up_{$smarty.get.l_id}_{$medium.id}_{$smarty.get.l_type}"><img src="/backend/images/Icons/up.png"/></a>
1891 lars 121
                        {/if}
122
                    </td>
1909 lars 123
                    <td style="width:16px">
1891 lars 124
                        {if !$medium@last}
2048 lars 125
                        <a class="pic_down" title="nach unten" id="down_{$smarty.get.l_id}_{$medium.id}_{$smarty.get.l_type}"><img src="/backend/images/Icons/down.png"/></a>
1891 lars 126
                        {/if}
127
                    </td>
1909 lars 128
                    <td style="width:16px">
2048 lars 129
                        <a title="l&ouml;schen" class="del_image" id="del_image_{$medium.id}_{$smarty.post.l_id}"><img src="/backend/images/Icons/trashcan.png"/></a>
1891 lars 130
                    </td>
131
                </tr>
132
            </table>
133
        </td>
134
    </tr>
2168 lars 135
    {/foreach}
2167 lars 136
    <tr>
137
        <td>
138
            <input type="button" value="neues Bild zuordnen" id="add_image"/>
139
            <input type="button" value="Bilder hochladen" id="upload_images"/>
140
            <input type="button" value="Youtube-Video zuordnen" id="youtube" />
2169 lars 141
            <div id="add_image_dialog" title="Bild hinzuf&uuml;gen"></div>
2167 lars 142
        </td>
143
    </tr>
1891 lars 144
    <input type="hidden" id="l_type" value="{$smarty.get.l_type}" />
145
</table>
1910 lars 146
<!-- $Id: medien.tpl 2171 2017-12-23 13:23:32Z lars $ END -->