Subversion-Projekte lars-tiefland.ci

Revision

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