Subversion-Projekte lars-tiefland.laravel_shop

Revision

Revision 1338 | Revision 1466 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1338 Revision 1465
Zeile 1... Zeile 1...
1
{extends file="admin/index.tpl"}
1
{extends file="admin/index.tpl"}
2
{block name="maincontent"}
2
{block name="maincontent"}
-
 
3
    <!-- $Id$ BEGIN -->
-
 
4
    <script>
-
 
5
        $(function (){
-
 
6
            $("#new").button({
-
 
7
                icons:{
-
 
8
                    primary:"ui-icon-plus"
-
 
9
                }
-
 
10
            }).click(function()
-
 
11
            {
-
 
12
                document.location.href="{$smarty.server.PHP_SELF}?mode=edit";
-
 
13
            });
-
 
14
            $(".edit").button({
-
 
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
            });
-
 
21
            $(".del").button({
-
 
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 -->
3
{/block}
68
{/block}