Subversion-Projekte lars-tiefland.ci

Revision

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