default_AccountManagement.xsl
11.3 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
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl" >
<xsl:template match="AccountManagement">
<!-- <xsl:param name="param_url">0</xsl:param> -->
<xsl:variable name="param_url"><xsl:value-of select="@parameter" /></xsl:variable>
<!-- <xsl:variable name="var_get_AccountManagement">
<xsl:call-template name="function_get_Management" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
<xsl:with-param name="param_kind">Account</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="var_get_edit">
<xsl:call-template name="function_get_edit" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
<xsl:with-param name="param_kind">Account</xsl:with-param>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="var_get_changeAccountPassword">
<xsl:call-template name="function_get_changeAccountPassword" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
<xsl:with-param name="param_kind">Account</xsl:with-param>
</xsl:call-template>
</xsl:variable>-->
<xsl:variable name="var_id"><xsl:value-of select="//XMLDisplay_UserData/single/account/ID" /></xsl:variable>
<div id="AccountManagement">
<div class="SubMenuBox">
<span class="HeadLineFont">[<a href="{@parameter}"><xsl:value-of select="@label" /></a>]</span>
<xsl:if test="Menu">
<span class="LinkFont"><xsl:apply-templates select="Menu/Link" /></span><br/>
</xsl:if>
</div>
<xsl:for-each select="p">
<xsl:variable name="var_tmp_i"><xsl:value-of select="position()" /></xsl:variable>
<xsl:choose>
<xsl:when test="position()=last() and Parameter=$var_link_AccountManagement">
<div class="ContentBox">
<span class="ModulFunctionFont">Einzelansicht</span>
<xsl:apply-templates select="../BasisElement" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
</xsl:apply-templates>
<!-- <xsl:apply-templates select="../single/account" /> -->
</div>
</xsl:when>
<xsl:when test="Parameter=$var_link_makeNew and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
<div class="ContentBox">
<span class="ModulFunctionFont">neuen Account erstellen</span>
<xsl:apply-templates select="../BasisElement" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
</xsl:apply-templates>
<!-- <xsl:apply-templates select="../Formular/account" /> -->
<!-- <xsl:apply-templates select="../single/account" /> -->
</div>
</xsl:when>
<xsl:when test="Parameter=$var_link_showSingle and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
<!-- <div class="ContentBox">
<span class="ModulFunctionFont">zeige Account</span>
<xsl:apply-templates select="../single/account" />
</div>-->
<div class="ContentBox">
<span class="ModulFunctionFont">Einzelansicht <xsl:value-of select="BasisElement/@label" /></span>
<xsl:apply-templates select="../BasisElement" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
</xsl:apply-templates>
</div>
</xsl:when>
<xsl:when test="Parameter=$var_link_edit and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
<div class="ContentBox">
<span class="ModulFunctionFont">bearbeite Account</span>
<!-- <xsl:apply-templates select="../Formular/account" /> -->
<!-- <xsl:apply-templates select="../single/account" /> -->
<xsl:apply-templates select="../BasisElement" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
</xsl:apply-templates>
</div>
</xsl:when>
<xsl:when test="Parameter=$var_link_changePassword and (../p[($var_tmp_i)-1]/Parameter=$var_link_AccountManagement)">
<div class="ContentBox">
<span class="ModulFunctionFont">ändere das Passwort</span>
<xsl:apply-templates select="../Formular/password" />
</div>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</div>
</xsl:template>
<!-- <xsl:template match="single/account">
<xsl:param name="param_url">0</xsl:param>
<div class="Account">
<xsl:variable name="AccountEMail"><xsl:value-of select="EMail" /></xsl:variable>
<xsl:variable name="ProfileEMail"><xsl:value-of select="profile/EMail" /></xsl:variable>
<span class="SubjectFont">
<xsl:value-of select="FirstName" /> <xsl:text disable-output-escaping="no"> </xsl:text> <xsl:value-of select="Name" />
</span>
<span class="TextFont">
<xsl:value-of select="address/Street" />
<xsl:text disable-output-escaping="no"> </xsl:text>
<xsl:value-of select="address/Streetnumber" /><br/>
<xsl:value-of select="address/ZipCode" />
<xsl:text disable-output-escaping="no"> </xsl:text>
<xsl:value-of select="address/City" /><br/>
online mit ID <xsl:value-of select="ID" />
als
<xsl:apply-templates select="BasisElement/Headline/Element" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
<xsl:with-param name="param_withoutLabel">true</xsl:with-param>
</xsl:apply-templates>
</span>
</div>
<div class="ContentBox">
<span class="ModulFunctionFont">Einzelansicht <xsl:value-of select="BasisElement/@label" /></span>
<xsl:apply-templates select="BasisElement" >
<xsl:with-param name="param_url"><xsl:value-of select="$param_url" /></xsl:with-param>
</xsl:apply-templates>
</div>
</xsl:template>-->
<xsl:template match="Formular/password">
<xsl:variable name="maxlength"> <xsl:value-of select="Password/@maxlength" /> </xsl:variable>
<xsl:variable name="Function"> <xsl:value-of select="@function" /> </xsl:variable>
<div class="formbox">
<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
<div class="row">
<span class="label">altes Passwort</span>
<span class="element"><input type="password" name="oldpassword" size="11" maxlength="{$maxlength}" /></span>
</div>
<div class="row">
<span class="label">neues Passwort</span>
<span class="element"><input type="password" name="newpassword1" size="11" maxlength="{$maxlength}" /></span>
</div>
<div class="row">
<span class="label">Wiederholung</span>
<span class="element"><input type="password" name="newpassword2" size="11" maxlength="{$maxlength}" /></span>
</div>
<input type="hidden" name="function" value="{$Function}" />
<div class="row">
<span class="element">
<span class="button"><input type="reset" value="Cancel" /></span>
<span class="button"><input type="submit" name="Submit" value="OK" /></span>
</span>
</div>
</form>
</div>
</xsl:template>
<!-- <xsl:template match="Formular/account">
<xsl:variable name="Function"><xsl:value-of select="../@function" /></xsl:variable>
<xsl:variable name="FirstName"> <xsl:value-of select="FirstName" /> </xsl:variable>
<xsl:variable name="Name"> <xsl:value-of select="Name" /> </xsl:variable>
<xsl:variable name="EMail"> <xsl:value-of select="EMail" /> </xsl:variable>
<xsl:variable name="Street"> <xsl:value-of select="address/Street" /> </xsl:variable>
<xsl:variable name="Streetnumber"> <xsl:value-of select="address/Streetnumber" /> </xsl:variable>
<xsl:variable name="ZipCode"> <xsl:value-of select="address/ZipCode" /> </xsl:variable>
<xsl:variable name="City"> <xsl:value-of select="address/City" /> </xsl:variable>
<xsl:variable name="FirstName_maxlength"> <xsl:value-of select="FirstName/@maxlength" /> </xsl:variable>
<xsl:variable name="Name_maxlength"> <xsl:value-of select="Name/@maxlength" /> </xsl:variable>
<xsl:variable name="EMail_maxlength"> <xsl:value-of select="EMail/@maxlength" /> </xsl:variable>
<xsl:variable name="Street_maxlength"> <xsl:value-of select="address/Street/@maxlength" /> </xsl:variable>
<xsl:variable name="Streetnumber_maxlength"> <xsl:value-of select="address/Streetnumber/@maxlength" /> </xsl:variable>
<xsl:variable name="City_maxlength"> <xsl:value-of select="address/City/@maxlength" /> </xsl:variable>
<xsl:variable name="ZipCode_maxlength"> <xsl:value-of select="address/ZipCode/@maxlength" /> </xsl:variable>
<div class="formbox">
<form name="Formular" method="post" action="" onsubmit="return chkFormular()">
<div class="row">
<span class="label">Vorname:</span>
<span class="element"><input name="FirstName" type="text" class="width" maxlength="{$FirstName_maxlength}" value="{$FirstName}" /></span>
</div>
<div class="row">
<span class="label">Name:</span>
<span class="element"><input name="Name" type="text" class="width" maxlength="{$Name_maxlength}" value="{$Name}" /></span>
</div>
<div class="row">
<span class="label">EMail:</span>
<span class="element"><input name="EMail" type="text" class="width" maxlength="{$EMail_maxlength}" value="{$EMail}" /></span>
</div>
<div class="row">
<span class="label">Strasse:</span>
<span class="element"><input name="Street" type="text" class="width" maxlength="{$Street_maxlength}" value="{$Street}" /></span>
</div>
<div class="row">
<span class="label">Hausnummer:</span>
<span class="element"><input name="Streetnumber" type="text" class="width" maxlength="{$Streetnumber_maxlength}" value="{$Streetnumber}" /></span>
</div>
<div class="row">
<span class="label">Postleitzahl:</span>
<span class="element"><input name="ZipCode" type="text" class="width" maxlength="{$ZipCode_maxlength}" value="{$ZipCode}" /></span>
</div>
<div class="row">
<span class="label">Stadt:</span>
<span class="element"><input name="City" type="text" class="width" maxlength="{$City_maxlength}" value="{$City}" /></span>
</div>
<xsl:if test="NewPassword">
<xsl:variable name="Password_maxlength"><xsl:value-of select="NewPassword/@maxlength" /></xsl:variable>
<div class="row">
<span class="label">Passwort:</span>
<span class="element"><input type="password" name="password2" class="width" maxlength="{$Password_maxlength}" /></span>
</div>
<div class="row">
<span class="label">Wiederholung:</span>
<span class="element"><input type="password" name="password1" class="width" maxlength="{$Password_maxlength}" /></span>
</div>
</xsl:if>
<xsl:if test="Delete">
<div class="row">
<span class="label">Löschen:</span>
<span class="element">
<input type="checkbox" name="Delete" value="TRUE" />
Account wird gelöscht
</span>
</div>
</xsl:if>
<input type="hidden" name="function" value="{$Function}" />
<div class="row">
<span class="element">
<span class="button"><input type="reset" value="Abbrechen" /></span>
<span class="button"><input type="submit" name="Submit" value="OK" /></span>
</span>
</div>
</form>
</div>
<div class="ContentBox">
<span class="ModulFunctionFont">Einzelansicht <xsl:value-of select="BasisElement/@label" /></span>
<xsl:apply-templates select="BasisElement" >
</xsl:apply-templates>
</div>
</xsl:template>-->
</xsl:stylesheet>