Subversion-Projekte lars-tiefland.ci

Revision

Revision 2342 | Revision 2346 | 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 2345 2018-10-03 15:05:29Z 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({
2345 lars 50
			title:"Logistiker "+akt,
51
			buttons:[{
52
				text:"ja",
53
				icons: {
54
					primary: "ui-icon-check"
55
				},
56
				click:function()
57
				{
58
					$('#result').load("/backend/logistiker/del",$('#logistiker_del_form').serializeArray(),function(){
59
						$('#result').dialog("open");
60
					})
61
					$('#dlg_logistiker').dialog("close");
62
				}
63
			},
64
			{
65
				text:"nein",
66
				icons: {
67
					primary: "ui-icon-close"
68
				},
69
				click:function(){
70
					$('#dlg_logistiker').dialog("close");
71
				}
72
			}
73
			]
2268 lars 74
		})
2270 lars 75
		$('#dlg_logistiker').load("/backend/logistiker/edit/"+lId, function()
76
		{
77
			$('#dlg_logistiker').dialog("open");
78
		});
2263 lars 79
	}
80
 
81
	function del_logistiker()
82
	{
2267 lars 83
		//$('#aktion').html("löschen");
84
		$('#dlg_logistiker').dialog({
85
			title:"Logistiker löschen"
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 2345 2018-10-03 15:05:29Z 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"}