Subversion-Projekte lars-tiefland.ci

Revision

Revision 1749 | Revision 1752 | Zur aktuellen Revision | Details | Vergleich mit vorheriger | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1475 lars 1
{include file="header.tpl"}
1504 lars 2
<link rel="stylesheet" href="/backend/css/styles.css" />
1475 lars 3
{include file="artstamm_sub.tpl"}
1647 lars 4
<div id="edit_dir_dialog" title="Kategorie bearbeiten / anlegen"></div>
5
<div id="edit_item_dialog" title="Artikel bearbeiten / anlegen"></div>
1747 lars 6
<div id="delDialog" title="Löschen"></div>
1715 lars 7
<div id="result" title="Ergebnis"></div>
1575 lars 8
<script>
9
	$(function(){
1747 lars 10
		$('#delDialog').dialog({
11
			autoOpen:false,
12
			resizable:false,
1751 lars 13
			modal:true,
1747 lars 14
			width:"90%",
15
			buttons:{
16
				"Ja":function(){
17
					$(this).dialog("close")
18
				},
19
				"Nein":function()
20
				{
21
					$(this).dialog("close")
22
				}
23
			}
24
		})
1715 lars 25
		$('#result').dialog({
1675 lars 26
			autoOpen:false,
27
			resizable:false,
1682 lars 28
			width:"90%",
1675 lars 29
			buttons:{
30
				"OK":function(){
31
					$(this).dialog("close")
32
				}
33
			}
34
		})
1575 lars 35
		$('#edit_dir_dialog').dialog({
36
			autoOpen:false,
37
			width:"90%",
1710 lars 38
			height:700,
1655 lars 39
			resizable:false,
40
			buttons:[{
41
				text:"speichern",
42
				icons: {
43
					primary: "ui-icon-check"
44
				},
45
				click:function()
46
				{
1715 lars 47
					$('#result').load("/backend/kategorie/save",$('#dirForm').serializeArray(),function(){
48
						$('#result').dialog("open");
1676 lars 49
					})
50
					$('#edit_dir_dialog').dialog("close");
1655 lars 51
				}
52
			},
53
			{
54
				text:"verwerfen",
55
				icons: {
56
					primary: "ui-icon-close"
57
				},
58
				click:function(){
1708 lars 59
					$('#edit_dir_dialog').dialog("close");
1655 lars 60
				}
61
			},
62
			{
1656 lars 63
				text:"Neuen Ordner erstellen",
1655 lars 64
				icons:{
1656 lars 65
					primary:"ui-icon-plus"
1655 lars 66
				},
67
				click:function(){
68
 
69
				}
70
			},
71
			{
1656 lars 72
				text:"neuen Artikel erstellen",
1655 lars 73
				icons:{
1656 lars 74
					primary:"ui-icon-plus"
1655 lars 75
				},
76
				click:function(){
77
 
78
				}
79
			},
80
			{
1656 lars 81
				text:"Löschen",
1655 lars 82
				icons:{
1656 lars 83
					primary:"ui-icon-trash"
1655 lars 84
				},
85
				click:function(){
86
 
87
				}
88
			},
89
			{
1656 lars 90
				text:"Artikel zuordnen",
1655 lars 91
				icons:{
92
					primary:"ui-icon-link"
93
				},
94
				click:function(){
95
 
96
				}
97
			}
98
			]
1575 lars 99
		})
100
		$('#edit_item_dialog').dialog({
101
			autoOpen:false,
102
			width:"90%",
1710 lars 103
			height:700,
1635 lars 104
			resizable:false,
1751 lars 105
			modal:true,
1635 lars 106
			buttons:[{
107
				text:"speichern",
108
				icons: {
109
					primary: "ui-icon-check"
110
				},
111
				click:function()
112
				{
1715 lars 113
					$('#result').load("/backend/artikel/save",$('#itemForm').serializeArray(),function(){
114
						$('#result').dialog("open");
1676 lars 115
					})
1635 lars 116
					$('#edit_item_dialog').dialog("close");
117
				}
118
			},
119
			{
1636 lars 120
				text:"verwerfen",
1635 lars 121
				icons: {
122
					primary: "ui-icon-close"
123
				},
124
				click:function(){
125
					$('#edit_item_dialog').dialog("close");
126
				}
1648 lars 127
			},
128
			{
1649 lars 129
				text:"Kopieren",
130
				icons:{
1650 lars 131
					primary:"ui-icon-copy"
1649 lars 132
				},
133
				click:function(){
134
 
135
				}
136
			},
137
			{
138
				text:"Löschen",
139
				icons:{
1650 lars 140
					primary:"ui-icon-trash"
1649 lars 141
				},
142
				click:function(){
1749 lars 143
					//$('#edit_item_dialog').dialog('close');
1748 lars 144
					$('#delDialog').html("Artikel "+$('#artikelName').val()+" wirklich löschen?").dialog('open');
1649 lars 145
				}
146
			},
147
			{
1648 lars 148
				text:"Termin",
149
				icons:{
150
					primary:"ui-icon-calendar"
151
				},
152
				click:function(){
153
 
154
				}
1649 lars 155
			},
156
			{
157
				text:"Klonen",
158
				icons:{
1650 lars 159
					primary:"ui-icon-copy"
1649 lars 160
				},
161
				click:function(){
162
 
163
				}
164
			},
165
			{
166
				text:"Artikel-Cache löschen",
167
				icons:{
1650 lars 168
					primary:"ui-icon-refresh"
1649 lars 169
				},
170
				click:function(){
171
 
172
				}
173
			},
174
			{
175
				text:"Zubehör",
176
				icons:{
1650 lars 177
					primary:"ui-icon-link"
1649 lars 178
				},
179
				click:function(){
180
 
181
				}
1648 lars 182
			}
183
			]
1575 lars 184
		})
185
	})
186
</script>
1475 lars 187
{include file="footer.tpl"}