Subversion-Projekte lars-tiefland.ci

Revision

Revision 1966 | Revision 1971 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 1966 Revision 1970
Zeile 1... Zeile 1...
1
{include file="header.tpl"}
1
{include file="header.tpl"}
2
<!-- $Id: herstellerkatalog.tpl 1966 2017-01-20 22:39:31Z lars $ BEGIN -->
2
<!-- $Id: herstellerkatalog.tpl 1970 2017-01-20 23:40:14Z lars $ BEGIN -->
3
<script>
3
<script>
4
	$(function(){
4
	$(function(){
5
		$('#result').dialog({
5
		$('#result').dialog({
6
			autoOpen:false,
6
			autoOpen:false,
7
			resizable:false,
7
			resizable:false,
Zeile 15... Zeile 15...
15
		})
15
		})
16
		$(".del_hst").button({
16
		$(".del_hst").button({
17
			icons:{
17
			icons:{
18
				primary:"ui-icon-trash"
18
				primary:"ui-icon-trash"
19
			}
19
			}
20
		}).css("cursor","pointer");
20
		}).css("cursor","pointer").click(delHst);
21
		$(".edit_hst").button({
21
		$(".edit_hst").button({
22
			icons:{
22
			icons:{
23
				primary:"ui-icon-pencil"
23
				primary:"ui-icon-pencil"
24
			}
24
			}
25
		}).css("cursor","pointer").click(editHst);
25
		}).css("cursor","pointer").click(editHst);
Zeile 50... Zeile 50...
50
					$('#hstEditDlg').dialog("close");
50
					$('#hstEditDlg').dialog("close");
51
				}
51
				}
52
			}
52
			}
53
			]			
53
			]			
54
		})
54
		})
-
 
55
		$('#delHstDlg').dialog({
-
 
56
			autoOpen:false,
-
 
57
			resizable:false,
-
 
58
			modal:true,
-
 
59
			width:"90%",
-
 
60
			buttons:{
-
 
61
				"Ja":function(){
-
 
62
					$.post('/backend/herstellerkatalog/del/',$('#delForm').serializeArray());
-
 
63
					$(this).dialog("close")
-
 
64
				},
-
 
65
				"Nein":function()
-
 
66
				{
-
 
67
					$(this).dialog("close")
-
 
68
				}
-
 
69
			}
-
 
70
		})
55
	})
71
	})
56
	function editHst()
72
	function editHst()
57
	{
73
	{
58
		$('#hstEditDlg').load("/backend/herstellerkatalog/edit/"+$(this).attr('data-id'),function(){
74
		$('#hstEditDlg').load("/backend/herstellerkatalog/edit/"+$(this).attr('data-id'),function(){
59
			$('#hstEditDlg').dialog('open');
75
			$('#hstEditDlg').dialog('open');
60
		});
76
		});
61
	}
77
	}
-
 
78
	function delDst()
-
 
79
	{
-
 
80
		$('#hstDelDlg').load("/backend/herstellerkatalog/del/"+$(this).attr('data-id'),function(){
-
 
81
			$('#hstEditDlg').dialog('open');
-
 
82
		});
-
 
83
	}
62
</script>
84
</script>
63
<table style="width:100%">
85
<table style="width:100%">
64
	<tr>
86
	<tr>
65
		<th>Name</th>
87
		<th>Name</th>
66
		<th style="width:210px">Aktionen</th>
88
		<th style="width:210px">Aktionen</th>
Zeile 78... Zeile 100...
78
	{/foreach}
100
	{/foreach}
79
</table>
101
</table>
80
<div id="hstEditDlg"></div>
102
<div id="hstEditDlg"></div>
81
<div id="hstDelDlg"></div>
103
<div id="hstDelDlg"></div>
82
<div id="result" title="Ergebnis"></div>
104
<div id="result" title="Ergebnis"></div>
83
<!-- $Id: herstellerkatalog.tpl 1966 2017-01-20 22:39:31Z lars $ END -->
105
<!-- $Id: herstellerkatalog.tpl 1970 2017-01-20 23:40:14Z lars $ END -->
84
{include file="footer.tpl"}
106
{include file="footer.tpl"}
85
107