Subversion-Projekte lars-tiefland.ci

Revision

Revision 2350 | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{include file="header.tpl"}
<!-- $Id: logistiker.tpl 2415 2020-06-01 10:28:43Z lars $ BEGIN-->
<script type="text/javascript">
        $(function()
        {
                $('#result').dialog({
                        autoOpen:false,
                        resizable:false,
                        width:400,
                        modal:true,
                        buttons:{
                                "OK":function(){
                                        $(this).dialog("close");
                                        document.location.reload();
                                }
                        }
                })
                $('#dlg_logistiker').dialog({
                        autoOpen:false,
                        modal:true,
                        width:"90%",
                        resizable:false
                })
                $('.new').button({
                        icons:{ 
                                primary:"ui-icon-plus"
                        }
                }).click(edit_logistiker)
                $('.edit').button({
                        icons:{ 
                                primary:"ui-icon-pencil"
                        }
                }).click(edit_logistiker)
                $('.del').button({
                        icons:{ 
                                primary:"ui-icon-trash"
                        }
                }).click(del_logistiker)
        })
        
        function edit_logistiker()
        {
                akt="anlegen";
                url = "/backend/logistiker/edit/";
                if($(this).attr("data-id"))
                {
                        akt="editieren";
                        lId=$(this).attr("data-id");
                        url = url+lId;
                }
                $('#dlg_logistiker').dialog({
                        title:"Logistiker "+akt
                })
                $('#dlg_logistiker').load(url, function()
                {
                        $('#dlg_logistiker').dialog("open");
                });
        }
        
        function del_logistiker()
        {
                //$('#aktion').html("löschen");
                $('#dlg_logistiker').dialog({
                        title:"Logistiker löschen",
                        buttons:[{
                                text:"ja",
                                icons: {
                                        primary: "ui-icon-check"
                                },
                                click:function()
                                {
                                        $('#result').load("/backend/logistiker/del",$('#logistiker_del_form').serializeArray(),function(){
                                                $('#result').dialog("open");
                                        })
                                        $('#dlg_logistiker').dialog("close");
                                }
                        },
                        {
                                text:"nein",
                                icons: {
                                        primary: "ui-icon-close"
                                },
                                click:function(){
                                        $('#dlg_logistiker').dialog("close");
                                }
                        }
                        ]                       
                })
                lId=$(this).attr("data-id");
                $('#dlg_logistiker').load("/backend/logistiker/del/"+lId, function()
                {
                        $('#dlg_logistiker').dialog("open");
                });
        }
</script>
<a class="new">neu</a>
<table width="1000" >
    <tr >
        <td valign="top">
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
                <tr class="links" algin="left">
                    <td style="text-align:left !important;">ID</td>
                    <td style="text-align:left !important;">Name</td>
                    <td style="text-align:left !important;">Kurzname</td>
                    <td style="text-algin:left !important">Aktionen</td>
                </tr>
            {section loop=$logistiker name=l_ind}
            {cycle values=",gerade" assign="class"}
                <tr class="rechts {$class}">
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
                    <td>
                        <a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
                        <a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
                                        </td>
                </tr>
            {/section}
            </table>
        </td>
    </tr>
</table>
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
<div id="result" title="Ergebnis"></div>
<!-- $Id: logistiker.tpl 2415 2020-06-01 10:28:43Z lars $ END -->
{include file="footer.tpl"}