Subversion-Projekte lars-tiefland.ci

Revision

Revision 1965 | Revision 1970 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1941 lars 1
{include file="header.tpl"}
2
<!-- $Id: herstellerkatalog.tpl 1966 2017-01-20 22:39:31Z lars $ BEGIN -->
1942 lars 3
<script>
4
	$(function(){
1966 lars 5
		$('#result').dialog({
6
			autoOpen:false,
7
			resizable:false,
8
			width:400,
9
			modal:true,
10
			buttons:{
11
				"OK":function(){
12
					$(this).dialog("close")
13
				}
14
			}
15
		})
1942 lars 16
		$(".del_hst").button({
17
			icons:{
1943 lars 18
				primary:"ui-icon-trash"
1942 lars 19
			}
20
		}).css("cursor","pointer");
21
		$(".edit_hst").button({
22
			icons:{
23
				primary:"ui-icon-pencil"
24
			}
1955 lars 25
		}).css("cursor","pointer").click(editHst);
26
		$('#hstEditDlg').dialog({
27
			autoOpen:false,
28
			modal:true,
29
			width:600,
1964 lars 30
			resizable:false,
31
			buttons:[{
32
				text:"speichern",
33
				icons: {
34
					primary: "ui-icon-check"
35
				},
36
				click:function()
37
				{
38
					$('#result').load("/backend/herstellerkatalog/save",$('#herstellerForm').serializeArray(),function(){
39
						$('#result').dialog("open");
40
					})
1966 lars 41
					$('#hstEditDlg').dialog("close");
1964 lars 42
				}
43
			},
44
			{
45
				text:"verwerfen",
46
				icons: {
47
					primary: "ui-icon-close"
48
				},
49
				click:function(){
1966 lars 50
					$('#hstEditDlg').dialog("close");
1964 lars 51
				}
52
			}
53
			]
1955 lars 54
		})
1942 lars 55
	})
1955 lars 56
	function editHst()
57
	{
58
		$('#hstEditDlg').load("/backend/herstellerkatalog/edit/"+$(this).attr('data-id'),function(){
59
			$('#hstEditDlg').dialog('open');
60
		});
61
	}
1942 lars 62
</script>
1944 lars 63
<table style="width:100%">
1941 lars 64
	<tr>
1946 lars 65
		<th>Name</th>
66
		<th style="width:210px">Aktionen</th>
1941 lars 67
	</tr>
68
	{foreach $hersteller as $hst}
69
	<tr>
70
		<td>
71
			{$hst.name}
72
		</td>
1942 lars 73
		<td>
74
			<a class="edit_hst" data-id="{$hst.id}">ändern</a>
75
			<a class="del_hst" data-id="{$hst.id}" data-name="{$hst.name}">löschen</a>
76
		</td>
1941 lars 77
	</tr>
78
	{/foreach}
79
</table>
1955 lars 80
<div id="hstEditDlg"></div>
81
<div id="hstDelDlg"></div>
1965 lars 82
<div id="result" title="Ergebnis"></div>
1941 lars 83
<!-- $Id: herstellerkatalog.tpl 1966 2017-01-20 22:39:31Z lars $ END -->
84
{include file="footer.tpl"}