Subversion-Projekte lars-tiefland.ci

Revision

Revision 1908 | Revision 1910 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

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