Subversion-Projekte lars-tiefland.ci

Revision

Revision 2268 | Revision 2270 | 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 2269 2018-10-02 22:00:50Z 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";
2263 lars 35
		}
2268 lars 36
		$('#dlg_logistiker').dialog({
37
			title:"Logistiker "+akt
38
		})
2263 lars 39
		$('#dlg_logistiker').dialog("open");
40
	}
41
 
42
	function del_logistiker()
43
	{
2267 lars 44
		//$('#aktion').html("löschen");
45
		$('#dlg_logistiker').dialog({
46
			title:"Logistiker löschen"
47
		})
2263 lars 48
		$('#dlg_logistiker').dialog("open");
49
	}
2259 lars 50
</script>
2269 lars 51
<a class="new">neu</a>
2245 lars 52
<table width="1000" >
53
    <tr >
54
        <td valign="top">
55
            <table width="100%" cellpadding="3" cellspacing="0" class="keinRand">
56
                <tr class="links" algin="left">
57
                    <td style="text-align:left !important;">ID</td>
58
                    <td style="text-align:left !important;">Name</td>
59
                    <td style="text-align:left !important;">Kurzname</td>
2262 lars 60
                    <td style="text-algin:left !important">Aktionen</td>
2245 lars 61
                </tr>
62
            {section loop=$logistiker name=l_ind}
63
            {cycle values=",gerade" assign="class"}
64
                <tr class="rechts {$class}">
65
                    <td  style="text-align:left !important;">{$logistiker[l_ind].id}</td>
2259 lars 66
                    <td  style="text-align:left !important;">{$logistiker[l_ind].name}</td>
2245 lars 67
                    <td  style="text-align:left !important;">{$logistiker[l_ind].kname}</td>
2259 lars 68
                    <td>
69
                    	<a class="edit" data-id="{$logistiker[l_ind].id}">ändern</a>
70
                    	<a class="del" data-id="{$logistiker[l_ind].id}">löschen</a>
71
					</td>
2245 lars 72
                </tr>
73
            {/section}
74
            </table>
75
        </td>
76
    </tr>
77
</table>
2249 lars 78
<!-- $Id: logistiker.tpl 2269 2018-10-02 22:00:50Z lars $ END -->
2263 lars 79
 
80
<div id="dlg_logistiker" title="Logistiker <span id='aktion'></span>"></div>
2249 lars 81
{include file="footer.tpl"}