Subversion-Projekte lars-tiefland.ci

Revision

Revision 2263 | Revision 2265 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
2249 lars 1
{include file="header.tpl"}
2
<!--$Id: logistiker.tpl 2264 2018-10-02 21:47:14Z lars $ BEGIN-->
2259 lars 3
<script type="text/javascript">
4
	$(function()
5
	{
2263 lars 6
		$('#dlg_logistiker').dialog({
7
			autoOpen:false,
8
			modal:true,
9
			width:"90%",
10
			resizable:false
11
		})
2259 lars 12
		$('.edit').button({
2260 lars 13
			icons:{
14
				primary:"ui-icon-pencil"
15
			}
2263 lars 16
		}).click(edit_logistiker)
2261 lars 17
		$('.del').button({
18
			icons:{
19
				primary:"ui-icon-trash"
20
			}
2263 lars 21
		}).click(del_logistiker)
2259 lars 22
	})
2263 lars 23
 
24
	function edit_logistiker()
25
	{
26
		$('#aktion').html("anlegen");
2264 lars 27
		if($this).attr("data-id"))
2263 lars 28
		{
29
			$('#aktion').html("editieren");
30
		}
31
		$('#dlg_logistiker').dialog("open");
32
	}
33
 
34
	function del_logistiker()
35
	{
36
		$('#aktion').html("löschen");
37
		$('#dlg_logistiker').dialog("open");
38
	}
2259 lars 39
</script>
2245 lars 40
<table width="1000" >
41
    <tr >
42
        <td valign="top">
43
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
44
                <tr class="links" algin="left">
45
                    <td style="text-align:left !important;">ID</td>
46
                    <td style="text-align:left !important;">Name</td>
47
                    <td style="text-align:left !important;">Kurzname</td>
2262 lars 48
                    <td style="text-algin:left !important">Aktionen</td>
2245 lars 49
                </tr>
50
            {section loop=$logistiker name=l_ind}
51
            {cycle values=",gerade" assign="class"}
52
                <tr class="rechts {$class}">
53
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
2259 lars 54
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
2245 lars 55
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
2259 lars 56
                    <td>
57
                    	<a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
58
                    	<a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
59
					</td>
2245 lars 60
                </tr>
61
            {/section}
62
            {if $smarty.get.action=="delete"}
63
                <tr class="links">
64
                    <td colspan="4" align="center">
65
                        <input type="hidden" name="mode" value="delete">
66
                        <input type="submit" value="L&Ouml;SCHEN">
67
                    </td>
68
                </tr>
69
            {else}
70
                <tr class="links">
71
                    <td colspan="3">&nbsp;</td>
72
                </tr>
73
            {/if}
74
 
75
            </table>
76
        </td>
77
    </tr>
78
</table>
2249 lars 79
<!-- $Id: logistiker.tpl 2264 2018-10-02 21:47:14Z lars $ END -->
2263 lars 80
 
81
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
2249 lars 82
{include file="footer.tpl"}