Subversion-Projekte lars-tiefland.ci

Revision

Revision 1915 | Revision 1919 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1910 lars 1
<!-- $Id: medien.tpl 1917 2016-12-26 12:59:28Z 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);
1891 lars 24
</script>
1912 lars 25
<table style="width:100%">
1891 lars 26
    <tr class="links">
1908 lars 27
        <th>Dateiname</th>
28
        <th>Vorschau</th>
29
        <th>&auml;hnlich?</th>
30
        <th>Beschreibung</th>
31
        <th>Gr&ouml;&szlig;e</th>
32
        <th>Type</th>
33
        <th>Aktionen</th>
1891 lars 34
    </tr>
35
    {foreach $medien as $medium}
36
    <tr>
1895 lars 37
        <td id="bild_name_{$medium.id}">{$medium.name}</td>
1891 lars 38
        <td>
39
            {if $medium.typ==1||$medium.typ==5||$medium.typ==6||$medium.typ==7}
1895 lars 40
            <a href="{$medium.bild_url}" target="_blank"><img src="{$medium.bild_url_mini}" /></a>
1891 lars 41
            {elseif $medium.typ==3}
42
            <a href="{$medium.name}" target="_blank">
1895 lars 43
                <img src="{$medium.bild_url_mini}" width="153" />
1891 lars 44
            </a>
45
            {else}
46
            Dies ist kein Bild!<br/>Daher gibt es keine Vorschau!
47
            {/if}
48
        </td>
49
        <td>
50
            <select id="aehnlich_{$smarty.get.l_id}_{$medium.id}_{$smarty.get.l_type}" class="aehnlich">
51
            {html_options selected=$medium.aehnlich options=$aehnlich}
52
            </select>
53
        </td>
54
        <td style="width:200px;">
55
            <div>
56
                <div style="float:left;">
1913 lars 57
                    <a class="edit_desc" id="edit_desc__{$medium.id}" title="Beschreibung editieren"></a>
1891 lars 58
                </div>
59
                <div style="float:left;" id="desc_{$medium.id}">{$medium.beschreibung|default:"&nbsp;"}</div>
60
            </div>
61
        </td>
62
        <td>
63
            {$medium.size|fsize_format}
64
            {if $medium.typ==1||$medium.typ==5||$medium.typ==6||$medium.typ==3}
65
            ({$medium.img_size[0]} x {$medium.img_size[1]} Pixel)
66
            {/if}
67
        </td>
68
        <td>
1914 lars 69
            <div>
70
                <div style="float:left">
1917 lars 71
                    <a class="edit_type" id="edit_type__{$medium.id}" title="Typ editieren"></a>
1914 lars 72
                </div>
73
                <div style="float:left" id="type_{$medium.id}">{$medium.typ_name}</div>
74
            </div>
1891 lars 75
        </td>
76
        <td>
77
            <table>
78
                <tr>
1909 lars 79
                    <td style="width:16px">
1891 lars 80
                        {if !$medium@first}
1909 lars 81
                        <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 82
                        {/if}
83
                    </td>
1909 lars 84
                    <td style="width:16px">
1891 lars 85
                        {if !$medium@last}
1909 lars 86
                        <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 87
                        {/if}
88
                    </td>
1909 lars 89
                    <td style="width:16px">
90
                        <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 91
                    </td>
92
                </tr>
93
            </table>
94
        </td>
95
    </tr>
96
    {/foreach}
97
    <input type="hidden" id="l_type" value="{$smarty.get.l_type}" />
98
</table>
1910 lars 99
<!-- $Id: medien.tpl 1917 2016-12-26 12:59:28Z lars $ END -->