Subversion-Projekte lars-tiefland.ci

Revision

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