Subversion-Projekte lars-tiefland.ci

Revision

Revision 1946 | Revision 1965 | Zur aktuellen Revision | Blame | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

{include file="header.tpl"}
<!-- $Id: herstellerkatalog.tpl 1955 2017-01-20 21:03:02Z lars $ BEGIN -->
<script>
        $(function(){
                $(".del_hst").button({
                        icons:{
                                primary:"ui-icon-trash"
                        }
                }).css("cursor","pointer");
                $(".edit_hst").button({
                        icons:{
                                primary:"ui-icon-pencil"
                        }
                }).css("cursor","pointer").click(editHst);
                $('#hstEditDlg').dialog({
                        autoOpen:false,
                        modal:true,
                        width:600,
                        resizable:false
                })
        })
        function editHst()
        {
                $('#hstEditDlg').load("/backend/herstellerkatalog/edit/"+$(this).attr('data-id'),function(){
                        $('#hstEditDlg').dialog('open');
                });
        }
</script>
<table style="width:100%">
        <tr>
                <th>Name</th>
                <th style="width:210px">Aktionen</th>
        </tr>
        {foreach $hersteller as $hst}
        <tr>
                <td>
                        {$hst.name}
                </td>
                <td>
                        <a class="edit_hst" data-id="{$hst.id}">ändern</a>
                        <a class="del_hst" data-id="{$hst.id}" data-name="{$hst.name}">löschen</a>
                </td>
        </tr>
        {/foreach}
</table>
<div id="hstEditDlg"></div>
<div id="hstDelDlg"></div>
<!-- $Id: herstellerkatalog.tpl 1955 2017-01-20 21:03:02Z lars $ END -->
{include file="footer.tpl"}