Subversion-Projekte lars-tiefland.ci

Revision

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