Subversion-Projekte lars-tiefland.ci

Revision

Revision 1912 | Revision 1914 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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