Subversion-Projekte lars-tiefland.ci

Revision

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