Subversion-Projekte lars-tiefland.ci

Revision

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