Subversion-Projekte lars-tiefland.ci

Revision

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