Subversion-Projekte lars-tiefland.ci

Revision

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