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

Revision

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

{extends file="index.tpl"}
{block name="maincontent"}
    <!-- $Id: index.tpl 75 2023-05-20 22:10:35Z lars $ BEGIN -->
    <script>
        $(function (){
            $('#vPortale').dataTable({
                "language": {
                    "url": "../js/DataTables-1.10.9/German.json"
                },
                "columnDefs": [
                    { "searchable": false, "targets": [ 2 ] },
                    { "orderable": false, "targets": [ 2 ] }
                ]
            });
            $('.neu').button({
                icons:{
                    primary:"ui-icon-plus"
                }
            }).click(edit_vportale);
            $('.edit').button({
                icons:{
                    primary:"ui-icon-pencil"
                }
            }).click(edit_vportale);
            $('.del').button({
                icons:{
                    primary:"ui-icon-trash"
                }
            }).click(del_vportale);
            $('#vportale_dlg').dialog({
                autoOpen:false,
                modal:true,
                resizable:false,
                width:700,
                buttons:{
                    "speichern": function(){
                        $('#vportale_content').load("vportale.php",$('#vportale_form').serializeArray());
                        $(this).dialog("close");
                    }
                }
            })
        });
    </script>
    <button class="neu" id="vportale_0" title="neues Portal anlegen">Neues Portal anlegen</button>
    <table style="width: 100%" id="vPortale">
        <thead>
        <tr>
            <td>Name</td>
            <td>Art</td>
            <td>Aktion</td>
        </tr>
        </thead>
        <tbody>
        {foreach $salesPortals as $salesPortal}
            <tr class="{cycle values=",gerade"}">
                <td>{$salesPortal->name}</td>
                <td>{$salesPortal->sales_portal_type->type}</td>
                <td>
                    <button class="edit" id="edit_{$vportal.id}">&Auml;ndern</button>
                    <button class="del" id="del_{$vportal.id}_{$vportal.name}">L&ouml;schen</button>
                </td>
            </tr>
        {/foreach}
        </tbody>
    </table>
    <div id="vportale_dlg" title="Verkaufsportal &auml;ndern / hinzuf&uuml;gen">
    </div>
    <div id="vportale_del_dlg" style="display:none">
        Wollen Sie dieses Portal wirklich l&ouml;schen?
    </div>
    <!-- $Id: index.tpl 75 2023-05-20 22:10:35Z lars $ END -->
{/block}