Subversion-Projekte lars-tiefland.ci

Revision

Revision 2341 | Revision 2345 | 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 2342 2018-10-03 15:01:46Z 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({
50
			title:"Logistiker "+akt
51
		})
2270 lars 52
		$('#dlg_logistiker').load("/backend/logistiker/edit/"+lId, function()
53
		{
54
			$('#dlg_logistiker').dialog("open");
55
		});
2263 lars 56
	}
57
 
58
	function del_logistiker()
59
	{
2267 lars 60
		//$('#aktion').html("löschen");
61
		$('#dlg_logistiker').dialog({
62
			title:"Logistiker löschen"
63
		})
2337 lars 64
		lId=$(this).attr("data-id");
65
		$('#dlg_logistiker').load("/backend/logistiker/del/"+lId, function()
66
		{
67
			$('#dlg_logistiker').dialog("open");
2342 lars 68
		});
2263 lars 69
	}
2259 lars 70
</script>
2269 lars 71
<a class="new">neu</a>
2245 lars 72
<table width="1000" >
73
    <tr >
74
        <td valign="top">
75
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
76
                <tr class="links" algin="left">
77
                    <td style="text-align:left !important;">ID</td>
78
                    <td style="text-align:left !important;">Name</td>
79
                    <td style="text-align:left !important;">Kurzname</td>
2262 lars 80
                    <td style="text-algin:left !important">Aktionen</td>
2245 lars 81
                </tr>
82
            {section loop=$logistiker name=l_ind}
83
            {cycle values=",gerade" assign="class"}
84
                <tr class="rechts {$class}">
85
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
2259 lars 86
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
2245 lars 87
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
2259 lars 88
                    <td>
89
                    	<a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
90
                    	<a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
91
					</td>
2245 lars 92
                </tr>
93
            {/section}
94
            </table>
95
        </td>
96
    </tr>
97
</table>
2249 lars 98
<!-- $Id: logistiker.tpl 2342 2018-10-03 15:01:46Z lars $ END -->
2263 lars 99
 
100
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
2322 lars 101
<div id="result" title="Ergebnis"></div>
2249 lars 102
{include file="footer.tpl"}