Subversion-Projekte lars-tiefland.webanos.faltradxxs.de

Revision

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

Revision 74 Revision 75
Zeile 1... Zeile 1...
1
{extends file="index.tpl"}
1
{extends file="index.tpl"}
2
{block name="maincontent"}
2
{block name="maincontent"}
3
    <!-- $Id: index.tpl 74 2023-05-20 22:00:43Z lars $ BEGIN -->
3
    <!-- $Id: index.tpl 75 2023-05-20 22:10:35Z lars $ BEGIN -->
4
    <script>
4
    <script>
5
        $(function (){
5
        $(function (){
6
            $('#vPortale').dataTable();
6
            $('#vPortale').dataTable({
-
 
7
                "language": {
-
 
8
                    "url": "../js/DataTables-1.10.9/German.json"
-
 
9
                },
-
 
10
                "columnDefs": [
-
 
11
                    { "searchable": false, "targets": [ 2 ] },
-
 
12
                    { "orderable": false, "targets": [ 2 ] }
-
 
13
                ]
-
 
14
            });
-
 
15
            $('.neu').button({
-
 
16
                icons:{
-
 
17
                    primary:"ui-icon-plus"
-
 
18
                }
-
 
19
            }).click(edit_vportale);
-
 
20
            $('.edit').button({
-
 
21
                icons:{
-
 
22
                    primary:"ui-icon-pencil"
-
 
23
                }
-
 
24
            }).click(edit_vportale);
-
 
25
            $('.del').button({
-
 
26
                icons:{
-
 
27
                    primary:"ui-icon-trash"
-
 
28
                }
-
 
29
            }).click(del_vportale);
-
 
30
            $('#vportale_dlg').dialog({
-
 
31
                autoOpen:false,
-
 
32
                modal:true,
-
 
33
                resizable:false,
-
 
34
                width:700,
-
 
35
                buttons:{
-
 
36
                    "speichern": function(){
-
 
37
                        $('#vportale_content').load("vportale.php",$('#vportale_form').serializeArray());
-
 
38
                        $(this).dialog("close");
-
 
39
                    }
-
 
40
                }
-
 
41
            })
7
        });
42
        });
8
    </script>
43
    </script>
-
 
44
    <button class="neu" id="vportale_0" title="neues Portal anlegen">Neues Portal anlegen</button>
9
    <table style="width: 100%" id="vPortale">
45
    <table style="width: 100%" id="vPortale">
10
        <thead>
46
        <thead>
11
        <tr>
47
        <tr>
12
            <td>Name</td>
48
            <td>Name</td>
13
            <td>Art</td>
49
            <td>Art</td>
14
            <td>Aktion</td>
50
            <td>Aktion</td>
15
        </tr>
51
        </tr>
16
        </thead>
52
        </thead>
17
        <tbody>
53
        <tbody>
18
        {foreach $salesPortals as $salesPortal}
54
        {foreach $salesPortals as $salesPortal}
19
            <tr>
55
            <tr class="{cycle values=",gerade"}">
20
                <td>{$salesPortal->name}</td>
56
                <td>{$salesPortal->name}</td>
21
                <td>{$salesPortal->sales_portal_type->type}</td>
57
                <td>{$salesPortal->sales_portal_type->type}</td>
-
 
58
                <td>
-
 
59
                    <button class="edit" id="edit_{$vportal.id}">&Auml;ndern</button>
-
 
60
                    <button class="del" id="del_{$vportal.id}_{$vportal.name}">L&ouml;schen</button>
22
                <td></td>
61
                </td>
23
            </tr>
62
            </tr>
24
        {/foreach}
63
        {/foreach}
25
        </tbody>
64
        </tbody>
26
    </table>
65
    </table>
-
 
66
    <div id="vportale_dlg" title="Verkaufsportal &auml;ndern / hinzuf&uuml;gen">
-
 
67
    </div>
-
 
68
    <div id="vportale_del_dlg" style="display:none">
-
 
69
        Wollen Sie dieses Portal wirklich l&ouml;schen?
-
 
70
    </div>
27
    <!-- $Id: index.tpl 74 2023-05-20 22:00:43Z lars $ END -->
71
    <!-- $Id: index.tpl 75 2023-05-20 22:10:35Z lars $ END -->
28
{/block}
72
{/block}
29
73