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

Revision

Revision 74 | Revision 76 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
63 lars 1
{extends file="index.tpl"}
64 lars 2
{block name="maincontent"}
63 lars 3
    <!-- $Id: index.tpl 75 2023-05-20 22:10:35Z lars $ BEGIN -->
70 lars 4
    <script>
5
        $(function (){
75 lars 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
            })
70 lars 42
        });
43
    </script>
75 lars 44
    <button class="neu" id="vportale_0" title="neues Portal anlegen">Neues Portal anlegen</button>
71 lars 45
    <table style="width: 100%" id="vPortale">
63 lars 46
        <thead>
47
        <tr>
48
            <td>Name</td>
68 lars 49
            <td>Art</td>
50
            <td>Aktion</td>
63 lars 51
        </tr>
52
        </thead>
67 lars 53
        <tbody>
54
        {foreach $salesPortals as $salesPortal}
75 lars 55
            <tr class="{cycle values=",gerade"}">
67 lars 56
                <td>{$salesPortal->name}</td>
74 lars 57
                <td>{$salesPortal->sales_portal_type->type}</td>
75 lars 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>
61
                </td>
67 lars 62
            </tr>
63
        {/foreach}
64
        </tbody>
63 lars 65
    </table>
75 lars 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>
63 lars 71
    <!-- $Id: index.tpl 75 2023-05-20 22:10:35Z lars $ END -->
64 lars 72
{/block}