Subversion-Projekte lars-tiefland.ci

Revision

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

Revision Autor Zeilennr. Zeile
2249 lars 1
{include file="header.tpl"}
2415 lars 2
<!-- $Id: logistiker.tpl 2415 2020-06-01 10:28:43Z 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";
2350 lars 44
		url = "/backend/logistiker/edit/";
2265 lars 45
		if($(this).attr("data-id"))
2263 lars 46
		{
2268 lars 47
			akt="editieren";
2274 lars 48
			lId=$(this).attr("data-id");
2350 lars 49
			url = url+lId;
2263 lars 50
		}
2268 lars 51
		$('#dlg_logistiker').dialog({
2346 lars 52
			title:"Logistiker "+akt
53
		})
2350 lars 54
		$('#dlg_logistiker').load(url, function()
2346 lars 55
		{
56
			$('#dlg_logistiker').dialog("open");
57
		});
58
	}
59
 
60
	function del_logistiker()
61
	{
62
		//$('#aktion').html("löschen");
63
		$('#dlg_logistiker').dialog({
64
			title:"Logistiker löschen",
2345 lars 65
			buttons:[{
66
				text:"ja",
67
				icons: {
68
					primary: "ui-icon-check"
69
				},
70
				click:function()
71
				{
72
					$('#result').load("/backend/logistiker/del",$('#logistiker_del_form').serializeArray(),function(){
73
						$('#result').dialog("open");
74
					})
75
					$('#dlg_logistiker').dialog("close");
76
				}
77
			},
78
			{
79
				text:"nein",
80
				icons: {
81
					primary: "ui-icon-close"
82
				},
83
				click:function(){
84
					$('#dlg_logistiker').dialog("close");
85
				}
86
			}
87
			]
2268 lars 88
		})
2337 lars 89
		lId=$(this).attr("data-id");
90
		$('#dlg_logistiker').load("/backend/logistiker/del/"+lId, function()
91
		{
92
			$('#dlg_logistiker').dialog("open");
2342 lars 93
		});
2263 lars 94
	}
2259 lars 95
</script>
2269 lars 96
<a class="new">neu</a>
2245 lars 97
<table width="1000" >
98
    <tr >
99
        <td valign="top">
100
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
101
                <tr class="links" algin="left">
102
                    <td style="text-align:left !important;">ID</td>
103
                    <td style="text-align:left !important;">Name</td>
104
                    <td style="text-align:left !important;">Kurzname</td>
2262 lars 105
                    <td style="text-algin:left !important">Aktionen</td>
2245 lars 106
                </tr>
107
            {section loop=$logistiker name=l_ind}
108
            {cycle values=",gerade" assign="class"}
109
                <tr class="rechts {$class}">
110
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
2259 lars 111
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
2245 lars 112
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
2259 lars 113
                    <td>
114
                    	<a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
115
                    	<a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
116
					</td>
2245 lars 117
                </tr>
118
            {/section}
119
            </table>
120
        </td>
121
    </tr>
122
</table>
2263 lars 123
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
2322 lars 124
<div id="result" title="Ergebnis"></div>
2415 lars 125
<!-- $Id: logistiker.tpl 2415 2020-06-01 10:28:43Z lars $ END -->
2249 lars 126
{include file="footer.tpl"}