Subversion-Projekte lars-tiefland.ci

Revision

Revision 2345 | Revision 2350 | 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 2346 2018-10-03 15:06:28Z lars $ BEGIN-->
2259 lars 3
<script type="text/javascript">
4
	$(function()
5
	{
2323 lars 6
		$('#result').dialog({
7
			autoOpen:false,
8
			resizable:false,
9
			width:400,
10
			modal:true,
11
			buttons:{
12
				"OK":function(){
13
					$(this).dialog("close");
2326 lars 14
					document.location.reload();
2323 lars 15
				}
16
			}
17
		})
2263 lars 18
		$('#dlg_logistiker').dialog({
19
			autoOpen:false,
20
			modal:true,
21
			width:"90%",
22
			resizable:false
23
		})
2269 lars 24
		$('.new').button({
25
			icons:{
26
				primary:"ui-icon-plus"
27
			}
28
		}).click(edit_logistiker)
2259 lars 29
		$('.edit').button({
2260 lars 30
			icons:{
31
				primary:"ui-icon-pencil"
32
			}
2263 lars 33
		}).click(edit_logistiker)
2261 lars 34
		$('.del').button({
35
			icons:{
36
				primary:"ui-icon-trash"
37
			}
2263 lars 38
		}).click(del_logistiker)
2259 lars 39
	})
2263 lars 40
 
41
	function edit_logistiker()
42
	{
2268 lars 43
		akt="anlegen";
2265 lars 44
		if($(this).attr("data-id"))
2263 lars 45
		{
2268 lars 46
			akt="editieren";
2274 lars 47
			lId=$(this).attr("data-id");
2263 lars 48
		}
2268 lars 49
		$('#dlg_logistiker').dialog({
2346 lars 50
			title:"Logistiker "+akt
51
		})
52
		$('#dlg_logistiker').load("/backend/logistiker/edit/"+lId, function()
53
		{
54
			$('#dlg_logistiker').dialog("open");
55
		});
56
	}
57
 
58
	function del_logistiker()
59
	{
60
		//$('#aktion').html("löschen");
61
		$('#dlg_logistiker').dialog({
62
			title:"Logistiker löschen",
2345 lars 63
			buttons:[{
64
				text:"ja",
65
				icons: {
66
					primary: "ui-icon-check"
67
				},
68
				click:function()
69
				{
70
					$('#result').load("/backend/logistiker/del",$('#logistiker_del_form').serializeArray(),function(){
71
						$('#result').dialog("open");
72
					})
73
					$('#dlg_logistiker').dialog("close");
74
				}
75
			},
76
			{
77
				text:"nein",
78
				icons: {
79
					primary: "ui-icon-close"
80
				},
81
				click:function(){
82
					$('#dlg_logistiker').dialog("close");
83
				}
84
			}
85
			]
2268 lars 86
		})
2337 lars 87
		lId=$(this).attr("data-id");
88
		$('#dlg_logistiker').load("/backend/logistiker/del/"+lId, function()
89
		{
90
			$('#dlg_logistiker').dialog("open");
2342 lars 91
		});
2263 lars 92
	}
2259 lars 93
</script>
2269 lars 94
<a class="new">neu</a>
2245 lars 95
<table width="1000" >
96
    <tr >
97
        <td valign="top">
98
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
99
                <tr class="links" algin="left">
100
                    <td style="text-align:left !important;">ID</td>
101
                    <td style="text-align:left !important;">Name</td>
102
                    <td style="text-align:left !important;">Kurzname</td>
2262 lars 103
                    <td style="text-algin:left !important">Aktionen</td>
2245 lars 104
                </tr>
105
            {section loop=$logistiker name=l_ind}
106
            {cycle values=",gerade" assign="class"}
107
                <tr class="rechts {$class}">
108
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
2259 lars 109
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
2245 lars 110
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
2259 lars 111
                    <td>
112
                    	<a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
113
                    	<a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
114
					</td>
2245 lars 115
                </tr>
116
            {/section}
117
            </table>
118
        </td>
119
    </tr>
120
</table>
2249 lars 121
<!-- $Id: logistiker.tpl 2346 2018-10-03 15:06:28Z lars $ END -->
2263 lars 122
 
123
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
2322 lars 124
<div id="result" title="Ergebnis"></div>
2249 lars 125
{include file="footer.tpl"}