-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_multiple_dlg.asp
More file actions
149 lines (141 loc) · 5.11 KB
/
add_multiple_dlg.asp
File metadata and controls
149 lines (141 loc) · 5.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<%
'Copyright (C) Stefan Buchali, UDG United Digital Group, www.udg.de
'
'This software is licensed under a
'Creative Commons GNU General Public License (http://creativecommons.org/licenses/GPL/2.0/)
'Some rights reserved.
'
'You should have received a copy of the GNU General Public License
'along with addMultipleInstances. If not, see http://www.gnu.org/licenses/.
Response.ContentType = "text/html"
Response.Charset = "utf-8"
'get session information
SessionKey=request.form("Sessionkey")
RedakteurLoginGUID=request.form("LoginGUID")
AktuelleSeiteGUID = request.form("PageGUID")
if SessionKey="" then
SessionKey=Session("SessionKey")
end if
if RedakteurLoginGUID="" then
RedakteurLoginGUID=Session("LoginGUID")
end if
if AktuelleSeiteGUID="" then
AktuelleSeiteGUID = Session("PageGUID")
end if
'get the required parameters
selected_ck = request.form("selected_ck")
selected_structure_element = request.form("selected_structure_element")
'get the optional parameters
pluginTitle=request.form("pluginTitle")
eltDescription=request.form("eltDescription")
max_multiples_at_once=request.form("max_multiples_at_once")
number_of_multiples=request.form("number_of_multiples")
'set the optional parameters to default, if empty
if pluginTitle="" then pluginTitle="Mehrere Instanzen erstellen und verknüpfen" end if
if eltDescription="" then eltDescription="Anzahl" end if
if max_multiples_at_once="" then
max_multiples_at_once=10
else
max_multiples_at_once=CInt(max_multiples_at_once)
end if
if number_of_multiples="" then
number_of_multiples=0
else
number_of_multiples=CInt(number_of_multiples)
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="../../stylesheets/ioStyleSheet.css" />
<style type="text/css">
div#messageDiv {
color: #ff0000;
font-weight: bold;
}
button {
border: 1px solid black;
background: #EEEEEE;
}
</style>
<script type="text/javascript">
var submitOK=true;
function submitForm() {
if(submitOK) {
submitOK=false;
document.getElementById("messageDiv").innerText='Bitte warten...';
document.getElementById("btn1").disabled=true;
document.getElementById("btn2").disabled=true;
document.AddMultipleForm.submit();
}
}
</script>
<title><%=pluginTitle %></title>
</head>
<body link="navy" alink="navy" vlink="navy" bgcolor="#ffffff" background="../../icons/back5.gif">
<form name="AddMultipleForm" method="post" action="add_multiple_do.asp">
<input type="hidden" name="selected_ck" value="<%=selected_ck %>" />
<input type="hidden" name="selected_structure_element" value="<%=selected_structure_element %>" />
<input type="hidden" name="SessionKey" value="<%= SessionKey %>" />
<input type="hidden" name="RedakteurLoginGUID" value="<%= RedakteurLoginGUID %>" />
<input type="hidden" name="AktuelleSeiteGUID" value="<%= AktuelleSeiteGUID %>" />
<table class="tdgrey" border="0" width="400" align="center" cellspacing="0" cellpadding="3">
<tr>
<td width="100%">
<table class="tdgreylight" border="0" width="100%" cellspacing="0" cellpadding="1">
<tr>
<td width="100%" align="left" valign="top" height="50">
<table border="0" width="100%">
<tr><td class="titlebar" width="100%"><%=pluginTitle %></td></tr>
</table>
</td>
</tr>
<tr>
<td width="100%" align="left" valign="top" height="80">
<table cellspacing="0" cellpadding="0" border="0" width="100%">
<tr>
<td width="25"><img src="../../icons/transparent.gif" width="25" height="1" border="0" alt=""></td>
<td align="left" valign="top" class="label" width="100%"><%= eltDescription %></td>
<td width="25"><img src="../../icons/transparent.gif" width="25" height="1" border="0" alt=""></td>
</tr>
<tr>
<td height="5" colspan="3"></td>
</tr>
<tr>
<td></td>
<td><select size=1 style="width:150px" name="number_of_multiples">
<% for i=1 to max_multiples_at_once %>
<option value="<%=i%>"<% if i=number_of_multiples then %> selected="selected"<% end if %>><%=i%></option>
<% next %>
</select></td>
<td></td>
</tr>
<tr>
<td height="15" colspan="3"></td>
</tr>
<tr>
<td width="25"><img src="../../icons/transparent.gif" width="25" height="1" border="0" alt=""></td>
<td align="left" valign="top" class="label" width="100%"><div id="messageDiv"> </div></td>
<td width="25"><img src="../../icons/transparent.gif" width="25" height="1" border="0" alt=""></td>
</tr>
<tr>
<td height="20" colspan="3"><img src="../../icons/transparent.gif" width="1" height="20" border="0" alt=""></td>
</tr>
<tr>
<td width="25"><img src="../../icons/transparent.gif" width="25" height="1" border="0" alt=""></td>
<td align="right" valign="top"><button id="btn1" type="button" onclick="submitForm()">OK</button> <button id="btn2" type="button" onclick="self.close()">Abbrechen</button></td>
<td width="25"><img src="../../icons/transparent.gif" width="25" height="1" border="0" alt=""></td>
</tr>
<tr>
<td height="15" colspan="3"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
</body>
</html>