Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1465 | Revision 1468 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1248 lars 1
{extends file="admin/index.tpl"}
2
{block name="maincontent"}
1465 lars 3
    <!-- $Id$ BEGIN -->
4
    <script>
5
        $(function (){
1466 lars 6
            $("#new").uibutton({
1465 lars 7
                icons:{
8
                    primary:"ui-icon-plus"
9
                }
10
            }).click(function()
11
            {
12
                document.location.href="{$smarty.server.PHP_SELF}?mode=edit";
13
            });
1466 lars 14
            $(".edit").uibutton({
1465 lars 15
                icons:{
16
                    primary:"ui-icon-pencil"
17
                }
18
            }).click(function() {
19
                document.location.href="{$smarty.server.PHP_SELF}?mode=edit&id="+$(this).attr("data-id");
20
            });
1466 lars 21
            $(".del").uibutton({
1465 lars 22
                icons:{
23
                    primary:"ui-icon-trash"
24
                }
25
            })
26
            $("#aktionenTable").dataTable({
27
                "columnDefs": [
28
                    { "type": "de_date", targets: [3,4] },
29
                    { "orderable":false, targets: [0,2,5] }
30
                ],
31
                "lengthMenu": [[100, -1], [100, "Alle"]],
32
                "language": {
33
                    "url": "../js/DataTables-1.10.9/German.json"
34
                }
35
            });
36
        })
37
    </script>
38
    <button id="new"></button>
39
    <br><br>
40
    <table style="width:100%" id="aktionenTable">
41
        <thead>
42
        <tr>
43
            <th>Status</th>
44
            <th>Kategorie</th>
45
            <th>Name</th>
46
            <th>von</th>
47
            <th>bis</th>
48
            <th>Aktionen</th>
49
        </tr>
50
        </thead>
51
        <tbody>
52
        {foreach $aktionen as $aktion}
53
            <tr>
54
                <td><img src="/images/lieferstatus/common/{$aktion.status}.gif" /></td>
55
                <td>{$aktion.kategorie}</td>
56
                <td>{$aktion.headline}</td>
57
                <td>{$aktion.von|date_format:"d.m.Y"}</td>
58
                <td>{$aktion.bis|date_format:"d.m.Y"}</td>
59
                <td>
60
                    <button class="edit" data-id="{$aktion.id}"></button>
61
                    <button class="del" data-id="{$aktion.id}"></button>
62
                </td>
63
            </tr>
64
        {/foreach}
65
        </tbody>
66
    </table>
67
    <!-- $Id$ END -->
1248 lars 68
{/block}