Subversion-Projekte lars-tiefland.ci

Revision

Revision 2168 | Revision 2171 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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