Subversion-Projekte lars-tiefland.ci

Revision

Revision 2269 | Revision 2274 | 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 2270 2018-10-02 22:04:42Z 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
		})
2269 lars 12
		$('.new').button({
13
			icons:{
14
				primary:"ui-icon-plus"
15
			}
16
		}).click(edit_logistiker)
2259 lars 17
		$('.edit').button({
2260 lars 18
			icons:{
19
				primary:"ui-icon-pencil"
20
			}
2263 lars 21
		}).click(edit_logistiker)
2261 lars 22
		$('.del').button({
23
			icons:{
24
				primary:"ui-icon-trash"
25
			}
2263 lars 26
		}).click(del_logistiker)
2259 lars 27
	})
2263 lars 28
 
29
	function edit_logistiker()
30
	{
2268 lars 31
		akt="anlegen";
2265 lars 32
		if($(this).attr("data-id"))
2263 lars 33
		{
2268 lars 34
			akt="editieren";
2270 lars 35
			lIdArr=$(this).attr("data-id").split("_");
36
			lId=lIdArr[1];
2263 lars 37
		}
2268 lars 38
		$('#dlg_logistiker').dialog({
39
			title:"Logistiker "+akt
40
		})
2270 lars 41
		$('#dlg_logistiker').load("/backend/logistiker/edit/"+lId, function()
42
		{
43
			$('#dlg_logistiker').dialog("open");
44
		});
2263 lars 45
	}
46
 
47
	function del_logistiker()
48
	{
2267 lars 49
		//$('#aktion').html("löschen");
50
		$('#dlg_logistiker').dialog({
51
			title:"Logistiker löschen"
52
		})
2263 lars 53
		$('#dlg_logistiker').dialog("open");
54
	}
2259 lars 55
</script>
2269 lars 56
<a class="new">neu</a>
2245 lars 57
<table width="1000" >
58
    <tr >
59
        <td valign="top">
60
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
61
                <tr class="links" algin="left">
62
                    <td style="text-align:left !important;">ID</td>
63
                    <td style="text-align:left !important;">Name</td>
64
                    <td style="text-align:left !important;">Kurzname</td>
2262 lars 65
                    <td style="text-algin:left !important">Aktionen</td>
2245 lars 66
                </tr>
67
            {section loop=$logistiker name=l_ind}
68
            {cycle values=",gerade" assign="class"}
69
                <tr class="rechts {$class}">
70
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
2259 lars 71
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
2245 lars 72
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
2259 lars 73
                    <td>
74
                    	<a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
75
                    	<a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
76
					</td>
2245 lars 77
                </tr>
78
            {/section}
79
            </table>
80
        </td>
81
    </tr>
82
</table>
2249 lars 83
<!-- $Id: logistiker.tpl 2270 2018-10-02 22:04:42Z lars $ END -->
2263 lars 84
 
85
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
2249 lars 86
{include file="footer.tpl"}